You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to generate access token for Share point REST API in ICS

Accepted answer
86
Views
10
Comments
edited Jul 9, 2019 2:51PM in Integration 10 comments

Summary

Developing integration to upload file on share point using share point REST API

Content

Hello,

I am developing integration to upload files to microsoft share point. There are 2 steps to upload file to share point.

1) generate access token

2) call REST API using access token.

currently I am using following POST REST API to generate access token.

https://accounts.accesscontrol.windows.net/231dd9cd-ddc7-5fgf-ae78-9f4ac3c912e7/tokens/OAuth/2

below are the request payload for the REST API.

<nsmpr2:grant_type>client_credentials</nsmpr2:grant_type> <nsmpr2:client_id>[email protected]ac3c912e7</nsmpr2:client_id> <nsmpr2:client_secret>YgLYsm8mMKaY3phiW5+BQ2taOkBO0Ujg+UJ7OUTfYlw=</nsmpr2:client_secret> <nsmpr2:resource>00000003-0000-0ff1-ce00-000000000000/[email protected]912e7</nsmpr2:resource>

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!