hayesdavis / grackle

Lightweight Ruby library for the Twitter API that goes with the flow.
228 stars 36 forks source link

Only SSL allowed #36

Open primalr opened 10 years ago

primalr commented 10 years ago

Seems like Twitter no longer accepts non-ssl post's; so the function of ssl could be changed to default.

mezbahalam commented 8 years ago

did u figure out any solution for this: {"errors":[{"message":"SSL is required","code":92

primalr commented 8 years ago

The solution is to use SSL.

client = Grackle::Client.new(:auth=>{
            :type=>:oauth,
            :consumer_key=>TWITTER_CONSUMER_KEY, :consumer_secret=>TWITTER_CONSUMER_SECRET,
            :token=>@token, :token_secret=>@secret
          })
client.ssl = true
client.statuses.update.json! :status=>"my message"