Follow these steps to set up a Microsoft OneDrive for Business Beta application with the endpoint.
Login to your Microsoft OneDrive for Business Beta account at https://manage.windowsazure.com/.
Select your Tenant Directory.
Click “Applications”
Click “Add”
Select “Add an application my organization is developing”
Name the application
Select the type
Input the SIGN-ON URI. This will be your app’s login URL.
Input the APP ID URI
Click the check mark
Click Configure
Scroll down to REPLY URL and input the callback URL for your app
Scroll back up to CLIENT ID and copy the value.
Under keys, click the drop down menu “Select duration” and select a time frame
Scroll down and click “SAVE”
Go back to keys and copy the API Key. * NOTE: you must copy and store API key as you will not be able to retrieve it after you leave the page.
Click “Add application”
Under permissions, select “Office 365 SharePoint Online”
Click the check mark
Select Delegated Permissions:
Select all of the permissions
Click “SAVE”
Next create an instance.