Skip to content

Latest commit

 

History

History
73 lines (45 loc) · 3.09 KB

GameCenterLeaderboardEntrySubmissionsAPI.md

File metadata and controls

73 lines (45 loc) · 3.09 KB

\GameCenterLeaderboardEntrySubmissionsAPI

All URIs are relative to https://api.appstoreconnect.apple.com

Method HTTP request Description
GameCenterLeaderboardEntrySubmissionsCreateInstance Post /v1/gameCenterLeaderboardEntrySubmissions

GameCenterLeaderboardEntrySubmissionsCreateInstance

GameCenterLeaderboardEntrySubmissionResponse GameCenterLeaderboardEntrySubmissionsCreateInstance(ctx).GameCenterLeaderboardEntrySubmissionCreateRequest(gameCenterLeaderboardEntrySubmissionCreateRequest).Execute()

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/spyrosmouchlianitis/appstoreconnect-client"
)

func main() {
	gameCenterLeaderboardEntrySubmissionCreateRequest := *openapiclient.NewGameCenterLeaderboardEntrySubmissionCreateRequest(*openapiclient.NewGameCenterLeaderboardEntrySubmissionCreateRequestData("Type_example", *openapiclient.NewGameCenterLeaderboardEntrySubmissionCreateRequestDataAttributes("BundleId_example", "ScopedPlayerId_example", float64(123), "VendorIdentifier_example"))) // GameCenterLeaderboardEntrySubmissionCreateRequest | GameCenterLeaderboardEntrySubmission representation

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.GameCenterLeaderboardEntrySubmissionsAPI.GameCenterLeaderboardEntrySubmissionsCreateInstance(context.Background()).GameCenterLeaderboardEntrySubmissionCreateRequest(gameCenterLeaderboardEntrySubmissionCreateRequest).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `GameCenterLeaderboardEntrySubmissionsAPI.GameCenterLeaderboardEntrySubmissionsCreateInstance``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GameCenterLeaderboardEntrySubmissionsCreateInstance`: GameCenterLeaderboardEntrySubmissionResponse
	fmt.Fprintf(os.Stdout, "Response from `GameCenterLeaderboardEntrySubmissionsAPI.GameCenterLeaderboardEntrySubmissionsCreateInstance`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiGameCenterLeaderboardEntrySubmissionsCreateInstanceRequest struct via the builder pattern

Name Type Description Notes
gameCenterLeaderboardEntrySubmissionCreateRequest GameCenterLeaderboardEntrySubmissionCreateRequest GameCenterLeaderboardEntrySubmission representation

Return type

GameCenterLeaderboardEntrySubmissionResponse

Authorization

itc-bearer-token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]