Forum - Trouble retrieving analytics XML via REST
- This topic has 9 replies, 6 voices, and was last updated 8 years, 1 month ago by Anonymous.
- September 19, 2014 at 4:12 pm #33951AnonymousInactive
I am having difficulty retrieving analytics reports via the REST API.
I am trying with the API console in the dev center, and also with PHP code on my own server.
I am wondering if it has something to do with how I am presenting the report path?
(Just FYI, I am successfully using the REST API for bibs, so my API key and generate account setup is generally working.)
Here is the response I am currently getting via the API console for the analytics report API:
Response-Status: HTTP/1.1 500 Internal Server Error
Date: Fri, 19 Sep 2014 16:08:31 GMT
p3p: CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<errorMessage>Invalid path (%2Fshared%2FUniversity%20of%20Puget%20Sound%2FReports%2FArchives%20and%20Special%20Collections%20-%20New%20in%202014) —
(Tracking ID: E01-1909160831-OP1OL-AWAE786516885)</errorMessage>
</web_service_result>September 20, 2014 at 12:23 pm #35326AnonymousInactive
Exact same problem here. Was working 10 days ago but not anymore.
(Probably unrelated but I’m missing the “Select an application” dropdown from the Analytics “Try it now!” page although a dropdown with my defined application is selectable in the API console for Analytics.)September 21, 2014 at 1:50 pm #35327AnonymousInactive
Being a form, the API console does not need to URL-encode the parameters, so if you try path=/shared/University of Puget Sound/Reports/Archives and Special Collections – New in 2014, this should work.
OpherSeptember 21, 2014 at 7:00 pm #35328AnonymousInactive
All is well again for me now, useful to know about not URL encoding the path in the console. Thanks.September 23, 2014 at 5:38 pm #35330AnonymousInactive
Thanks. Turns out it was an apostrophe in the report name that was causing my error.December 29, 2014 at 6:05 pm #35392AnonymousInactive
Here at Whitman College, I have same problem access Analytics
https://api-na.hosted.exlibrisgroup.com/almaws/v1/analytics/reports?path=/shared/Whitman College/Reports/New Item Report&limit=250&apikey=
I get this error
access denied for user to path /shared/Whitman College/Reports/New Item Report.
(Tracking ID: E01-2912180253-EVKQT-AWAE1720371606)December 30, 2014 at 2:56 pm #35393AnonymousInactive
I don’t know which of your applications you’re trying, but I do see that your ‘Sandbox Test’ app is pointed at the guest sandbox environment (which naturally does not have this report).
If you have a sandbox environment, please try pointing your app to it. Otherwise, I suggest pointing it to your production environment.
OpherJanuary 2, 2015 at 5:46 pm #35394AnonymousInactive
The API Key I am using did pointed to Production server. But now, I saw a different error message
A username and password are being requested by https://api-na.hosted.exlibrisgroup.com. The site says: “Secure Delivery”
They’re asking a username password for “secure delivery”.
Where do I find those username?January 4, 2015 at 7:06 am #35395AnonymousInactive
There might be a problem with the setup for 01ALLIANCE_WHITC and if so we apologize for that.
Please send me the complete URL you are trying to send (including the API-key) and I will investigate it ASAP.
Alma API Team
Ori.Miller@exlibrisgroup.comJanuary 5, 2015 at 5:10 pm #35396AnonymousInactive
It looks like it cured itself. It is working fine now.
- You must be logged in to reply to this topic.