Skip to content

Commit 076fc8a

Browse files
authored
Merge pull request #275 from Sohair63/patch-1
Clarifying what is `code`
2 parents a56f538 + 6c3535c commit 076fc8a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

EXAMPLES.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ client.authorize_url(:redirect_uri => 'https:://www.yourdomain.com/callback', :s
2020
=> "https://api.linkedin.com/uas/oauth2/authorization?"
2121

2222
# then fetch your access keys
23-
client.authorize_from_request(code, :redirect_uri => 'https:://www.yourdomain.com/callback')
23+
client.authorize_from_request(params[:code], :redirect_uri => 'https:://www.yourdomain.com/callback')
2424
=> "OU812" # <= save this for future requests
2525

26+
NOTE: params[:code] is returned in the callback
27+
2628
# or authorize from previously fetched access keys
2729
client.authorize_from_access("OU812")
2830

0 commit comments

Comments
 (0)