You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 24, 2018. It is now read-only.
Hi, I'm just working through the documentation to get myself acquainted with the API (great documentation btw!) and I tried this in getting-started.md:
After adapting the example to fit with my test site I kept getting the following error:
curl: option --data-binary="@update-post.json": is unknown
After some tinkering I found that removing the '=' from the example code (eg curl --data-binary "@updated-post.json") meant that the post request worked, though I did get the following response:
[{"code":"json_cannot_create","message":"Sorry, you are not allowed to post on this site."}]
The text was updated successfully, but these errors were encountered:
Hi, I'm just working through the documentation to get myself acquainted with the API (great documentation btw!) and I tried this in getting-started.md:
curl --data-binary="@updated-post.json" \ -H "Content-Type: application/javascript" \ --user admin:password \ http://example.com/wp-json/posts
After adapting the example to fit with my test site I kept getting the following error:
curl: option --data-binary="@update-post.json": is unknown
After some tinkering I found that removing the '=' from the example code (eg
curl --data-binary "@updated-post.json"
) meant that the post request worked, though I did get the following response:[{"code":"json_cannot_create","message":"Sorry, you are not allowed to post on this site."}]
The text was updated successfully, but these errors were encountered: