Python中文
首页
教程
问答
标签
搜索
登录
注册
Tumblr API 2:“OAUTH_令牌”和“OAUTH_令牌_秘密”在哪里
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>我想使用Tumblr API 2,<a href="http://www.tumblr.com/docs/en/api/v2">http://www.tumblr.com/docs/en/api/v2</a></p> <p>我已经在这里注册了一个应用程序:<a href="http://www.tumblr.com/oauth/apps">http://www.tumblr.com/oauth/apps</a></p> <p>但我只得到“OAuth使用者密钥”和“密钥”。“OAUTHôu令牌”和“OAUTHôu令牌秘密”在哪里?</p> <p>一个程序<a href="https://gist.github.com/1242662">https://gist.github.com/1242662</a>需要这些参数:</p> <pre><code>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" </code></pre>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>这些OAuth令牌和令牌机密来自注册过程。此代码假定用户已经注册,并已使用Tumblr授权您的应用程序。您可以在<a href="http://oauth.net/code/" rel="nofollow">Google Code</a>上找到引导您完成注册/授权过程的代码。</p>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
如何将python输出重定向到python控制台和Windows中的文本文件
7 回答
如何将Python运行时嵌入运行在Windows上的R包中
8 回答
如何将python进程作为另一个Windows us运行
6 回答
如何将Python进程的输出用Python管道传输?
8 回答
如何将Python进程的输出重定向到Rust进程?
3 回答
如何将python连接到Azure云并创建Azure数据工厂
6 回答
如何将Python连接到Db2
3 回答
如何将python连接到IBMDB2?
3 回答
如何将Python连接到microsoftaccess数据库文件?
4 回答
如何将python连接到MySQL服务器
4 回答
如何将Python连接到Node.js?
8 回答
如何将python连接到Oracle Application Express
7 回答
如何将Python连接到PostgreSQL
10 回答
如何将Python连接到Postgres服务器?
6 回答
如何将Python连接到SAS Enterprise Guide(EG)服务器
7 回答
如何将Python连接到Spark会话并保持RDDs的Ali
8 回答
如何将python连接到sqlite3并在上填充多行
7 回答
如何将python连接到使用docker运行的cassandra
4 回答
如何将python退格应用于字符串
2 回答
如何将python逻辑应用到tkinter GUI中?这是一个简单的GET请求程序
2 回答