API3
lucasas at November 24th, 2014 08:15 — #1
Hi guys,
I'm using APIv3 and I'm trying to read informations about an existing contact, who belongs to another user, but I can't, since (probably) using API is not possible to visualize users who don't belong to me.
Using admin page, I can read, update or delete users who don't belongs to me. I think this is a big problem.
PS: My user is an administrator.
Cheers.
liam at November 24th, 2014 08:45 — #2
Hi Lucasas,
By default you only receive the contacts owned by the signed in user through the API.
To override this you must use the team listing param, it's the 5th last in the Listing Params table for contacts in our documentation.
To summarize, your request url should look like this:
https://app.onepagecrm.com/api/v3/contacts?team=true
lucasas at November 24th, 2014 09:03 — #3
Thanks @Liam... I'm gonna try it.
liam at November 24th, 2014 09:07 — #4
No problem, let me know how it goes.
If you're interested in shaving off 3 bytes you can substitute "1" for "true" in url query params:
https://app.onepagecrm.com/api/v3/contacts?team=1
Powered by Discourse, best viewed with JavaScript enabled