Delete a post after user was authenticated doesn't work
-
After I got access token, let say I got access_token=ABCD, I can create new post and update the existing posts by appending access_token to URL. It looks like as follows.
Create new post
POST : https://www.example.com/wp-json/wp/v2/wp/v2/posts/?access_token=ABCDUpdate an existing post
POST : https://www.example.com/wp-json/wp/v2/wp/v2/posts/1/?access_token=ABCDeverything works fine ?? but….unfortunately, After I tried to delete an existing post, it doesn’t work. In Google Chrome, it thrown “err_empty_response” and PostMan said “Could not get any response. This seems to be like an error connecting to https://www.example.com/wp-json/wp/v2/wp/v2/posts/?access_token=ABCD”. I’m pretty sure that it’s not because CORS problem as I can create and update an existing post using the same access_token
Thanks in advance. Any Helps would be appreciated ??
- The topic ‘Delete a post after user was authenticated doesn't work’ is closed to new replies.