Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/ruby
- # encoding: utf-8
- require "tumblr_client"
- Tumblr.configure do |config|
- config.consumer_key = "..."
- config.consumer_secret = "..."
- config.oauth_token = "..."
- config.oauth_token_secret = "..."
- end
- client = Tumblr::Client.new()
- puts client.info
- client.photo('temp.lindachan.net',
- :data => "pic.jpg",
- :caption => "You're under arrest!",
- :tags => "test,yua,picture")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement