Migrate V2 to V3 oauth API. Answered
Hi all
Anyone can give us more information about below questions:
- If we change the get token API to V3 “v3/apis/il-iam/oauth/token”, then we use V3 token and V2 API to get this user’s all folders in workspace 1213191, like “v2/workspaces/1213191/folders/”, Does it work?
- We use the V2 oauth token API like below, but I can’t find the same API in V3 with user information. Two-legged OAuth or Three-legged OAuth?
curl -X "POST" https://preview2.intralinks.com/v2/oauth/token?grant_type=client_credentials \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode email= \
--data-urlencode "password=" \
--data-urlencode "client_id=" \
--data-urlencode "client_secret=" \
--data-urlencode "endOtherSessions=true"
- In our QA environment, we have this API link “https://preview2-api.intralinks.com”. I tried to get the token through V3 API like below, but it doesn’t work. Please help me check, can we use these keys get token in “https://preview2-api.intralinks.com” through V3 API. Any mistakes in my request?
$ curl --request POST \
--url https://preview2-api.intralinks.com/v3/apis/il-iam/oauth/token \
--header 'Accept: application/json' \
--header 'Authorization: Basic OUFnR3hzbFJHaTNTZ3RYTFJIMDlZRTYybW==' \
--header 'Content-Type: application/json' \
--data '{\
"data": {\
"grant_type": "client_credentials"\
}\
}'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 261 100 187 100 74 267 105 --:--:-- --:--:-- --:--:-- 373{"_status":{"status":400,"incidentId":"4f7d645b-366f-4c25-9ee4-19545d723ce7","errors":[{"code":"il-iam:REQUEST_DATA_VALIDATION","message":" Invalid request payload. Bad Request Error"}]}}
Comments
1 comment
Hello Lisa,
We have opened a ticket on your behalf as this is a very technical question that can be answered by our API team.
Thank you!
Post is closed for comments.