coderjerk / hubsnot
Hubspot API v3 Client
Fund package maintenance!
danieldevine
Requires
- guzzlehttp/guzzle: ^7.0
- guzzlehttp/oauth-subscriber: ^0.6.0
Requires (Dev)
- league/oauth1-client: ^1.10
- phpunit/phpunit: ^9.5
- symfony/var-dumper: ^5.1
- vlucas/phpdotenv: ^5.2
README
PHP client for the Hubspot API v3
A very simple client because their own one looks unfinished and isn't really usable.
Just solving my own use case for now, which is simply to grab a list of available forms, more to come. Don't use in production unless this is all you want to do too.
$credentials = [ 'hubspot_access_token' => $_ENV['HUBSPOT_ACCESS_TOKEN'] ]; $hubsnot = new Hubsnot($credentials); $params = [ 'limit' => 200, ]; $forms = $hubsnot->forms()->getForms($params); foreach ($forms->results as $form) { echo nl2br($form->name . "\r\n"); echo nl2br($form->id . "\r\n"); }