Skip to content

Instantly share code, notes, and snippets.

@nov
Created June 19, 2010 10:05
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save nov/444766 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'restclient'
RestClient.post('http://api.twitpic.com/1/uploadAndPost.json', {
:key => SET_YOUR_OWN,
:consumer_token => SET_YOUR_OWN,
:consumer_secret => SET_YOUR_OWN,
:oauth_token => SET_YOUR_OWN,
:oauth_secret => SET_YOUR_OWN,
:message => SET_YOUR_OWN,
:media => SET_YOUR_OWN
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment