Could anyone please guide me on how can I retrieve private data of an object record.
In my account settings, I did select the option "Account - public and private data (oAuth only)". And while making an API call I'm instantiating EhiveApi object with OAuth access token but still only getting public data.
Any help would be highly appreciated.
*Question from old eHive forum*
Best Answer
L
Leisa Taylor
said
almost 6 years ago
Try the following endpoints:
Search for records by account. The content attribute can have the value "public", "private" or "any". Any will give you both public and private results.
Get an object by objectRecordId The content attribute with a value of "any" will give you the private and public fields.
/objectrecords/{objectRecordId}?content=any
You have your api key configured correctly, " Account - public and private data. (oAuth only)"
1 Comment
Leisa Taylor
said
almost 6 years ago
Answer
Try the following endpoints:
Search for records by account. The content attribute can have the value "public", "private" or "any". Any will give you both public and private results.
Leisa Taylor
Hi guys,
Could anyone please guide me on how can I retrieve private data of an object record.
In my account settings, I did select the option "Account - public and private data (oAuth only)". And while making an API call I'm instantiating EhiveApi object with OAuth access token but still only getting public data.
Any help would be highly appreciated.
*Question from old eHive forum*
Try the following endpoints:
Search for records by account.
The content attribute can have the value "public", "private" or "any". Any will give you both public and private results.
/accounts/{accountId}/objectrecords?query=stuff&content=any
Get an object by objectRecordId
The content attribute with a value of "any" will give you the private and public fields.
/objectrecords/{objectRecordId}?content=any
You have your api key configured correctly, " Account - public and private data. (oAuth only)"
Leisa Taylor
Try the following endpoints:
Search for records by account.
The content attribute can have the value "public", "private" or "any". Any will give you both public and private results.
/accounts/{accountId}/objectrecords?query=stuff&content=any
Get an object by objectRecordId
The content attribute with a value of "any" will give you the private and public fields.
/objectrecords/{objectRecordId}?content=any
You have your api key configured correctly, " Account - public and private data. (oAuth only)"