WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

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

@JonathanAquino

Description

@JonathanAquino

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions