Example #1
0
 /**
  * Returns Lists Rest HTTP client
  * @param  string $id
  * @return OP_CS_REST_Lists
  */
 public function getListsClient($id)
 {
     if (null === $this->clientsClient) {
         $this->clientsClient = new OP_CS_REST_Lists($id, array('api_key' => $this->apiKey));
         $this->clientsClient->set_logger($this->logger);
     }
     return $this->clientsClient;
 }
Example #2
0
 /**
  * Returns Clients Rest HTTP client
  * @param  string $id
  * @return OP_CS_REST_Clients
  */
 public function getClientsClient($id)
 {
     $client = new OP_CS_REST_Clients($id, array('api_key' => $this->apiKey));
     $client->set_logger($this->logger);
     return $client;
 }