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
Private Blogs for Fully OAuthed Requests
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  19 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
John Bunting  
View profile  
 More options Aug 10 2012, 2:59 pm
From: John Bunting <jo...@tumblr.com>
Date: Fri, 10 Aug 2012 14:59:33 -0400
Local: Fri, Aug 10 2012 2:59 pm
Subject: Private Blogs for Fully OAuthed Requests

Hey all,

Just wanted to let you know we turned on private blogs and posts for blogs that have sent us a FULLY OAuthed request, meaning you'll see private blogs pop up in the /user/info route and private posts show up. You'll also see private posts show up when you send fully OAuthed requests to the /posts route.

I know that's been a blocker for many of you and I'm hoping that helps. Official announcement is here: http://developers.tumblr.com/post/29137944541/changelog-for-the-week-...

If you have any issues, suggestions, problems, let me know here, email me, or send an ask to the developers blog.

Thanks!

--
John Bunting

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mrjason  
View profile  
 More options Aug 10 2012, 4:01 pm
From: mrjason <onejasonfors...@gmail.com>
Date: Fri, 10 Aug 2012 13:01:31 -0700 (PDT)
Local: Fri, Aug 10 2012 4:01 pm
Subject: Private Blogs for Fully OAuthed Requests

Great stuff. Thanks John and team.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Oliver Fürniß  
View profile  
 More options Aug 11 2012, 2:46 am
From: Oliver Fürniß <oliver.fuern...@gmail.com>
Date: Fri, 10 Aug 2012 23:46:19 -0700 (PDT)
Local: Sat, Aug 11 2012 2:46 am
Subject: Re: Private Blogs for Fully OAuthed Requests

This implies that the state 'private' is back when creating a new blog
post (not mentioned in the API documentation)?

Am Freitag, 10. August 2012 20:59:33 UTC+2 schrieb John Bunting:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniel Jalkut  
View profile  
 More options Aug 11 2012, 9:48 am
From: Daniel Jalkut <jal...@gmail.com>
Date: Sat, 11 Aug 2012 06:48:06 -0700 (PDT)
Local: Sat, Aug 11 2012 9:48 am
Subject: Re: Private Blogs for Fully OAuthed Requests

Thanks, John. This is encouraging. I did a quick test and would like to
point out two observations:

1. Private posts are not showing up for me from the /posts endpoint, even
with full OAuth authentication - UNLESS by "FULLY" you mean OAuth
credentials obtained separate from the xAuth method. Other folks reading
this: have you tried yet and have you been able to read private posts from
/posts?

2. I AM able to read a specific private post from /posts if I supply its
post ID, however, there is no indication in the post metadata that it is in
fact private. This is meaningful to any client that will allow users to
alter the state of a post between public and private.

(In general, this is an extension of the failure of Tumblr 2.0 API to
identity meaningful characteristics of posts. For instance if you do follow
through with the much-desired ability to fetch any post by its ID from
/posts, it will still be relatively frustrating if we can't tell that it's
a draft, queue, etc., post without pre-knowledge about the post ID).

Daniel


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniel Jalkut  
View profile  
 More options Aug 11 2012, 9:52 am
From: Daniel Jalkut <jal...@gmail.com>
Date: Sat, 11 Aug 2012 06:52:40 -0700 (PDT)
Local: Sat, Aug 11 2012 9:52 am
Subject: Re: Private Blogs for Fully OAuthed Requests

FWIW this has been working for some time, even before the recent changes.
So yes, at this point it feels like a documentation bug. Specifying
"private=1" in the parameters list for a post will set it to private.

Daniel


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Felix Bonkoski  
View profile  
 More options Aug 11 2012, 10:00 am
From: Felix Bonkoski <felixschwer...@gmail.com>
Date: Sat, 11 Aug 2012 09:00:56 -0500
Local: Sat, Aug 11 2012 10:00 am
Subject: Re: Private Blogs for Fully OAuthed Requests

Really? In creating a post only, or on editing a post as well?

Golly that sure would be nice, since I had to write a work-around that logs
into tumblr with HTTP and spoofs the "Page Edit" in order to mark a post
private.

Felix

--
Felix Bonkoski

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniel Jalkut  
View profile  
 More options Aug 11 2012, 10:03 am
From: Daniel Jalkut <jal...@gmail.com>
Date: Sat, 11 Aug 2012 07:03:49 -0700 (PDT)
Local: Sat, Aug 11 2012 10:03 am
Subject: Re: Private Blogs for Fully OAuthed Requests

John - while we're talking about private posts I wanted to mention it would
be real nice if Tumblr 2.0 API supported the ability to change a posts
state from "published" back to either "private" or "draft". In practice,
people make mistakes when publishing posts and in lieu of ability to switch
back, they have to delete the post outright, hopefully after copying and
pasting the text out into a new post. It would be a more user-friendly
behavior, and easier to code user-interfaces to, if the state could be
toggled reliably in either direction.

Daniel


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniel Jalkut  
View profile  
 More options Aug 11 2012, 10:04 am
From: Daniel Jalkut <jal...@gmail.com>
Date: Sat, 11 Aug 2012 07:04:36 -0700 (PDT)
Local: Sat, Aug 11 2012 10:04 am
Subject: Re: Private Blogs for Fully OAuthed Requests

Only for a new post, unfortunately. See my separate plea I just sent :)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Felix Bonkoski  
View profile  
 More options Aug 11 2012, 10:09 am
From: Felix Bonkoski <felixschwer...@gmail.com>
Date: Sat, 11 Aug 2012 09:09:19 -0500
Local: Sat, Aug 11 2012 10:09 am
Subject: Re: Private Blogs for Fully OAuthed Requests

Comments

   1. No, private **posts** are not showing up here either. I'm not using
   xAuth, but the credentials obtained through the Web-auth + callback flow.

   I think what John was implying was that you could fetch the list of
   posts from a private *blog, *if you send appropriate OAuth credentials
   to the /posts API endpoint.

   But this has already been working for some time, so I don't know why the
   announcement.

   2. IF private *posts* *are* going to be returned via the /posts
   endpoint, then we *absolutely* need a field on the post object telling
   us it's private, so we can filter those posts accordingly.  If fetching
   /posts started sending back private posts right this moment, it would break
   a bunch of my things.

   So @JohnBunting, please give us warning if you're going to do this, and
   tell us how the private posts will be marked.

Felix

--
Felix Bonkoski

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Felix Bonkoski  
View profile  
 More options Aug 11 2012, 10:14 am
From: Felix Bonkoski <felixschwer...@gmail.com>
Date: Sat, 11 Aug 2012 09:14:36 -0500
Local: Sat, Aug 11 2012 10:14 am
Subject: Re: Private Blogs for Fully OAuthed Requests

On Sat, Aug 11, 2012 at 9:04 AM, Daniel Jalkut <jal...@gmail.com> wrote:
> Only for a new post, unfortunately. See my separate plea I just sent :)

Ha, naturally.

Well, good thing I wrote that HTTP back door code.

Felix


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Oliver Fürniß  
View profile  
 More options Aug 11 2012, 10:19 am
From: Oliver Fürniß <oliver.fuern...@gmail.com>
Date: Sat, 11 Aug 2012 07:19:36 -0700 (PDT)
Local: Sat, Aug 11 2012 10:19 am
Subject: Re: Private Blogs for Fully OAuthed Requests

Thanks Daniel, it is working. But can we be sure that this undocumented
option will stay in that awesome V2 API?

Am Samstag, 11. August 2012 15:52:40 UTC+2 schrieb Daniel Jalkut:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Felix Bonkoski  
View profile  
 More options Aug 11 2012, 10:30 am
From: Felix Bonkoski <felixschwer...@gmail.com>
Date: Sat, 11 Aug 2012 09:30:14 -0500
Local: Sat, Aug 11 2012 10:30 am
Subject: Re: Private Blogs for Fully OAuthed Requests

On Sat, Aug 11, 2012 at 9:19 AM, Oliver Fürniß <oliver.fuern...@gmail.com>wrote:

> Thanks Daniel, it is working. But can we be sure that this undocumented
> option will stay in that awesome V2 API?

Personally, I would prefer if marking a post "private" was rolled into the
existing "*state*" parameter sent when creating / editing a post, rather
than with this additional parameter "private".

This would be more consistent: each post would be in one of the states
(published, draft, queue, private) and you could alter that state
consistently with the API.

Felix


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
HoLin  
View profile  
 More options Aug 11 2012, 11:14 am
From: HoLin <holin...@gmail.com>
Date: Sat, 11 Aug 2012 08:14:49 -0700 (PDT)
Local: Sat, Aug 11 2012 11:14 am
Subject: Re: Private Blogs for Fully OAuthed Requests

Great Job!
Thank you! John.

I can fetch private blog and the posts of private blog now.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Bunting  
View profile  
 More options Aug 11 2012, 11:52 am
From: John Bunting <jo...@tumblr.com>
Date: Sat, 11 Aug 2012 11:52:19 -0400
Local: Sat, Aug 11 2012 11:52 am
Subject: Re: Private Blogs for Fully OAuthed Requests

Hey All,  

So I'm going to start this off by what I mean when I say "fully authenticated". We have 2 types of authentication mechanisms on API v2, API Key and OAuth. OAuth is what I'm referring to when I say "fully authenticated", meaning
a complete signed request to our API. It's important to note that you are not getting different access keys from an xAuth or web-flow route. They are both OAuth just with different authentication mechanisms to get the access key magic.  

