Anyone that knows how to do basic_auth with rest-client?
http://github.com/archiloque/rest-client
I need to create a private repository on GitHub through their Restful API.
Anyone that knows how to do basic_auth with rest-client?
http://github.com/archiloque/rest-client
I need to create a private repository on GitHub through their Restful API.
From the source it looks like you can just specify user and password as part of your request object.
Have you tried something like:
r = Request.new({:user => "username", :password => "password"})
Also if you look down in the Shell section of the ReadMe it has an example of specifying it as part of the restshell.
$ restclient https://example.com user pass
>> delete '/private/resource'