This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /usr/bin/python | |
| # Author:: Sébastien Briois (mailto:[email protected]) | |
| import httplib2 # http://httplib2.googlecode.com/files/httplib2-0.6.0.zip | |
| import urllib | |
| import base64 | |
| try: | |
| import json # Python 2.6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /usr/bin/env ruby -wKU | |
| # Author:: Sébastien Briois (mailto:[email protected]) | |
| require "rubygems" | |
| require "rest_client" | |
| require "json" | |
| DOMAIN = RestClient::Resource.new( "http://user:password@localhost:3000" ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /usr/bin/python | |
| import httplib | |
| import base64 | |
| try: | |
| import json # Python 2.6 | |
| except ImportError: | |
| import simplejson as json # Python 2.4+ - http://pypi.python.org/pypi/simplejson/2.0.9 | |
| DOMAIN = "localhost:3000" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use LWP::UserAgent; | |
| use URI; | |
| use JSON; | |
| # Settings | |
| my $url_base = 'http://user:password@localhost:3000'; | |
| my $browser = LWP::UserAgent->new; | |
| # Helper method | |
| sub request { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /usr/bin/python | |
| import httplib | |
| import base64 | |
| try: | |
| import json # Python 2.6 | |
| except ImportError: | |
| import simplejson as json # Python 2.4+ - http://pypi.python.org/pypi/simplejson/2.0.9 | |
| DOMAIN = "localhost:3000" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby -wKU | |
| # Author:: Sébastien Briois (mailto:[email protected]) | |
| require "rubygems" | |
| require "rest_client" | |
| require "json" | |
| IDCC_SITE = "http://user:password@localhost:3000" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /usr/bin/env ruby -wKU | |
| # Author:: Sébastien Briois (mailto:[email protected]) | |
| require "rubygems" | |
| require "rest_client" | |
| require "json" | |
| IDCC_SITE = "http://user:password@localhost:3000" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env perl | |
| # | |
| # Author:: Sebastien Briois (mailto:[email protected]) | |
| # | |
| # This is an example script demonstrating how you can | |
| # interact with the I-DCC Targeting Repository via its | |
| # web services interface. | |
| # | |
| # In this Perl example we use the HTTP module to |