ruby - How to get access_tokens using Rails and Strava API -


has ever used strava api? i'm attempting build first app need access api using access_tokens each user.

i've read http://strava.github.io/api/v3/oauth/ , understand protocol i'm stuck @ 1 stage , not sure do.

in rails app i've created controller me head round index , exchange action.

in index view i've put link strava_domain/oauth/authorize along correct attributes. it's calling /exchange action state , code. problem don't know how make post call strava_domain/oauth/token correct attributes.

is there gem handle oauth2 protocols or people write these protocols in manually using httparty (i dont understand how use well).

also i'm assuming after stage able grab access token response , add user object (as new column).

any on appreciated.

johnny.

(i'm using ruby 2.1.2 , rails 4)


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -