I’m getting a 404 on this:
favorite tweet
if 'favorite_tweet' in message.keys():
# fav a tweet (on rawger and/or twitter)
print 'favorite tweet: ', message
print int(message['favorite_tweet'])
try:
self.twitter_request(
"https://api.twitter.com/1.1/favorites/create.json",
access_token=self.twitter_access_token,
callback=self.async_callback(self._on_post),
post_args={'id' : int(message['favorite_tweet'])} # tweet id, not twitter id
)
except Exception:
print sys.exc_info()[1:3]
print 'error favstarring'
pass
But not on this:
follow twitter user
if 'follow_tweep' in message.keys():
try:
print int(message['follow_tweep'])
self.twitter_request(
"https://api.twitter.com/1.1/friendships/create.json",
access_token=self.twitter_access_token,
callback=self.async_callback(self._on_post),
post_args={'id' : int(message['follow_tweep'])}
)
except Exception:
print sys.exc_info()[1:3]
print 'error favstarring'
pass
The code is IDENTICAL - except tweet ID instead of tweep ID, and the endpoint obviously. Seems like a mysterious error, would really appreciate any help!
(Btw, when previewing this submit, the Subject and Category fields are nulled.)