Start a new topic
Answered

Object's record's Private data

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*


Best 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. 

/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)"

1 Comment

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. 

/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)"

Login or Signup to post a comment