Add this line to your application's Gemfile:
gem 'ost-sdk-ruby'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ost-sdk-ruby
-
TransactionKind Module
environment = 'sandbox' # possible values sandbox / production
credentials = OSTSdk::Util::APICredentials.new('2fb1cd4ff54f8d842805', '018215e8eeda1084ebcf1fefb5b702799a2d52d0cda955209d98e65bd55a69e0')
obj = OSTSdk::Saas::TransactionKind.new(environment, credentials)
obj.list()
obj.create(name: 'ABC', kind: 'user_to_user', value_currency_type: 'usd', value_in_usd: '1.1', value_in_bt: '1.1', commission_percent: '0.0')
obj.edit(client_transaction_id: '12', name: 'test_1_1_1')
-
Address Module
environment = 'sandbox' # possible values sandbox / production
credentials = OSTSdk::Util::APICredentials.new('2fb1cd4ff54f8d842805', '018215e8eeda1084ebcf1fefb5b702799a2d52d0cda955209d98e65bd55a69e0')
obj = OSTSdk::Saas::Addresses.new(environment, credentials)
obj.fetch_balances(balance_types: ['ost', 'ostPrime', 'eth', 'FRC'], address_uuid: '0xddA2cB099235F657b77b8ABf055725c88cbc6112')
-
User Module
obj = OSTSdk::Saas::Users.new(environment, credentials)
obj.create(name: 'test test')
obj.edit(name: 'test test', address_uuid: '0xddA2cB099235F657b77b8ABf055725c88cbc6112')
obj.list()
- Fork it ( https://github.com/[my-github-username]/ost-sdk-ruby/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