FOR changes required for v3 please refer to the v3 branch
Sample application that integrates with Sage One Accounting via the Sage One API.
Authentication with Sage One is handled in the Sage One Controller.
We use the sageone_api_signer gem to sign our API requests.
Clone the repo:
git clone [email protected]:Sage/sageone_api_ruby_sample.git
Update the config/sageone.yml file with your application's client_id
, client_secret
, signing_secret
and callback_url
.
Switch to the project directory, bundle and migrate the db:
cd sageone_api_ruby_sample
bundle install
bundle exec rake db:migrate
Start a local Rails server:
bundle exec rails s
You can now access the home page, sign up, authorize and make an API call.