How to use new API?

  • 1
  • Question
  • Updated 4 years ago
  • Answered
Hi Risevision,

You have updated the documents on the new API that uses endpoints. I have registered an app in developer.risevision.com using google oAuth's authentication as the tutorials show, but that is about the extent of how far I've gotten.

I've looked at examples like: http://help.risevision.com/#/developer/core-api/companies/core.company.lookup and do not understand how I can incorporate that into my webapp.

I see the code on the side:core.company.lookup.js but that doesn't show you how you're connecting to the api.

Can you provide a PHP or javascript example of how I could actually implement that into a php or html file for my app? If I have one exampled given, I will understand how to incorporate the rest of the API's.

And on a second note. If i go to http://rise-vision.github.io/core-api/ to test out the api with the Authkey of my company that I use on risevision's platform, it just shows company not found. 
Photo of Tyler Balaban

Tyler Balaban

  • 344 Points 250 badge 2x thumb

Posted 4 years ago

  • 1
Hi Tyler,

Thank you for taking the time to post this question.

Well, you have got as far as our documentation could help you. Your question is very important for us as it showed that we have to add the resolution of it to our documentation.

Answer:
To connect to our api you can follow the Google's documentation which is hosted here: https://developers.google.com/api-client-library/javascript/start/start-js.

Also, we have implemented that ourselves on the core-api sample app which you mentioned here. 

Please, take a look at this file: https://github.com/Rise-Vision/core-api/blob/gh-pages/javascript/auth.js

As you noticed you could not find your company when trying the app. That happened because it is connecting to our test environment.You can see it on ROOT variable on the auth.js file. In your implementation you may change it to be https://rvaserver2.appspot.com/_ah/api. We are integrating the api explorer with our developer hub so that will not happen anymore. 

Please don't hesitate to fire questions to us. Let me know if you need further info.

Thank you,


Rodrigo
 
(Edited)
Photo of Tyler Balaban

Tyler Balaban

  • 344 Points 250 badge 2x thumb
Hi Rodrigo,

I guess a big part was that the rvaserver2 was where i needed to point it as i was getting quite frustrated. Thanks so much