Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add v2.1.0 package updates #41

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ 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
- Package version: 2.0.3
- API version: 1.3.0
- Package version: 2.1.0
- 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.

6 changes: 3 additions & 3 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
4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ module github.com/OneSignal/onesignal-go-api/v2

go 1.13

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