Resource Information
Method | GET |
---|---|
URL | https://public-api.wordpress.com/rest/v1.1/me/connected-applications/ |
Requires authentication? | No |
Query Parameters
Parameter | Type | Description |
---|---|---|
context | (string) |
|
http_envelope | (bool) |
|
pretty | (bool) |
|
meta | (string) | Optional. Loads data from the endpoints found in the 'meta' part of the response. Comma-separated list. Example: meta=site,likes |
fields | (string) | Optional. Returns specified fields only. Comma-separated list. Example: fields=ID,title |
callback | (string) | An optional JSONP callback function. |
Response Parameters
Parameter | Type | Description |
---|---|---|
connected_applications | (array) | A list of current user's connected applications. |
Resource Errors
These are the possible errors returned by this endpoint.
HTTP Code | Error Identifier | Error Message |
---|---|---|
403 | authorization_required | An active access token must be used to retrieve information about the current user. |
404 | unknown_application_access_token | The requested application access token was not found. |
401 | reauthorization_required | A fresh access token must be used to query information about the current user. |
Example
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | <?php $options = array ( 'http' => array ( 'ignore_errors' => true, ), ); $context = stream_context_create( $options ); $response = file_get_contents ( false, $context ); $response = json_decode( $response ); ?> |
Response
1 2 3 | { "success" : true } |