You are here

public static function ClientsServicesFlickr::connect in Web Service Clients 6

Use for testing

2 calls to ClientsServicesFlickr::connect()
ClientsServicesFlickr::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 17
Defines Flickr services and calls

Class

ClientsServicesFlickr

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;
}