Private static JObject GetListingsObject() Thread.Sleep(TimeSpan.FromMinutes(1)) // Wait to check Dev Center again. WaitingForCommitToStart = status.Equals("CommitStarted") The application ID is taken from your app dashboard page's URI in Dev Center, Var devCenter = new DevCenterClient(accessToken) String accessToken = accessTokenClient.GetAccessToken("") Var accessTokenClient = new DevCenterAccessTokenClient(tenantId, clientId, clientSecret) Add your tenant ID, client ID, and client secret here. Public class CreateAndSubmitSubmissionExample Assign the applicationId variable to the Store ID of the app for which you want to create a submission.For more information, see How to associate an Azure AD application with your Partner Center account Assign the tenantId variable to the tenant ID for your app, and assign the clientId and clientSecret variables to the client ID and key for your app.The CreateAndSubmitSubmissionExample class defines a public Execute method 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. Install the Newtonsoft.Json NuGet package from Newtonsoft to your project.Add a reference to the System.Web assembly in your project. These examples have the following requirements: To build the examples, create a C# console application named DevCenterApiSample in Visual Studio, copy each example to a separate code file in the project, and build the project. You can review each example to learn more about the task it demonstrates, or you can build all the code examples in this article into a console application.
0 Comments
Leave a Reply. |