Open JonathanAquino opened 8 years ago
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.
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.