Object record's Private data

Ask questions related to the eHive application programming interfaces, including the OAI-PMH data harvester, REST API and WordPress plugins.
karan.kumar
Posts: 5
Joined: Tue Aug 09, 2016 2:40 pm

Object record's Private data

Postby karan.kumar » Tue Aug 09, 2016 10:30 pm

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.

Best Regards,
Karan

Darren
Posts: 20
Joined: Fri Dec 07, 2012 8:23 am

Re: Object record's Private data

Postby Darren » Fri Aug 12, 2016 4:00 pm

Hi Karan

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

Kind regards
Darren

karan.kumar
Posts: 5
Joined: Tue Aug 09, 2016 2:40 pm

Re: Object record's Private data

Postby karan.kumar » Wed Aug 31, 2016 2:23 pm

Thank you very much Darren :)


Return to “Developers”

Who is online

Users browsing this forum: No registered users and 2 guests