LoginSignup
0
1

More than 5 years have passed since last update.

twythonで実装されてないAPIを使う

Last updated at Posted at 2017-06-10

PythonでtwitterのAPIを使おうとtwythonを使ったらunretweetが実装されてなかった。ということで内部実装を使いましたという例。

from twython import Twython

twitter = Twython(APP_KEY, APP_SECRET, ACCESS_TOKEN, ACCESS_TOKEN_SECRET)
# twitter.unretweet(id=ID) は無い
twitter.post('statuses/unretweet/%s' % ID)

あとはTwitterのAPIリファレンスを参考に。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1