prism access with Curl?

Posted on
Tue Aug 14, 2012 8:47 am
slackman1 offline
Posts: 52
Joined: Jun 20, 2011

prism access with Curl?

Hi,

Is there an 'API' for Indigo Prism? Would like to access certain variables (to start with) from a remote location and this seemed like a quite secure and easy way to do this. And more reliable then email triggers.

Thanks, Gerrit Jan

Posted on
Tue Aug 14, 2012 7:29 pm
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: prism access with Curl?

Prism just relays traffic to the normal Indigo Web Server (running on your Mac). That server has a RESTful API you can access. The details are on the wiki here, which also includes examples for getting and changing variable values.

For accessing the RESTful API away from your home instead of http://127.0.0.1:8176 use your GoPrism reflector URL, like https://myreflector.goprism.com. Depending on how you are accessing it, you might have to specify your Indigo Web Server username and password (the Web server uses HTTP digest authentication).

Image

Posted on
Wed Aug 15, 2012 12:05 am
slackman1 offline
Posts: 52
Joined: Jun 20, 2011

Re: prism access with Curl?

Okay Matt,

That's clear and working now. I tried to mimic my browser url without realizing I could just use the REST api, which I also use from my Arduino nodes...

Kind regards, Gerrit Jan

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 10 guests