author | description | title | ms.author | ms.date | ms.topic | ms.prod | ms.technology | keywords | ms.localizationpriority |
---|---|---|---|---|---|---|---|---|---|
mcleanbyron |
Use the Java code examples in this section to learn more about submitting game options and trailers using the Microsoft Store submission API. |
Java sample - app submission with game options and trailers |
mcleans |
07/10/2017 |
article |
windows |
uwp |
windows 10, uwp, Microsoft Store submission API, code examples, game options, trailers, advanced listings, java |
medium |
This article provides Java code examples that demonstrate how to use the Microsoft Store submission API for these tasks:
- Obtain an Azure AD access token to use with the Microsoft Store submission API.
- Create an app submission
- Configure Store listing data for the app submission, including the gaming and trailers advanced listing options.
- Upload the ZIP file containing the packages, listing images, and trailer files for the app submission.
- Commit the app submission.
The CreateAndSubmitSubmissionExample
class implements a main
program that calls other example methods to use the Microsoft Store submission API to create and commit an app submission that contains game options and a trailer. To adapt this code for your own use:
- Assign the
tenantId
variable to the tenant ID for your app, and assign theclientId
andclientSecret
variables to the client ID and key for your app. For more information, see How to associate an Azure AD application with your Windows Dev Center account - Assign the
applicationId
variable to the Store ID of the app for which you want to create a submission.
[!div class="tabbedCodeSnippets"] [!codeSubmissionApi]
The DevCenterAccessTokenClient
class defines a helper method that uses the your tenantId
, clientId
and clientSecret
values to create an Azure AD access token to use with the Microsoft Store submission API.
[!div class="tabbedCodeSnippets"] [!codeSubmissionApi]
The DevCenterClient
class defines helper methods that invoke a variety of methods in the Microsoft Store submission API and upload the ZIP file containing the packages, listing images, and trailer files for the app submission.
[!div class="tabbedCodeSnippets"] [!codeSubmissionApi]