PHP Class SevenShores\Hubspot\Factory

Afficher le fichier Open project: fungku/hubspot-php

Méthodes publiques

Méthode Description
__call ( string $name, array $arguments = null ) : Resource Return an instance of a Resource based on the method called.
__construct ( array $config = [], Client $client = null ) C O N S T R U C T O R ( ^_^)y
create ( string $api_key = null, Client $client = null ) : static Create an instance of the service with an API key.
createWithToken ( string $token, Client $client = null ) : static Create an instance of the service with an Oauth token.

Method Details

__call() public méthode

Return an instance of a Resource based on the method called.
public __call ( string $name, array $arguments = null ) : Resource
$name string
$arguments array
Résultat SevenShores\Hubspot\Resources\Resource

__construct() public méthode

C O N S T R U C T O R ( ^_^)y
public __construct ( array $config = [], Client $client = null )
$config array An array of configurations. You need at least the 'key'.
$client SevenShores\Hubspot\Http\Client

create() static public méthode

Create an instance of the service with an API key.
static public create ( string $api_key = null, Client $client = null ) : static
$api_key string Hubspot API key.
$client SevenShores\Hubspot\Http\Client An Http client.
Résultat static

createWithToken() static public méthode

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.
Résultat static