Setting the Content Source URL with the API

417 views
Skip to first unread message

felix bonkoski

unread,
Jun 21, 2012, 7:16:51 PM6/21/12
to tumbl...@googlegroups.com
I'm fairly sure it's not currently possible to set the "content source URL" when creating posts with the API.

(Unless there is some POST variable I am unaware of, that is not documented ? )

Any chance that this will be added to the API?  It's really a pain that you have to go to the post on Tumblr.com to edit it, and add the Source URL for any posts you make with the API.

Even on Photo posts, when specifying the "source" for the Photo as a URL, the post created with the API does not set the "content source url" to the URL you used for the photo.

Thanks,
Felix

John Bunting

unread,
Jun 22, 2012, 7:01:33 AM6/22/12
to tumbl...@googlegroups.com
Good catch. That's a bug. I'll file it today.

-- 
John Bunting

Simplicity is a prerequisite for reliability
   --Edsger W. Dijkstra

felix bonkoski

unread,
Jun 22, 2012, 8:00:20 AM6/22/12
to tumbl...@googlegroups.com
Woohoo!

Which is the bug -- just the stuff with the Photo source URL, or the fact we can't set the Content Source URL on *other* posts types?  (eg, a Text post)

Even on a photo post, the Content Source URL may need to be different than the photo source URL: for example, the image may come from Flickr, but you want to link the Content Source to the Flickr User's page.

Felix

Felix Bonkoski

unread,
Jun 27, 2012, 12:40:08 PM6/27/12
to tumbl...@googlegroups.com
Can I bump this?

--
Felix Bonkoski

On Fri, Jun 22, 2012 at 6:01 AM, John Bunting <jo...@tumblr.com> wrote:

John Bunting

unread,
Jun 27, 2012, 12:40:49 PM6/27/12
to tumbl...@googlegroups.com
Yep you can. Sorry about that. Looking at it now :)

-- 
John Bunting

Simplicity is a prerequisite for reliability
   --Edsger W. Dijkstra

Felix Bonkoski

unread,
Jul 3, 2012, 4:19:54 PM7/3/12
to tumbl...@googlegroups.com, jo...@tumblr.com
Hey John, any word on this? IE Being able to set the source_url on posts? 

Felix Bonkoski

Dustin Klinkenberg

unread,
Jul 16, 2012, 3:35:55 AM7/16/12
to tumbl...@googlegroups.com
bump? :)

John Bunting

unread,
Jul 16, 2012, 4:06:34 PM7/16/12
to tumbl...@googlegroups.com
Can you guys try creating a post using the parameter:

source_url=<the_url_you_want_to_source>

-- 
John Bunting

Simplicity is a prerequisite for reliability
   --Edsger W. Dijkstra

Dustin Klinkenberg

unread,
Aug 2, 2012, 12:53:53 PM8/2/12
to tumbl...@googlegroups.com
Can't seem to get it working this side, anybody else have luck? Trying to create photo posts, click through link doesn't seem to work, nor does source_url.

John Bunting

unread,
Aug 2, 2012, 1:08:31 PM8/2/12
to tumbl...@googlegroups.com
Hey Dustin,

I actually sent a test post just now that does this: http://zomgomgomgomg.tumblr.com/post/28563648693 (Please excuse the weirdness of the image :)

The parameter that I'm posting to set the source url is: source_url. 

1.9.2p318 :002 > client.photo('zomgomgomgomg.tumblr.com', :data => "/Users/johnb/Desktop/large.png", :source_url => "http://www.google.com")
 {"id"=>28563648693} 

The url that I'm posting to is: /v2/blog/<blog>/post, with parameters of type = photo, data = the url encoded data, and source_url = http://www.google.com

Could you provide me back a same of what you are sending over and I'll take a look?

-- 
John Bunting

Simplicity is a prerequisite for reliability
   --Edsger W. Dijkstra

Reply all
Reply to author
Forward
0 new messages