Skip to content

Instantly share code, notes, and snippets.

@gkojax
Created January 30, 2013 23:32
Show Gist options
  • Save gkojax/4678404 to your computer and use it in GitHub Desktop.
Save gkojax/4678404 to your computer and use it in GitHub Desktop.
tumblr apiを使って、queueに入ってるpostをpublishする。
path = 'http://api.tumblr.com/v2/blog/%s.tumblr.com/post/edit' % [user]
header = {
'reblog_key'=> reblog_key,
'id' => postid,
'state' => 'published'
}
response = @access_token.post(path, header)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment