I'm using Oauth2 and can call data just fine but can't post, please help


#1
import oauth2 as oauth import json

CONSUMER_KEY = ’ '
CONSUMER_SECRET = ’ '
ACCESS_KEY = ’ '
ACCESS_SECRET = ’ ’

consumer = oauth.Consumer(key=CONSUMER_KEY, secret=CONSUMER_SECRET)
access_token = oauth.Token(key=ACCESS_KEY, secret=ACCESS_SECRET)
client = oauth.Client(consumer, access_token)

def c():
data = 'test post’
resp, content = client.request(‘http://api.twitter.com/1.1/statuses/update.json’,

                               'POST', data)


print(content)

I’m getting an error saying “” {“errors”:[{“code”:170,“message”:“Missing required parameter: status.”}]}

I have looked all over Youtube and over Google plus twitter dev site and cannot figure out how to setup the post.

Thank you, :slight_smile:


#2

كيف توثيق صفحتي بتويتر


#3

I read the documentation but it is vague.