GET /meta/external-services/$service

Get information about a single external service that WordPress.com or Jetpack sites can integrate with via keyring.

Resource Information

   
Method GET
URL https://public-api.wordpress.com/rest/v1.1/meta/external-services/$service
Requires authentication? No

Method Parameters

Query Parameters

Response Parameters

Resource Errors

These are the possible errors returned by this endpoint.

HTTP Code Error Identifier Error Message
404 not_found The service provided does not exist

Example

curl 'https://public-api.wordpress.com/rest/v1.1/meta/external-services/facebook'
<?php
$options  = array (
  'http' => 
  array (
    'ignore_errors' => true,
  ),
);

$context  = stream_context_create( $options );
$response = file_get_contents(
	'https://public-api.wordpress.com/rest/v1.1/meta/external-services/facebook',
	false,
	$context
);
$response = json_decode( $response );
?>

Response

{
    "ID": "facebook",
    "label": "Facebook",
    "type": "publicize",
    "description": "Publish your posts to your Facebook timeline or page.",
    "genericon": {
        "class": "facebook-alt",
        "unicode": "\\f203"
    },
    "icon": "http:\/\/i.wordpress.com\/wp-content\/admin-plugins\/publicize\/assets\/publicize-fb-2x.png",
    "connect_URL": "https:\/\/public-api.wordpress.com\/connect\/?action=request&kr_nonce=bd1d3b3bd8&nonce=de788f17f2&for=connect&service=facebook&kr_blog_nonce=8f1a9b3ff3&magic=keyring&blog=2916284",
    "multiple_external_user_ID_support": true,
    "external_users_only": true,
    "jetpack_support": true,
    "jetpack_module_required": "publicize"
}