API
artcontrol.me uses the wp-api RESTful API system. You can find a github repo that uses this data in IPython notebook here
Here’s an example of the documentation:
Method | Description | arguments |
---|---|---|
Method | Description | arguments |
get_posts |
Call this method to get the recent posts/pages or specify the post/page id to get the specified post information. | argument: dev (optional) value: 1 >> pretty output in browser value: 0 >> default json format to use in your program example: http://artcontrol.me/?wpapi=get_posts&dev=1 argument: id (optional) argument: count (optional) argument: page (optional) example: http://artcontrol.me/?wpapi=get_posts&dev=1&count=2&page=1 argument: comment (optional) argument: content (optional) example: http://artcontrol.me/?wpapi=get_posts&dev=1&comment=1&content=1 |
get_tags |
Call this method to retrieve all tag information | argument: dev (optional) Read more about it in get_posts method argument: count (optional) Read more about it in get_posts method argument: page (optional) Read more about it in get_posts method example: http://artcontrol.me/?wpapi=get_tags&dev=1 argument: id (optional) argument: cat (optional) argument: tag (optional) example: http://artcontrol.me/?wpapi=get_tags&dev=1&cat=1&tag=1 |
get_author |
Call this method to retrieve information about authors registered in the wordpress blog | argument: dev (optional) Read more about it in get_posts method argument: count (optional) Read more about it in get_posts method argument: page (optional) Read more about it in get_posts method example: http://artcontrol.me/?wpapi=get_author&dev=1 argument: id (optional) |
gravatar |
Call this method to connect to the gravatar api and retrieve the gravatar based on the email address you specify. | argument: dev (optional) Read more about it in get_posts method example: http://artcontrol.me/?wpapi=gravatar&dev=1 argument: email (required) argument: size (optional) example: http://artcontrol.me/?wpapi=gravatar&dev=1&email=email@site.com&size=200 |
search |
Call this method and pass keyword argument to return the search results. | argument: dev (optional) Read more about it in get_posts method argument: count (optional) Read more about it in get_posts method argument: page (optional) Read more about it in get_posts method argument: comment (optional) Read more about it in get_posts method argument: content (optional) Read more about it in get_posts method example: http://artcontrol.me/?wpapi=search&dev=1&keyword=post&count=2&page=1&content=1&comment=1 argument: keyword (required) |
comment |
Call this method to submit a comment on a post. | argument: dev (optional) Read more about it in get_posts method example: http://artcontrol.me/?wpapi=comment&dev=1 argument: name (required) argument: email (required) argument: content (required) argument: post_id (required) argument: website (optional) argument: parent (optional) |
Leave a Reply
You must be logged in to post a comment.