Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post method should take arrays, not JSON strings. #5

Open
JonathanAquino opened this issue Jul 22, 2016 · 0 comments
Open

Post method should take arrays, not JSON strings. #5

JonathanAquino opened this issue Jul 22, 2016 · 0 comments

Comments

@JonathanAquino
Copy link

JonathanAquino commented Jul 22, 2016

The PostArticle example shows that you have to give it JSON strings for the article and the metadata.

However, this is a bit silly - the Post() method should take care of JSON-encoding the arrays that we give it.

Please allow Post() to accept arrays for the 'json' and 'metadata' parameters - it is a lot more natural for a PHP API than requiring JSON strings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant