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
Raffi,
After modifications, this is how my request looks like
OAuth signature base:
POST&http%3A%2F%2Ftwitter.com%2Faccount
%2Fupdate_profile_background_image.xml&oauth_consumer_key
%3DgUutCG9HjEOT0N8IxvW9w%26oauth_nonce
%3Dt64bID6gIVtpU6t7m3dsTrTUOhubJizM%26oauth_signature_method%3DHMAC-
SHA1%2
Rafi,
Can you please share the raw text of a successful image update request
for oauth?
Raffi,
After modifications, this is how my request looks like
OAuth signature base:
POST&http%3A%2F%2Ftwitter.com%2Faccount
%2Fupdate_profile_background_image.xml&oauth_consumer_key
%3DgUutCG9HjEOT0N8IxvW9w%26oauth_nonce
%3Dt64bID6gIVtpU6t7m3dsTrTUOhubJizM%26oauth_signature_method%3DHMAC-
SHA1%2
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
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
L"--"+boundary+L"\r\n"+L"Content-D
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
oa
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
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 the
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)
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 wrote:
> Still trying to post images to Twitter using OAuth unsuccessfully. Can
> so
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 si
12 matches
Mail list logo