PHP Class SevenShores\Hubspot\Factory

Exibir arquivo Open project: fungku/hubspot-php

Public Methods

Method 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 method

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

__construct() public method

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 method

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.
return static

createWithToken() static public method

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.
return static