How to authorize for using the REST URL's

Forum rules

This is a legacy forum which is locked for new topics. New topics should be started in one of the other forums under Extending Indigo

Posted on
Mon May 13, 2013 1:17 pm
vtmikel offline
Posts: 628
Joined: Aug 31, 2012
Location: Boston, MA

How to authorize for using the REST URL's

Hi all-

Is it possible to use the RESTful URL's for Indigo when there is a password set on the web server? If so, how would one send the credentials?

Thanks in advance.

Posted on
Mon May 13, 2013 1:48 pm
jay (support) offline
Site Admin
User avatar
Posts: 18199
Joined: Mar 19, 2008
Location: Austin, Texas

Re: How to authorize for using the REST URL's

Indigo uses http digest authentication so whatever you're using to call the RESTful URLs needs to do the authentication first.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Wed May 22, 2013 10:34 am
bschollnick2 offline
Posts: 1355
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: How to authorize for using the REST URL's

jay (support) wrote:
Indigo uses http digest authentication so whatever you're using to call the RESTful URLs needs to do the authentication first.


And the unofficial Restful API wrapper I made supports authentication directly, so you might want to look into using it?

This is not affiliated with Perceptive Automation, but I feel that other programmers should not have to re-invent the wheel:

The Indigo Restful API, is a python wrapper that makes it easier to control Indigo through the IWS interface.

For example:

Indigo_server = indigo_restful_api.Indigo_Restful_Server ()
Indigo_server.set_server (r"http://192.168.1.110:8080" )
# Indigo_server.set_server_authentication ( "test", "test")
device_list = Indigo_server.get_device_list ()
for device in device_list:
device_information = Indigo_server.get_device_by_name ( device )

name = device_information["name"]
print name

v0.52 - Released 9/8/2012 Download from https://dl.dropbox.com/u/241415/Indigo% ... 0v0.52.zip

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Wed May 22, 2013 11:26 am
vtmikel offline
Posts: 628
Joined: Aug 31, 2012
Location: Boston, MA

Re: How to authorize for using the REST URL's

Thanks! Good to know if and when I start getting into more python scripting. My question was because I was building a plugin for a program called Alfred to support Indigo workflows. I chose to write the plugin in bash script.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest