SevenShores\Hubspot\Factory::createWithToken PHP Метод

createWithToken() статический публичный Метод

Create an instance of the service with an Oauth token.
static public createWithToken ( string $token, Client $client = null ) : static
$token string Hubspot oauth access token.
$client SevenShores\Hubspot\Http\Client An Http client.
Результат static
    static function createWithToken($token, $client = null)
    {
        return new static(['key' => $token, 'oauth' => true], $client);
    }