using the core api to pull display information

  • 1
  • Problem
  • Updated 3 years ago
  • Solved
I’m new to this platform, also new to the google api in general. My overall problem is that I would like to retrieve information about my displays and insert into my database for use later. However, I keep getting the 404 response when using Core API v2.0: Retrieve a list of Displays. When using v1 I get no data available.

Fyi: I’m using the firebug tool to debug my javascript.

Sending a jsonp request to: https://SERVER/v2/company/{companyId}...

What is my company id? I used the value from the url when modifying a company. Do I use that or my authentication key?

my request is:
 

$.getJSON('https://rdncore.appspot.com/v2/company/e6f4f0d9-7dbb-4a0b-8ecd-6f69c9708a6b/displays&callback=?',
function(data) {
var myJSONText = JSON.stringify(data, replacer);
document.getElementById("demo").innerHTML=myJSONText;
}
);


my script returns as follows:
 

<script async="" src="https://rdncore.appspot.com/v2/company/e6f4f0d9-7dbb-4a0b-8ecd-6f69c9708a6b/displays&callback=jQuery17208008602971810824_1339434830928?_=1339434858089">
<html><head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>404 Not Found</title>
</head>
<body text=#000000 bgcolor=#ffffff>
<h1>Error: Not Found</h1>
<h2>The requested URL <code>/v2/company/e6f4f0d9-7dbb-4a0b-8ecd-6f69c9708a6b/displays&callback=jQuery17208008602971810824_1339434830928?_=1339434858089
was not found on this server.



"
Photo of Joey B

Joey B

  • 90 Points 75 badge 2x thumb
  • frustrated

Posted 6 years ago

  • 1
Photo of Robb

Robb, Official Rep

  • 76,676 Points 50k badge 2x thumb
Hi there,

Sorry to hear you are having trouble. We looked but we unfortunately can't find your requests to the Core, so that typically means you're calling the wrong URl or the requests were made a couple of hours or possibly a day ago.

Your Company ID is correct, however from the screenshots above, you may not be calling the correct URL, instead of rdncore.appspot.com, you should be using rvaserver2.appspot.com/.

Let us know how you make out.

Thanks!
Photo of Joey B

Joey B

  • 90 Points 75 badge 2x thumb
hi Robb, thanks for your assistance. i've swicthed the url but i'm still getting Not Found.

<script async="" src="https://rvaserver2.appspot.com/v2/company/e6f4f0d9-7dbb-4a0b-8ecd-6f69c9708a6b/displays&callback=jQuery17202520778958733847_1339449009015?_=1339449039620">

<html>
<head>
<title>Status page</title>
</head>
<body style="font-family: sans-serif;">
<p style="font-size: 1.2em;font-weight: bold;margin: 1em 0px;">Not Found</p>
<p>The server has not found anything matching the request URI</p>
<p>You can get technical details <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.5">here</a>.<br>
Please continue your visit at our <a href="/">home page</a>.
</p>
</body>
</html>
</script>


I've made some request within the past hour.
Photo of Robb

Robb, Official Rep

  • 76,676 Points 50k badge 2x thumb
Joey,

I passed this question to our Developers, and they informed me of the following:

Your URL is:
https://rvaserver2.appspot.com/v2/com...

You should have a ? instead of an & to begin the querystring parameter, so the following:
https://rvaserver2.appspot.com/v2/com...

will result in the correct "unauthorized" response code.

Let me know if that corrects your issue.

Thanks!
Photo of Joey B

Joey B

  • 90 Points 75 badge 2x thumb
Hey Robb,

the little things cause the biggest headaches!!! thanks so much. im now getting the unauthorized code.
Photo of Robb

Robb, Official Rep

  • 76,676 Points 50k badge 2x thumb
Great to hear Joey. Let us know if you have any other questions.
Photo of jatin kumar

jatin kumar

  • 140 Points 100 badge 2x thumb
hi, Joey
can u tell me how you implemented core api,,,,urgently needed if possible plz send code @ my mail id jatin4u.789@gmail.com,,, i want to implement core api using ASP.Net

thanks
Photo of Rakesh Allampati

Rakesh Allampati

  • 260 Points 250 badge 2x thumb
hi,

How to solve that unauthorized problem for accessing the rise vision API.
Even though i am giving the token which generated from the Goggle API, still the same Un-Authorized problem.

can u tell me how u solved the problem to access the rise vision API.

Thanks,
Rakesh
Photo of Robb

Robb, Official Rep

  • 76,676 Points 50k badge 2x thumb
Rakesh,

Just to confirm, have you registered your app here: https://developer.risevision.com/apps/list?

Thanks!