Creating tokens for an application

Let's modify our create_token call to associate our new tokens with our own OAuth Application. To do so, we need to pass a couple of additional parameters in the POST body hash.


Add the keys client_id and client_secret to the post_body hash, using the values declared as constants at the top of the class definition.

Stuck? Get a hint! Hint
Get live, fast support from Codecademy Advisors when you get stuck. Learn more.

Modify line 13 to be:

post_body = {
  :client_id => API_CLIENT_ID,
  :client_secret => API_CLIENT_SECRET