Overview of Wordpress API Sample Clauses

Overview of Wordpress API. ‌ Wordpress provides four different APIs with diverse types of functionality for handling content, such as images, posts and attachments. For the NOMAD project’s purposes, we focus only on the ▇▇▇▇▇▇▇▇▇.▇▇▇ REST API4, which enables third party applications to retrieve posts and comments from Wordpress blogs. This API has a RESTful design, meaning that the available resources can be accessed via http requests, through a unique ID. For example, in order to get posts from a specific blog of interest, an application should make a call using an http request like the following: • GET ▇▇▇▇▇://▇▇▇▇▇▇-▇▇▇.▇▇▇▇▇▇▇▇▇.▇▇▇/rest/v1/sites/$site/posts/ The $site parameter should be replaced with the blog url, in the form of ▇▇▇▇▇▇▇▇.▇▇▇▇▇▇▇▇▇.▇▇▇. The result of the above call is a JSON object. Version REST API Data Format JSON Calling styles REST Authorization protocols OAuth 2.0 / API key Base URI ▇▇▇▇▇://▇▇▇▇▇▇-▇▇▇.▇▇▇▇▇▇▇▇▇.▇▇▇/rest/v1/