Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion posting photo(s)

Received: by 10.52.90.36 with SMTP id bt4mr32994930vdb.7.1322084610784;
        Wed, 23 Nov 2011 13:43:30 -0800 (PST)
X-BeenThere: tumblr-api@googlegroups.com
Received: by 10.52.20.204 with SMTP id p12ls5739520vde.1.gmail; Wed, 23 Nov
 2011 13:43:29 -0800 (PST)
Received: by 10.52.174.114 with SMTP id br18mr2070907vdc.2.1322084609534;
        Wed, 23 Nov 2011 13:43:29 -0800 (PST)
Received: by 10.52.174.114 with SMTP id br18mr2070905vdc.2.1322084609519;
        Wed, 23 Nov 2011 13:43:29 -0800 (PST)
Return-Path: <jo...@tumblr.com>
Received: from mail-vx0-f174.google.com (mail-vx0-f174.google.com [209.85.220.174])
        by gmr-mx.google.com with ESMTPS id bu17si8822250vdc.0.2011.11.23.13.43.29
        (version=TLSv1/SSLv3 cipher=OTHER);
        Wed, 23 Nov 2011 13:43:29 -0800 (PST)
Received-SPF: pass (google.com: domain of jo...@tumblr.com designates 209.85.220.174 as permitted sender) client-ip=209.85.220.174;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jo...@tumblr.com designates 209.85.220.174 as permitted sender) smtp.mail=jo...@tumblr.com; dkim=pass header...@tumblr.com
Received: by mail-vx0-f174.google.com with SMTP id fk14so824649vcb.19
        for <tumblr-api@googlegroups.com>; Wed, 23 Nov 2011 13:43:29 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=tumblr.com; s=google;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :content-type;
        bh=rP+S7EAsrsTF2OjID0zcxBIb/sCl+sZPM4wQ4cMOzW0=;
        b=wZT2MAw/ty6e3Pb5QsZCDG419Ua4+nIhJzLDfQcqc7WDl1cmWp6+Ltuuw3ZUavn/h0
         ax+7qOFteWmMxikEMvYr81OTUMz8dnnvJx5aTkoqlfKblWxPSps0vfJScnfun4m4nWOC
         gjI1fKNN/mfCL0pPSedSaHKEdZIhKhMg9db9Q=
MIME-Version: 1.0
Received: by 10.220.188.70 with SMTP id cz6mr1828218vcb.134.1322084608862;
 Wed, 23 Nov 2011 13:43:28 -0800 (PST)
Received: by 10.220.84.79 with HTTP; Wed, 23 Nov 2011 13:43:28 -0800 (PST)
In-Reply-To: <CAMczuWvtGxkv-9hB6bx7yqDzoBZFBKtz0dj9whitJsPU1bX42g@mail.gmail.com>
References: <DUB0-P4-EAS978FCA1C75B6B197BBC4F2BA...@phx.gbl>
	<407e9d0e-21ef-40ed-be46-9139bfc3a...@o11g2000prg.googlegroups.com>
	<c5e3333d-0297-480c-ae88-287abb2d5...@o11g2000prg.googlegroups.com>
	<13935beb-b5e4-4896-9a53-116157f23...@e12g2000pri.googlegroups.com>
	<103072a1-7829-4653-91a1-b9bbe981b...@t36g2000prt.googlegroups.com>
	<70d77b3a-c76a-4b0a-89c6-e47300854...@t36g2000prt.googlegroups.com>
	<ee61cb4e-3d9f-4785-a232-7935b3eb0...@e15g2000vba.googlegroups.com>
	<10080905.1486.1322006530827.JavaMail.geo-discussion-forums@yqhd1>
	<668842af-3a57-4f06-bba4-3dc7bd462...@x30g2000prh.googlegroups.com>
	<25137830.130.1322049562701.JavaMail.geo-discussion-forums@vbay19>
	<67012e4c-8d2a-4325-a30e-9535677b0...@s4g2000yqk.googlegroups.com>
	<CAMczuWvtGxkv-9hB6bx7yqDzoBZFBKtz0dj9whitJsPU1bX...@mail.gmail.com>
Date: Wed, 23 Nov 2011 16:43:28 -0500
Message-ID: <CAB5hEtUU57XZazJfU7MTjJgQpvazruN9ecdt2Sfe9Bnp9f4...@mail.gmail.com>
Subject: Re: posting photo(s)
From: John Bunting <jo...@tumblr.com>
To: tumblr-api@googlegroups.com
Content-Type: multipart/alternative; boundary=90e6ba539fb679698c04b26dcf2e

--90e6ba539fb679698c04b26dcf2e
Content-Type: text/plain; charset=ISO-8859-1

Hey Everyone,

So I finally had sometime to figure out a couple things. First things
first, I fixed the lingering issues in the python script

https://gist.github.com/1389963

This will post single photos or multiple photos. It should have a bit more
clarity and will be able to explain exactly how to upload the photo.

If you need more in-depth help about how the body of the request looks,
just tcpdump this file while making calls and you'll be able to see the
nitty gritty of what's going on.

My apologies for not being able to do this sooner! As Derek and David has
stated before, we don't have a devoted engineer to the api so it becomes
difficult to get time to do this. Let me know if you have any questions, I
can't promise I'll get to them right away, but I'll do what I can.

Thanks again,

~John

On Wed, Nov 23, 2011 at 3:49 PM, Mohac Bilecen <moh...@gmail.com> wrote:

> I am sorry for hassle one last question. what is the format of the request
> post body mine look like this.
>
> type=photo&data%5B0%5D=%25FF%25D8%...................
>
> ps: not for body string to generate signature.
> many thanks.
>
>
> On Wed, Nov 23, 2011 at 6:52 PM, S. Douglass <sdouglass...@gmail.com>wrote:
>
>> Yes, I posted this photoset using my code:
>>
>> http://sdouglassdev.tumblr.com/post/13137807163/snow-in-ct
>>
>> (One normal photo and the test 2x2 white JPG file mentioned earlier in
>> this thread.)
>>
>> You are correct, the base signature string I used is invalid. When I
>> put it into that first "oauthTester" you linked to, it complains that
>> "data[0]" should be encoded. If you change "data%5B0%5D" to "data
>> %255B0%255D" in the base string then the validator says it is valid.
>> Posts with valid base strings never worked for me though. I could only
>> get the posts to work by using the invalid "data%5B0%5D" in the base
>> string.
>>
>> It would be great if the Tumblr team could address that issue, as well
>> as either specifying what character sets people should use (e.g. Latin
>> 1) or changing to using UTF-8. Another option would be to switch to
>> multipart form data for binary posts.
>>
>>
>> On Nov 23, 3:59 am, mohacs <moh...@gmail.com> wrote:
>> > please check the base signature string
>> > herehttp://quonos.nl/oauthTester/
>> > this base string validator can't even validate the base string.
>> >
>> > and here
>> >
>> > http://hueniverse.com/oauth/guide/authentication/
>> >
>> > is this your code working and you can submit photo sets right?
>> >
>> > best,
>>
>
>
>
> --
> -mohacs
>
>

--90e6ba539fb679698c04b26dcf2e
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hey Everyone,=A0<div><br></div><div>So I finally had sometime to figure out=
 a couple things. First things first,=A0<span class=3D"Apple-style-span" st=
yle=3D"font-family: &#39;Lucida Grande&#39;, arial, sans-serif; font-size: =
12px; line-height: 20px; ">I fixed the lingering issues in the python scrip=
t</span></div>
<div><br></div><div><a href=3D"https://gist.github.com/1389963">https://gis=
t.github.com/1389963</a></div><div><br></div><div>This will post single pho=
tos or multiple photos. It should have a bit more clarity and will be able =
to explain exactly how to upload the photo.</div>
<div><br></div><div>If you need more in-depth help about how the body of th=
e request looks, just tcpdump this file while making calls and you&#39;ll b=
e able to see the nitty gritty of what&#39;s going on.</div><div><br></div>
<div>My apologies for not being able to do this sooner! As Derek and David =
has stated before, we don&#39;t have a devoted engineer to the api so it be=
comes difficult to get time to do this. L<span class=3D"Apple-style-span" s=
tyle=3D"font-family: &#39;Lucida Grande&#39;, arial, sans-serif; font-size:=
 12px; line-height: 20px; ">et me know if you have any questions,</span><sp=
an class=3D"Apple-style-span" style=3D"font-family: &#39;Lucida Grande&#39;=
, arial, sans-serif; font-size: 12px; line-height: 20px; ">=A0</span><span =
class=3D"Apple-style-span" style=3D"font-family: &#39;Lucida Grande&#39;, a=
rial, sans-serif; font-size: 12px; line-height: 20px; ">I can&#39;t promise=
 I&#39;ll get to them right away,=A0</span><span class=3D"Apple-style-span"=
 style=3D"font-family: &#39;Lucida Grande&#39;, arial, sans-serif; font-siz=
