Re: [twitter-dev] Re: OAuth image upload: how does Twitter want to see multi-part post OAuth parts?

2010-01-17 Thread Raffi Krikorian
i wrote a simple ruby script and posted it at http://mehack.com/uploading-a-background-image-to-twitter-using (which may be having DNS issues at the moment, and if so, just go see the code directly at http://gist.github.com/279650) -- that code demonstrates how to construct the oauth signature and

[twitter-dev] Re: OAuth image upload: how does Twitter want to see multi-part post OAuth parts?

2010-01-13 Thread Vikram
Rafi, Can you please share the raw text of a successful image update request for oauth?

[twitter-dev] Re: OAuth image upload: how does Twitter want to see multi-part post OAuth parts?

2010-01-13 Thread Vikram
Raffi, After modifications, this is how my request looks like OAuth signature base: POSThttp%3A%2F%2Ftwitter.com%2Faccount %2Fupdate_profile_background_image.xmloauth_consumer_key %3DgUutCG9HjEOT0N8IxvW9w%26oauth_nonce %3Dt64bID6gIVtpU6t7m3dsTrTUOhubJizM%26oauth_signature_method%3DHMAC-

[twitter-dev] Re: OAuth image upload: how does Twitter want to see multi-part post OAuth parts?

2010-01-12 Thread Vikram
Hey Raffi, I know about the basics of oAuth I already working code for posting tweets with OAuth. I have few doubts with respect to building signature for multi part requests. 1. What all parameters should be part of the signature base string? 2. Where should the parameters and the signature be

Re: [twitter-dev] Re: OAuth image upload: how does Twitter want to see multi-part post OAuth parts?

2010-01-12 Thread Raffi Krikorian
i haven't actually written code to upload profile images recently, but what i would try is the following (and i apologise if i'm slightly incorrect as i'm doing this from memory): 1. What all parameters should be part of the signature base string? oauth_consumer_key oauth_signature_method

[twitter-dev] Re: OAuth image upload: how does Twitter want to see multi-part post OAuth parts?

2010-01-12 Thread Vikram
Raffi, If you have ever worked with DotNet then please help me. What I do currently is as follows: - Set the request type to POST. - ContentType to multipart/form-data; boundary= + boundary (generated); - Then I add this to the request stream

Re: [twitter-dev] Re: OAuth image upload: how does Twitter want to see multi-part post OAuth parts?

2010-01-12 Thread Raffi Krikorian
i've never used dot.net, however, it looks suspicious to me that the bytestream of the image is coming before the oauth params/signature in your example. i would expect the oauth params/signature to be in the Authorization header, and the image to be in the body of the POST. On Tue, Jan 12, 2010

[twitter-dev] Re: OAuth image upload: how does Twitter want to see multi-part post OAuth parts?

2010-01-11 Thread Andrew Arnott
Still trying to post images to Twitter using OAuth unsuccessfully. Can someone please help? My latest attempt is inline with what I can gather from other people who claim to do it successfully: put ALL parameters in the multipart entity and have a very simple OAuth signature base string:. The

[twitter-dev] Re: OAuth image upload: how does Twitter want to see multi-part post OAuth parts?

2010-01-11 Thread Yusuke
If you are familiar with Java, try Twitter4J. The latest snapshot supports image upload with OAuth. http://groups.google.com/group/twitter4j/browse_thread/thread/d548993dd3a4fc84 On 1月11日, 午前11:37, Andrew Arnott andrewarn...@gmail.com wrote: Still trying to post images to Twitter using OAuth

[twitter-dev] Re: OAuth image upload: how does Twitter want to see multi-part post OAuth parts?

2010-01-11 Thread Vikram
Yusuke, Can you please share with us the raw text of your request? I am not familiar with Java. I am working with C++(.NET)

Re: [twitter-dev] Re: OAuth image upload: how does Twitter want to see multi-part post OAuth parts?

2010-01-11 Thread Raffi Krikorian
i suggest taking a look at http://hueniverse.com/2008/10/beginners-guide-to-oauth-part-iv-signing-requests/ as it has a pretty good walk through of how to construct the parameters. one point of note is that when the Content-Type of the request is -not- application/x-www-form-urlencoded, then