mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 12:45:52 +03:00
[GH-ISSUE #179] Retrieving Instagram user data along side access token #107
Labels
No labels
bug
cocoapod
duplicate
enhancement
feature-request
help wanted
help wanted
invalid
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/OAuthSwift#107
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cameronbarker on GitHub (Jan 30, 2016).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/179
I see from Instagram that when you authenticate it returns the information below. Is there a way to get the user data along side the access token initially using OAuthSwift?
@phimage commented on GitHub (Jan 30, 2016):
success callback have third parameters, the last one 'parameters' I think contains the data you want
@cameronbarker commented on GitHub (Jan 30, 2016):
@phimage Took a look and only found the "access_token" and "state" keys in the returned "parameters" dictionary
@phimage commented on GitHub (Feb 9, 2016):
To get this information you must not use the "token" type authentification but the "code"
you will receive in the response parameters a json string into "user" index
decode it with
NSJSONSerializationor any third party json framework