TODO: Write a gem description
Add this line to your application's Gemfile:
gem 'uchiwa'
And then execute:
$ bundle
Or install it yourself as:
$ gem install uchiwa
client = Uchiwa::Client.new(:username => 'USERNAME', :password => 'PASSWORD')
client.access_token # => nil
client.entrypoint # => nil
client.discover! # AutoDiscoverying to get access token and entrypoint to the API using user credentials.
client.access_token # => "cwt=AAEB...buHc"
client.entrypoint # => "https://lyncweb.contoso.com/ucwa/oauth/v1/applications"
or setup with access token
client = Uchiwa::Client.new(:access_token => "cwt=AAEB...buHc")
client.access_token # => "cwt=AAEB...buHc"
client.entrypoint # => nil
client.discover!
client.access_token # => "cwt=AAEB...buHc"
client.entrypoint # => "https://lyncweb.contoso.com/ucwa/oauth/v1/applications"
- Fork it ( https://github.com/meganemura/uchiwa/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request