Sirs,
I got a welcome letter from Twitter saying :
"We have provisioned access to the Account Activity API beta for the single client application you noted in your application for access - app ID 13087009.
To make requests to the API, you will need to know your Dev Environment name:
Env_name: env-beta"
@werowe
app ID 13087009.
But I get either error:
{“code”:200,“message”:"Forbidden
or “code”:32,“message”:“Could not authenticate you.”
Depending on what URL I use.
The instructions say to POST to
“https://api.twitter.com/1.1/account_activity/webhooks.json”
which gives error 32 “Could not Authenticate you”. So I tried this one which gives error 200 Forbidden.
https://api.twitter.com/1.1/account_activity/all/:env-beta/webhooks.json
So would you look is my account is provisioned?
Code looks like:
url = “https://api.twitter.com/1.1/account_activity/all/:env-beta/webhooks.json”
callbackURL = urllib.parse.urlencode({‘url’: “http://xxxxx”})
consumer = oauth.Consumer(key=consumer_key, secret=consumer_secret)
token = oauth.Token(key=access_token, secret=access_token_secret)
client = oauth.Client(consumer, token)
resp, content = client.request( url, method=“POST”, body=callbackURL)
regards,
Walker Rowe