Use with Sierra APi
-
Hi,
I am trying to link to the Sierra API V3 and when I do I get the following debug:DEBUG: Cache is active DEBUG: try to retieve https://libcat.mysite.edu:443/iii/sierra-api/v3/ DEBUG: wp_remote_get to https://libcat.mysite.edu:443/iii/sierra-api/v3/ DEBUG: arguments: Array ( [timeout] => 20 [headers] => Array ( [Authorization] => Bearer MnRLUchanged_codeRhdDg= ) [sslverify] => ) DEBUG: success getting URL DEBUG: api-answer: Sierra Rest API Version: 3.2.0 SierraVersion: 3.0 FullVersion: 3.0_3.2.0 Revision: 5a8d3671d83ea9afc67906f4a4b2e15a4ab5f777 RevisionDate: Tue Jan 10 00:25:00 2017 +0000 Backwards Compatible: 2.0, 2.1, 3.0, 3.1 DEBUG: basenode: Bib DEBUG: template: </p><ul><li>{createdDate}</li></ul><p>
I’m not sure what the basenode value is but this may help
/v3/bibs/
Response Class
ModelModel Schema
BibResultSet { total (integer, optional): the total number of results, start (integer, optional): the starting position of this set, entries (array[Bib]): the bibs in this set } Bib { id (string): the record ID, updatedDate (string, optional): the date and time of the last update to the record, in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ssZZ), createdDate (string, optional): the date and time the record was created, in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ssZZ), deletedDate (string, optional): the date the record was deleted, in ISO 8601 format (yyyy-MM-dd),
{ "total": 50, "entries": [ { "id": "1000001", "updatedDate": "2011-10-27T19:10:02Z", "createdDate": "2007-07-16T17:54:00Z", "deleted": false, "suppressed": false, "lang": { "code": "eng", "name": "English"
..using
[jsoncontentimporter url="https://libcat.mysite.edu:443/iii/sierra-api/v3" numberofdisplayeditems="30" basenode="Bib" debugmode=10 urlgettimeout=20]</p><ul><li>{createdDate}</li></ul><p>[/jsoncontentimporter]
Newbie looking for easy way to display api json results on a webpage.
Thanks
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Use with Sierra APi’ is closed to new replies.