Core API Example App Debug Party!

  • 6
  • Idea
  • Updated 3 years ago
  • Not Planned
Hey everybody,

I posted an example in another thread about how to use Rise's Core API to access company information. There's not a whole lot to it, but so far, it's only worked for about half of those that have tried it. Hannah and Robb have been able to give me some feedback about what it's doing when it's not working, and I would like to figure it out so we can have it work for everyone. 

If you are interested in using Rise's Core API, and you want to help, the party starts by going to...http://45.55.74.55/Rise/

When you log in with a Google account that is linked to a Rise Vision company, it should return information about all of your displays. Once you have logged in, post back here and report what happened.

I have also hosted the example on GitHub...https://github.com/tantangula/rise-display-status-example
Photo of Stephen Garrett

Stephen Garrett, Champion

  • 2,674 Points 2k badge 2x thumb

Posted 3 years ago

  • 6
Photo of HSuarez

HSuarez

  • 11,896 Points 10k badge 2x thumb
Genuinely thought this was an RL party -_-
I logged in again, also via incongito, and seeing the same item as the screenshot posted. I'll give this another go later and under a non RV account.
Photo of Stephen Garrett

Stephen Garrett, Champion

  • 2,674 Points 2k badge 2x thumb
That may be right. In the limited testing we have been able to do, that has been the only difference between the ones that work and the ones that do.
Photo of Stephen Garrett

Stephen Garrett, Champion

  • 2,674 Points 2k badge 2x thumb
Hannah,

Can you go to Rodrigo's API console and click on the core.display.list option and execute. Then, see if it gives you any displays at all back?

http://rise-vision.github.io/core-api/
Photo of HSuarez

HSuarez

  • 11,896 Points 10k badge 2x thumb
Hi!
I did just that and it returned a list of Displays. Let me know if you need anything else
Photo of Stephen Garrett

Stephen Garrett, Champion

  • 2,674 Points 2k badge 2x thumb
Okay, so much for that theory. I'm not sure what the deal is then. Thanks for checking that for me.
Photo of HSuarez

HSuarez

  • 11,896 Points 10k badge 2x thumb
I'd say different user access. Gave it a go with the standard account and it works for me
Photo of Mark Parsons

Mark Parsons

  • 1,802 Points 1k badge 2x thumb
Followed via latest version of Firefox, got a pop-up request which took company login info, and then it displayed Company Name, Logged in As, and listed out our displays with presentations attached.
Photo of Stephen Garrett

Stephen Garrett, Champion

  • 2,674 Points 2k badge 2x thumb
Thanks Mark! Expected output! Feelin' the Bern!
Photo of Jim Coyle

Jim Coyle, Champion

  • 1,494 Points 1k badge 2x thumb
Hi Stephen,

I set up your github code on http://abzmedia.scot and it works fine on there for me. I also tried your original link at http://45.55.74.55/Rise/ and had no problems.

regards
Jim Coyle
Photo of Stephen Garrett

Stephen Garrett, Champion

  • 2,674 Points 2k badge 2x thumb
Awesome Jim! That's working for me, too.
Photo of Stephen Garrett

Stephen Garrett, Champion

  • 2,674 Points 2k badge 2x thumb
Anyone else want to try this?

http://45.55.74.55/Rise/
Photo of Nidal HADDAD

Nidal HADDAD

  • 418 Points 250 badge 2x thumb
hi stephen it's me again, first i want to thank you for your help, now i get to display background image for the text widget, and also tried the code api example worked as expected, and i'ill try to do some css for it to look good, 
thanks again.
and by any chance are you going to ISE in amsterdam next week ? 
Photo of Stephen Garrett

Stephen Garrett, Champion

  • 2,674 Points 2k badge 2x thumb
Cool I'm glad everything is working. I'm going to a trade show in North Carolina in the US, but Amsterdam sounds like it would be a lot more fun!
Photo of Steve Gregory

Steve Gregory, Champion

  • 1,186 Points 1k badge 2x thumb
This is not working for me - the page at http://45.55.74.55/Rise/ renders as a blank screen and the javascript console complains:
cb=gapi.loaded_0:90
GET https://content.googleapis.com/oauth2/v2/userinfo 401 ()
I'm logging in with my regular gmail account that I use with Rise Vision.
Photo of Stephen Garrett

Stephen Garrett, Champion

  • 2,674 Points 2k badge 2x thumb
Ahh yes, I get the same thing too... I need to see what's happening with that.

The site is hosted by a virtual machine on DigitalOcean. It uses a really simple Node.js server that didn't have any security implemented because I was just trying to get it working for development. I actually can't log into it now as root so I am going to have to back up the files and wipe it. Then, do a better job setting it up the next time.

We still have an admin tool internally here that is using the code this admin tool uses, so the code itself should still work if you host it.

If you have any questions about hosting it, I can try to help with that, too.
Photo of Steve Gregory

Steve Gregory, Champion

  • 1,186 Points 1k badge 2x thumb
Great, no rush.  Mostly I'm interested in reading the source code as I'm working on learning the API.  I will see if I can get it to work on my local node.js environment.
Photo of Stephen Garrett

Stephen Garrett, Champion

  • 2,674 Points 2k badge 2x thumb
Cool. Let me know how it turns out.
Photo of Robb

Robb, Official Rep

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

I've asked Stephen to chime in. Thanks!