The client API of credid-server
Add this to your application's shard.yml
:
dependencies:
auth-api:
github: Credid/credid-api
require "credid-api"
api = Credid::Api.new(ip: "127.0.0.1", port: 8999_u16, username: "root", passowrd: "toor")
puts api.auth!
puts api.has_access_to? "/tmp", "write" if api.success?
api.close
TODO: Write usage instructions here
TODO: Write development instructions here
- Fork it ( https://github.com/Credid/auth-api/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
- Nephos Arthur Poulet - creator, maintainer