This forum is now read-only. Please use our new forums at discuss.codecademy.com.

Introduction to Twitter's API Forum

View Course » View Exercise

1048 points
9fb63f02c127c336254e7a5075d722c5?s=140&d=retro
Submitted by
matthew
over 3 years ago

The response status was 400

is this how we should enter the auth token codes inside the quotations?

require 'rubygems'
require 'oauth'

consumer_key = OAuth::Consumer.new(
    "YOUR_CONSUMER_KEY = xyz",
    "YOUR_CONSUMER_SECRET = abc")
access_token = OAuth::Token.new(
    "YOUR_ACCESS_TOKEN = def",
    "YOUR_ACCESS_SECRET = paq")

baseurl = "https://api.twitter.com"


2 votes

permalink

require 'rubygems'
 require 'oauth'
consumerkey = OAuth::Consumer.new(
 "xyz",
 "abc")
 accesstoken = OAuth::Token.new(
 "def",
 "paq")
baseurl = "https://api.twitter.com"

2364 points
512e1bba83babefc0f006256_198135144
Submitted by
Bastian Franke
over 3 years ago