pardot icon indicating copy to clipboard operation
pardot copied to clipboard

Support Pardot API v4

Open sminnee opened this issue 8 years ago • 6 comments

Pardot now has a v4 API, and new accounts don't seem to work with the v3 API. It would be great if the v4 API was supported by this package.

sminnee avatar Jul 13 '16 00:07 sminnee

Hi @sminnee! Thanks for bringing that to my attention. Would you be willing to help? I no longer have access to a pardot account, but could help with concepts and reviews.

hglattergotz avatar Jul 13 '16 07:07 hglattergotz

I've been able to make use of this library using version 4 just by changing the version property in the Connector class. All I'm using is the form query and form read endpoints, so I can't say that this library is 100% compatible with version 4, but it works well enough for me.

davejtoews avatar Sep 26 '17 16:09 davejtoews

The v4 api is mostly the same as far as I can see. The big difference is that multiple prospects can have the same email address so you can no longer use that as a primary key.

E.g you can no longer assign visitors to prospects by email address. You have to first get prospect(s) by email address, grab their ID then assign the visitor to the prospect via ID. Just be careful what params you pass and you should be fine.

grgcnnr avatar Jul 09 '18 22:07 grgcnnr

@grgcnnr PR #5 is pending for v4, but I was lacking context, which you now have provided. Any chance you could help out with getting this over the finish line?

hglattergotz avatar Jul 10 '18 13:07 hglattergotz

@hglattergotz ive only just started an integration using pardot so will let you know how I go.

This PR looks fine especially since you can pass the version to the constructor right?

@sminnee @davejtoews you should be able to pass version in as a parameter when you instantiate Connector

grgcnnr avatar Jul 10 '18 20:07 grgcnnr

Any chance of getting a release for this change? I'm using dev-master in composer to get v4 to work, but would prefer to not have to use that.

grantbrokergenius avatar Nov 21 '18 00:11 grantbrokergenius