How to authorize for using the REST URL's

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
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
vtmikel
Posts: 717
Joined: Fri Aug 31, 2012 12:45 pm
Location: Boston, MA
Contact:

How to authorize for using the REST URL's

Post by vtmikel »

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.
User avatar
jay (support)
Site Admin
Posts: 19232
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

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

Post by jay (support) »

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
bschollnick2
Posts: 1355
Joined: Sun Oct 17, 2004 8:21 am
Location: Rochester, Ny
Contact:

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

Post by bschollnick2 »

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
vtmikel
Posts: 717
Joined: Fri Aug 31, 2012 12:45 pm
Location: Boston, MA
Contact:

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

Post by vtmikel »

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.
Locked

Return to “Extending Indigo with Plugins and Python”