Java sample code for calling Cloud Solution Provider CREST APIs
These are samples in Java for using the commerce APIs for Microsoft Partner Center. These CREST APIs are documented at https://msdn.microsoft.com/en-us/library/partnercenter/dn974944.aspx
A public forum for discussing the APIs is available at https://social.msdn.microsoft.com/Forums/en-US/home?forum=partnercenterapi
Before you build these samples, please update the following in the file - CrestApiCredentials.properties, for your integration sandbox account.
Go to https://partnercenter.microsoft.com/pc/AccountSettings/TenantProfile to get this information
Watch the youtube video which will guide you to fill the details - https://www.youtube.com/watch?v=8RRssasC2Ys&feature=youtu.be
DefaultDomain=xxxxxxxxxxxx.onmicrosoft.com
MicrosoftId=xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Go to https://partnercenter.microsoft.com/pc/APIIntegration to fill the below details Watch the youtube video which will guide you to fill the details - https://www.youtube.com/watch?v=8RRssasC2Ys&feature=youtu.be AppId=xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ApiEndpoint=https://api.cp.microsoft.com
Follow these steps
Open the eclipse IDE and click on File->Import
Select “Existing Projects into Workspace” option and click next
Select the root directory option and browse for the extracted code, an example illustration is shown below. Click Finish
The code along with the project should appear as below in the eclipse IDE
Configure the Java Build Path