chapter-three / AppleNewsAPI

This is a PHP library that allows you to publish content to Apple News and construct documents in the Apple News JSON format.
MIT License
39 stars 25 forks source link

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

Open JonathanAquino opened 8 years ago

JonathanAquino commented 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.