Skip to content

Commit

Permalink
feat: add v2.0.3 package updates
Browse files Browse the repository at this point in the history
  • Loading branch information
OneSignal committed Jan 10, 2025
1 parent 94c6a5f commit a0a4fd5
Show file tree
Hide file tree
Showing 81 changed files with 98 additions and 442 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ A powerful way to send personalized messages at scale and build effective custom
## Overview
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.

- API version: 1.2.2
- API version: 1.3.0
- Package version: 2.0.3
- Build package: org.openapitools.codegen.languages.GoClientCodegen
For more information, please visit [https://onesignal.com](https://onesignal.com)
Expand Down Expand Up @@ -77,7 +77,7 @@ ctx = context.WithValue(context.Background(), onesignal.ContextOperationServerVa

## Documentation for API Endpoints

All URIs are relative to *https://onesignal.com/api/v1*
All URIs are relative to *https://api.onesignal.com*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
Expand Down
6 changes: 4 additions & 2 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ info:
customer engagement strategies. Learn more at onesignal.com
termsOfService: https://onesignal.com/tos
title: OneSignal
version: 1.2.2
version: 1.3.0
servers:
- url: https://onesignal.com/api/v1
- url: https://api.onesignal.com
paths:
/notifications:
get:
Expand Down Expand Up @@ -944,6 +944,8 @@ paths:
schema:
$ref: '#/components/schemas/RateLimiterError'
description: Rate Limit Exceeded
security:
- app_key: []
get:
description: "Returns the User’s properties, Aliases, and Subscriptions."
operationId: fetch_user
Expand Down
2 changes: 1 addition & 1 deletion api_default.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions configuration.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions docs/DefaultApi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# \DefaultApi

All URIs are relative to *https://onesignal.com/api/v1*
All URIs are relative to *https://api.onesignal.com*

Method | HTTP request | Description
------------- | ------------- | -------------
Expand Down Expand Up @@ -974,7 +974,7 @@ Name | Type | Description | Notes

### Authorization

No authorization required
[app_key](../README.md#app_key)

### Example

Expand All @@ -997,8 +997,9 @@ func main() {
configuration := onesignal.NewConfiguration()
apiClient := onesignal.NewAPIClient(configuration)

appAuth := context.WithValue(context.Background(), onesignal.AppAuth, "APP_KEY_STRING")

resp, r, err := apiClient.DefaultApi.DeleteUser(, appId, aliasLabel, aliasId).Execute()
resp, r, err := apiClient.DefaultApi.DeleteUser(appAuth, appId, aliasLabel, aliasId).Execute()

if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.DeleteUser``: %v\n", err)
Expand Down
6 changes: 4 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
module github.com/OneSignal/onesignal-go-api/v2
module github.com/OneSignal/onesignal-go-api

go 1.13

require golang.org/x/oauth2 v0.0.0-20210323180902-22b0adad7558
require (
golang.org/x/oauth2 v0.0.0-20210323180902-22b0adad7558
)
Loading

0 comments on commit a0a4fd5

Please sign in to comment.