Add the following line to your application's Gemfile.
And then run
First, get a token:
token = ::Auth::Token.create(email: '[email protected]', password: 'password')
From here, you can interact with the Billing API however you wish:
billing_details = ::::.find(id: '1', token: token) billing_details.href# => "http://localhost:4000/billing_details/1"
||Root URL of the billing server||
To point the client at a different billing server (e.g., during development),
add the following to your application's initializers (or set the
APTIBLE_BILLING_ROOT_URL environment variable):
::.configure do |config| config.root_url = 'http://some.other.url' end
- Fork the project.
- Commit your changes, with specs.
- Ensure that your code passes specs (
rake spec) and meets Aptible's Ruby style guide (
- Create a new pull request on GitHub.
Copyright and License
MIT License, see LICENSE for details.
Copyright (c) 2015 Aptible, and contributors.