So now that I have that said, I built some gists to help explain this change better.  

First up is the sample payload of the /user/info request. This route is always a fully authenticated OAuth route.

https://gist.github.com/910729a15878a6382f58

Second up, a sample payload of my test blog with just API Key authentication.

https://gist.github.com/ebce28588036c83127c6

Please note the last post in the above payload is a sound cloud post.  

Third up, the same request but fully authenticated with OAuth to the /posts route of my test blog:

https://gist.github.com/9966cf40a0c6c5d0f518

Note: You will not be able to see my private post on my test blog even if you fully authenticate as you are not a member of my blog.

Finally, you should only be able to see private blogs which you are a member of when you have a fully OAuthed Request. Below is a private blog of mine, and in this example you'll see this is simply an API Key authenticated request.

http://api.tumblr.com/v2/blog/bohnjunting.tumblr.com/posts?api_key= (http://api.tumblr.com/v2/blog/bohnjunting.tumblr.com/posts?api_key=50...)<snip>  

Next, try to sign your request with OAuth. You will still get a 404, as you are not members of that blog. I on the other hand get this result:

https://gist.github.com/a55771107438cd283c1c

Hopefully, that helps clear up questions you all have regarding this particular new feature set.  

@Felix, you're absolutely correct. There needs to be a state or some other indicator now that I'm looking at it. I simply turned on what we did for the iPhone app, making sure different edge cases were taken care of.
Also you guys are correct, I never noticed that how to create a private post wasn't added to the documentation, as well as being able to set things private. Expect a small change log update on Monday :)  

You guys point out something else I can improve on with the change log posts which is example payloads and requests with gists attached to them so we can make sure things like this don't happen again.  

--  
John Bunting

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Bunting  
View profile  
 More options Aug 13 2012, 6:43 pm
From: John Bunting <jo...@tumblr.com>
Date: Mon, 13 Aug 2012 18:43:21 -0400
Local: Mon, Aug 13 2012 6:43 pm
Subject: Re: Private Blogs for Fully OAuthed Requests

Hey guys,  

Just wanted to give you a quick update. We've added a "state" field on post objects as well as the ability to create posts using the state parameter value "private"

http://developers.tumblr.com/post/29364134332/changelog-for-08-13-12

Thanks!  

--  
John Bunting

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Felix Bonkoski  
View profile  
 More options Aug 14 2012, 4:46 am
From: Felix Bonkoski <felixschwer...@gmail.com>
Date: Tue, 14 Aug 2012 03:46:39 -0500
Local: Tues, Aug 14 2012 4:46 am
Subject: Re: Private Blogs for Fully OAuthed Requests

Awesome, thanks John!

I'll give it a whirl later today.

Felix

--
Felix Bonkoski

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Felix Bonkoski  
View profile  
 More options Aug 14 2012, 11:56 pm
From: Felix Bonkoski <felixschwer...@gmail.com>
Date: Tue, 14 Aug 2012 22:56:40 -0500
Local: Tues, Aug 14 2012 11:56 pm
Subject: Re: Private Blogs for Fully OAuthed Requests

@JohnButing, well, it seems you've accomplished about Half of what's needed
regarding private posts.

I am still unable to *change* the state of a "published" post to "private"
via the /{hostname}/post/edit  endpoint.

This is a common way for a user to "hide" a post they don't want displayed
publicly anymore, without deleting it entirely.

Is this just an oversight?  Or do you only intend these new "state"
features to apply when creating posts, not editing them?

Note, for example that I *can *edit the state of a "draft" post ----> state
"queue".  (That's worked for some time.)

Felix

--
Felix Bonkoski

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Bunting  
View profile  
 More options Aug 15 2012, 5:22 pm
From: John Bunting <jo...@tumblr.com>
Date: Wed, 15 Aug 2012 17:22:00 -0400
Subject: Re: Private Blogs for Fully OAuthed Requests

Try it now! You should be able to set a post back and forth from private & published.

You won't be able to set it from published to queued/draft etc. It's going to reflect the options you get when you edit a post on the main site.  

Thanks!  

--  
John Bunting

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Felix Bonkoski  
View profile  
 More options Aug 15 2012, 10:13 pm
From: Felix Bonkoski <felixschwer...@gmail.com>
Date: Wed, 15 Aug 2012 21:13:58 -0500
Local: Wed, Aug 15 2012 10:13 pm
Subject: Re: Private Blogs for Fully OAuthed Requests

@JohnButing, Awesome. Thank you for fixing that!

Yes obviously published --> queued/draft makes no sense.

Now I don't have to use my awful hacky code that logs a user into Tumblr
via tumblr.com/login, & simulates the HTTP session of editing a post. :)

Felix

--
Felix Bonkoski

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »