【发布时间】:2011-12-01 17:21:20
【问题描述】:
我想使用 Tumblr API 2,http://www.tumblr.com/docs/en/api/v2
我已经在这里注册了一个应用程序:http://www.tumblr.com/oauth/apps
但我只得到“OAuth Consumer Key”和“Secret Key”。 “OAUTH_TOKEN”和“OAUTH_TOKEN_SECRET”在哪里?
一个程序https://gist.github.com/1242662需要这些参数:
class TumblrAPIv2:
def __init__(self, consumer_key, consumer_secret, oauth_token, oauth_token_secret):
self.consumer = oauth2.Consumer(consumer_key, consumer_secret)
self.token = oauth2.Token(oauth_token, oauth_token_secret)
self.url = "http://api.tumblr.com"
【问题讨论】: