Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

If I used the api to post, I would like to return back the Tumblr permalink for that site I sent it to.

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

When you post via the API the postId will be returned. So you just append /post/{postId} to the blog's URL to get the permalink. This URL will not include the slug but the slug is just for easier reading. If you added a custom slug then just append it to to the URL.

To get the blog's URL do an API call to api/authenticate and it will return the URL for all the public blogs of that account, including the one you posted to.

share|improve this answer
    
Thank you very much for your help! –  jprim Oct 3 '10 at 22:58
    
no problem, glad to help :) –  Gabriel Ayuso Oct 4 '10 at 8:22
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.