e: 12px; line-height: 20px; ">but I&#39;ll do what I can.</span></div>
<div><br></div><div>Thanks again,</div><div><br></div><div>~John</div><div>=
<br><div class=3D"gmail_quote">On Wed, Nov 23, 2011 at 3:49 PM, Mohac Bilec=
en <span dir=3D"ltr">&lt;<a href=3D"mailto:moh...@gmail.com">moh...@gmail.c=
om</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex;"><div dir=3D"ltr"><font color=3D"#000066"><f=
ont face=3D"trebuchet ms,sans-serif">I am sorry for hassle one last questio=
n. what is the format of the request post body mine look like this.=A0</fon=
t></font><div>
<font color=3D"#000066"><font face=3D"trebuchet ms,sans-serif"><br>

</font></font></div><div><font color=3D"#000066"><font face=3D"trebuchet ms=
,sans-serif">type=3Dphoto&amp;data%5B0%5D=3D%25FF%25D8%...................<=
/font></font></div><div><font color=3D"#000066"><font face=3D"trebuchet ms,=
sans-serif"><br>


</font></font></div><div><font color=3D"#000066"><font face=3D"trebuchet ms=
,sans-serif">ps: not for body string to generate signature.=A0</font></font=
></div><div><font color=3D"#000066"><font face=3D"trebuchet ms,sans-serif">=
many thanks.</font></font></div>


<div><font color=3D"#000066"><font face=3D"trebuchet ms,sans-serif"><br></f=
ont></font><br><div class=3D"gmail_quote"><div class=3D"im">On Wed, Nov 23,=
 2011 at 6:52 PM, S. Douglass <span dir=3D"ltr">&lt;<a href=3D"mailto:sdoug=
lass...@gmail.com" target=3D"_blank">sdouglass...@gmail.com</a>&gt;</span> =
wrote:<br>


</div><div><div class=3D"h5"><blockquote class=3D"gmail_quote" style=3D"mar=
gin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yes, I posted t=
his photoset using my code:<br>
<br>
<a href=3D"http://sdouglassdev.tumblr.com/post/13137807163/snow-in-ct" targ=
et=3D"_blank">http://sdouglassdev.tumblr.com/post/13137807163/snow-in-ct</a=
><br>
<br>
(One normal photo and the test 2x2 white JPG file mentioned earlier in<br>
this thread.)<br>
<br>
You are correct, the base signature string I used is invalid. When I<br>
put it into that first &quot;oauthTester&quot; you linked to, it complains =
that<br>
&quot;data[0]&quot; should be encoded. If you change &quot;data%5B0%5D&quot=
; to &quot;data<br>
%255B0%255D&quot; in the base string then the validator says it is valid.<b=
r>
Posts with valid base strings never worked for me though. I could only<br>
get the posts to work by using the invalid &quot;data%5B0%5D&quot; in the b=
ase<br>
string.<br>
<br>
It would be great if the Tumblr team could address that issue, as well<br>
as either specifying what character sets people should use (e.g. Latin<br>
1) or changing to using UTF-8. Another option would be to switch to<br>
multipart form data for binary posts.<br>
<div><br>
<br>
On Nov 23, 3:59=A0am, mohacs &lt;<a href=3D"mailto:moh...@gmail.com" target=
=3D"_blank">moh...@gmail.com</a>&gt; wrote:<br>
&gt; please check the base signature string<br>
</div>&gt; herehttp://<a href=3D"http://quonos.nl/oauthTester/" target=3D"_=
blank">quonos.nl/oauthTester/</a><br>
<div><div></div><div>&gt; this base string validator can&#39;t even validat=
e the base string.<br>
&gt;<br>
&gt; and here<br>
&gt;<br>
&gt; <a href=3D"http://hueniverse.com/oauth/guide/authentication/" target=
=3D"_blank">http://hueniverse.com/oauth/guide/authentication/</a><br>
&gt;<br>
&gt; is this your code working and you can submit photo sets right?<br>
&gt;<br>
&gt; best,<br>
</div></div></blockquote></div></div></div><span class=3D"HOEnZb"><font col=
or=3D"#888888"><br><br clear=3D"all"><div><br></div>-- <br><div dir=3D"ltr"=
><font color=3D"#000066">-mohacs</font><br></div><br>
</font></span></div></div>
</blockquote></div><br></div>

--90e6ba539fb679698c04b26dcf2e--