public function getAPIClient($token)
    {
        $adapter = new \GuzzleHttp\Client(['base_uri' => self::$endpoint]);
        $service = new Service\REST($token, $adapter);

        $APIClient = new Client($service);

        return $APIClient;
    }
public function getAPIClient($token)
    {
        $adapter = new \GuzzleHttp\Client(['base_uri' => self::$endpoint]);
        $service = new Service\REST($token, $adapter);

        $APIClient = new Client($service);

        return $APIClient;
    }
public function getAPIClient ( $ token ) { $ adapter = new \ GuzzleHttp \ Client ( [ 'base_uri' => self :: $ endpoint ] ) ; $ service = new Service \ REST ( $ token , $ adapter ) ; $ APIClient = new Client ( $ service ) ; return $ APIClient ; }
Return a new instance of the API Client

@param string $token
@return Client
Return a new instance of the API Client