Thanks a lot @phena109! I got nicely with this library all the contact data (except profile_token and profile_url that return value 0 for me) but can't find any example code to move on with updating contact data by vid or email when it's updated externally.
PS. I'm also trying to sync Hubspot (or something else you suggest - checking also Zoho and some others - haven't picked the one yet) and our external system in the way that we check the contact's last updated date and overwrite the older with newer if the date isn't equal. Only thing I know we can't get via API from HubSot is avatar but that's not an issue if we can send avatar to HubSpot via API (not sure about that yet).
I think this is by far a much better PHP library to use the hubspot API. It is up-to-date and very intuitive. It also cover almost every API that hubspot provides.
I'm trying to use hubspot-php library but I have some problems. It's all fine when creating a contacts object but then I can not call any function; getting a Http 500
require 'vendor/autoload.php';
use SevenShores\Hubspot\Http\Client;
use SevenShores\Hubspot\Resources\Contacts;
$client = new Client(['key' => 'demo']);
$contacts = new Contacts($client); $contact = $contacts->getByEmail("bh@hubspot.com"); //not working
I don’t mean to interfere with how you code your project. But you sound to me not using composer. If you are using composer, you should have no issue with the dependency of Guzzle.
@ar-hz I don’t believe that repository is up to date. It was last worked on in October of 2015. Did you choose php for that library or do you have experience coding in php
Thanks @pmanca We have a platform based on PHP and I need to integrate Hubspot with it. Therefore, I needed the PHP library. Is there a JS library tho?
If this library is outdated then I guess I just have to write the CURL method and make my own client-library?
@ar-hz The best way might be able to make your own CURL methods, and client-library.
I have written a node.js library here which I can help you out with if you choose to go that route. I’d also be more then happy to work with you through PHP. I just can’t speak to that specific php library.