You are here

function hook_clients_default_connections in Web Service Clients 7.3

Define default client connections.

Used via EntityAPI exportables.

1 function implements hook_clients_default_connections()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

clients_test_clients_default_connections in tests/clients_test/clients_test.module
Implements hook_clients_default_connections().

File

./clients.api.php, line 126
Hooks provided by the Clients module.

Code

function hook_clients_default_connections() {
  $items = array();
  $items['my_connection'] = entity_import('clients_connection', '{
    "name" : "my_connection",
    "endpoint" : "https:\\/\\/example.com\\/services\\/",
    "configuration" : {
      "debug" : 0,
      "credentials_storage" : "connection_configuration",
      "username" : "user",
      "password" : "password"
    },
    "label" : "My connection",
    "type" : "drupal_services_rest_7"
  }');
  return $items;
}