API3
gldev at November 10th, 2014 09:35 — #1
Hello,
We are trying to export contact information through the API using the credentials of the account holder. We have access only to the contacts owned by the account owner, but not for the contacts owned by the other team members.
Would you please advise?
Thank you.
liam at November 10th, 2014 10:02 — #2
Hello @gldev,
To receive all users' contacts via the API use the team
Listing Param in contacts.
Your call will look like http://app.onepagecrm.com/api/vs/contacts?team=true
.
-Liam
gldev at November 10th, 2014 10:24 — #3
Hi Liam,
Thank you for your help.
Have a great day.
Cheers!
nevenavv at August 2nd, 2017 04:16 — #4
I'm having problem with team field all of a sudden - using python lib, and the code haven't changed:
onepagecrm.get('contacts', team=True, per_page=100, page=p)
Getting:
{u'status': 400, u'errors': {u'team': u'Provided value has invalid format'}, u'message': u'Invalid request data', u'error_message': u'A validation error has occurred', u'error_name': u'invalid_request_data'}
Any insights?
johnmag at August 2nd, 2017 05:09 — #5
Hi there @nevenavv,
Could you try using a lower case t for team value true.
Our API seems to give an error when using uppercase T for boolean value .
Let me know how this works for you.
-John
nevenavv at August 2nd, 2017 05:18 — #6
Thanks John, passing team as string "true" did help.
Powered by Discourse, best viewed with JavaScript enabled