Skip to content

Commit

Permalink
Merge 3c48a9b into bf65de5
Browse files Browse the repository at this point in the history
  • Loading branch information
blake-simpson committed Jul 21, 2016
2 parents bf65de5 + 3c48a9b commit 02f221e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Expand Up @@ -30,8 +30,11 @@ puts "Please enter the pin:"
pin = gets.chomp.strip

# Authorize the handshake and get the token and secret
authorized_params = XingApiClient.authorize(request_params[:request_token], pin)
puts authorized_params.inspect # { access_token: 'abcde', secret: '12345' }
authorized_params = XingApiClient.authorize({
token: request_params[:request_token].token,
secret: request_params[:request_token].secret,
verifier: pin
})

# Initialize a client
client = XingApiClient.new(authorized_params[:access_token], authorized_params[:secret])
Expand Down Expand Up @@ -242,5 +245,3 @@ client.request.get_users(id: 'me')
### Geo Locations
- [ ] GET /v1/users/:user_id/nearby_users
- [ ] PUT /v1/users/:user_id/geo_location


0 comments on commit 02f221e

Please sign in to comment.