All URIs are relative to https://api.appstoreconnect.apple.com
Method | HTTP request | Description |
---|---|---|
GameCenterLeaderboardReleasesCreateInstance | Post /v1/gameCenterLeaderboardReleases | |
GameCenterLeaderboardReleasesDeleteInstance | Delete /v1/gameCenterLeaderboardReleases/{id} | |
GameCenterLeaderboardReleasesGetInstance | Get /v1/gameCenterLeaderboardReleases/{id} |
GameCenterLeaderboardReleaseResponse GameCenterLeaderboardReleasesCreateInstance(ctx).GameCenterLeaderboardReleaseCreateRequest(gameCenterLeaderboardReleaseCreateRequest).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/spyrosmouchlianitis/appstoreconnect-client"
)
func main() {
gameCenterLeaderboardReleaseCreateRequest := *openapiclient.NewGameCenterLeaderboardReleaseCreateRequest(*openapiclient.NewGameCenterLeaderboardReleaseCreateRequestData("Type_example", *openapiclient.NewGameCenterLeaderboardReleaseCreateRequestDataRelationships(*openapiclient.NewGameCenterAchievementReleaseCreateRequestDataRelationshipsGameCenterDetail(*openapiclient.NewAppRelationshipsGameCenterDetailData("Type_example", "Id_example")), *openapiclient.NewGameCenterLeaderboardLocalizationCreateRequestDataRelationshipsGameCenterLeaderboard(*openapiclient.NewGameCenterDetailRelationshipsGameCenterLeaderboardsDataInner("Type_example", "Id_example"))))) // GameCenterLeaderboardReleaseCreateRequest | GameCenterLeaderboardRelease representation
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.GameCenterLeaderboardReleasesAPI.GameCenterLeaderboardReleasesCreateInstance(context.Background()).GameCenterLeaderboardReleaseCreateRequest(gameCenterLeaderboardReleaseCreateRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `GameCenterLeaderboardReleasesAPI.GameCenterLeaderboardReleasesCreateInstance``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GameCenterLeaderboardReleasesCreateInstance`: GameCenterLeaderboardReleaseResponse
fmt.Fprintf(os.Stdout, "Response from `GameCenterLeaderboardReleasesAPI.GameCenterLeaderboardReleasesCreateInstance`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiGameCenterLeaderboardReleasesCreateInstanceRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
gameCenterLeaderboardReleaseCreateRequest | GameCenterLeaderboardReleaseCreateRequest | GameCenterLeaderboardRelease representation |
GameCenterLeaderboardReleaseResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GameCenterLeaderboardReleasesDeleteInstance(ctx, id).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/spyrosmouchlianitis/appstoreconnect-client"
)
func main() {
id := "id_example" // string | the id of the requested resource
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.GameCenterLeaderboardReleasesAPI.GameCenterLeaderboardReleasesDeleteInstance(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `GameCenterLeaderboardReleasesAPI.GameCenterLeaderboardReleasesDeleteInstance``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | the id of the requested resource |
Other parameters are passed through a pointer to a apiGameCenterLeaderboardReleasesDeleteInstanceRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GameCenterLeaderboardReleaseResponse GameCenterLeaderboardReleasesGetInstance(ctx, id).FieldsGameCenterLeaderboardReleases(fieldsGameCenterLeaderboardReleases).Include(include).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/spyrosmouchlianitis/appstoreconnect-client"
)
func main() {
id := "id_example" // string | the id of the requested resource
fieldsGameCenterLeaderboardReleases := []string{"FieldsGameCenterLeaderboardReleases_example"} // []string | the fields to include for returned resources of type gameCenterLeaderboardReleases (optional)
include := []string{"Include_example"} // []string | comma-separated list of relationships to include (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.GameCenterLeaderboardReleasesAPI.GameCenterLeaderboardReleasesGetInstance(context.Background(), id).FieldsGameCenterLeaderboardReleases(fieldsGameCenterLeaderboardReleases).Include(include).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `GameCenterLeaderboardReleasesAPI.GameCenterLeaderboardReleasesGetInstance``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GameCenterLeaderboardReleasesGetInstance`: GameCenterLeaderboardReleaseResponse
fmt.Fprintf(os.Stdout, "Response from `GameCenterLeaderboardReleasesAPI.GameCenterLeaderboardReleasesGetInstance`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | the id of the requested resource |
Other parameters are passed through a pointer to a apiGameCenterLeaderboardReleasesGetInstanceRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
fieldsGameCenterLeaderboardReleases | []string | the fields to include for returned resources of type gameCenterLeaderboardReleases | include | []string | comma-separated list of relationships to include |
GameCenterLeaderboardReleaseResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]