I'm excited by the prospect of getting private posts in /posts responses, but so far I have not been able to achieve this behavior with the recent API updates.
John, a specific, just created private post ID 29479141945, serves as a reference in the network activity summary below.
See that I use the /post endpoint to create the new reference post, and that I am able to fetch it via /posts IF I specify
the precise ID of the post. The fact that I'm able to fetch it with specific ID demonstrates the fully authenticated nature
of my requests. But when I ask for all posts from /posts with paging at offsets of 20, the newly created private post, and
all other existing private posts on this blog, are omitted from the output.
Is there something subtle I'm missing here, either in what the new claimed behavior is, or how I'm trying to take advantage
of it? I want to be able to fetch ALL posts for a Tumblr blog, including Private posts, without knowing the post ID ahead of time.
Thanks!
Daniel
Network message sent: 2012-08-15 13:39:48 +0000
Method name: POST
Request text:
type=text&private=1&format=html&title=Another%20new%20private%20post&body=Hello...
Network reply received: 2012-08-15 13:39:49 +0000
Status code: 201
Succeeded: YES
Response text:
{"meta":{"status":201,"msg":"Created"},"response":{"id":29479141945}}
Network message sent: 2012-08-15 13:39:49 +0000
Method name: GET
Network reply received: 2012-08-15 13:39:49 +0000
Status code: 200
Succeeded: YES
Response text:
{"meta":{"status":200,"msg":"OK"},"response":{"blog":{"title":"MarsTesting","posts":234,"name":"marstesting","url":"http:\/\/
marstesting.tumblr.com\/","updated":1344657042,"description":"","ask":false},"posts":[{"blog_name":"marstesting","id":29479141945,"post_url":"http:\/\/
marstesting.tumblr.com\/post\/29479141945\/another-new-private-post","slug":"another-new-private-post","type":"text","date":"2012-08-15 13:39:49 GMT","timestamp":1345037989,"state":"private","format":"html","reblog_key":"3AZY7b8y","tags":[],"highlighted":[],"title":"Another new private post","body":"Hello..."}],"total_posts":1}}
Network message sent: 2012-08-15 13:43:29 +0000
Method name: POST
Network reply received: 2012-08-15 13:43:29 +0000
Status code: 200
Succeeded: YES
Response text:
{"meta":{"status":200,"msg":"OK"},"response":{"blog":{"title":"MarsTesting","posts":234,"name":"marstesting","url":"http:\/\/
marstesting.tumblr.com\/","updated":1344657042,"description":"","ask":false},"posts":[{"blog_name":"marstesting","id":29172190040,"post_url":"http:\/\/
marstesting.tumblr.com\/post\/29172190040","slug":"","type":"photo","date":"2012-08-11 03:50:42 GMT","timestamp":1344657042,"state":"published","format":"html","reblog_key":"FPJk8pjZ","tags":[],"highlighted":[],"note_count":0,"caption":"","photos":[{"caption":"","alt_sizes":[{"width":75,"height":75,"url":"http:\/\/
24.media.tumblr.com\/tumblr_m8ko0ibOfL1qzxz9bo1_75sq.png"}],"original_size":{"width":1,"height":1,"url":"http:\/\/
25.media.tumblr.com\/tumblr_m8ko0ibOfL1qzxz9bo1_100.png"}}]},
Etc... with no private posts at all over all 234 posts, including the just-created post ID 29479141945.