php - What is the correct call method for "api.tumblr.com/v2/blog/{blog-identifier}/post/delete" -


i have done before, , life of me, cannot seem reproduce code i've written.

i trying delete specific posts on blog outdated, can automatically re-published updates.

i can post fine, no problems there.

the code having trouble is:

$client->post("http://api.tumblr.com/v2/blog/.".$blog_name.".tumblr.com/post/delete?id=".$post_id); 

if run above code, print out so:

stdclass object ( [meta] => stdclass object ( [status] => 401 [msg] => unauthorized ) [response] => array ( ) ) 

i have tried modify little changing url, , have come with, still, not seem working me.

query:

$client->post("http://api.tumblr.com/v2/blog/.".$blog_name.".tumblr.com/post/delete/".$post_id); 

response:

stdclass object ( [meta] => stdclass object ( [status] => 404 [msg] => not found ) [response] => array ( ) ) 

one of errors saying not found, , error saying not authorised, when am, being able make posts, , follow, unfollow users.

any great!

just letting know solved issue. had nothing call method. call method works fine in format (for else seeking):

https://api.tumblr.com/v2/blog/{$blogname}/post/delete?id={$post_id}

note though, required re-pass blogs authentication through tumblr server, if performing/calling api request different performed/called api request.


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -