You are here

public static function clients_connection_flickr::connect in Web Service Clients 7

Use for testing

2 calls to clients_connection_flickr::connect()
clients_connection_flickr::getUser in backends/clients_flickr/clients_flickr.inc
Connects to Drupal Services and logs in the user provided in the config. Returns a session for the user. @todo needs error catching in case service is down
clients_flickr_add_validate in backends/clients_flickr/clients_flickr.module
Implementation of hook_validate()

File

backends/clients_flickr/clients_flickr.inc, line 16
Defines Flickr services and calls

Class

clients_connection_flickr

Code

public static function connect($connection) {
  $session = drupal_http_request($connection->endpoint . '?method=flickr.test.echo');
  if ($session === FALSE) {
    drupal_set_message('Error connecting');
  }
  return $session;
}