Created
July 1, 2009 22:44
-
-
Save zlu/139126 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'open-uri' | |
require 'curb' | |
api_access_key = "xxx" | |
url = "http://voicemail.alpha.orange-api.net/voicemail/updateAnnouncement.xml" | |
c = Curl::Easy.new url | |
c.multipart_form_post = true | |
c.http_post Curl::PostField.file('sound', './tt-monkeys.wav'), Curl::PostField.content('id', "#{api_access_key}") | |
p c.body_str |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment