The Trinsic Ruby SDK¶
The Trinsic Ruby SDK makes it easy to interact with the Trinsic API from any Ruby application. The most recent version of the library can be found on RubyGems. You can find the SDKs source on Github.
Installation and Configuration¶
- Make sure you have the okapi native binaries installed on your machine. Default installation instructions are in the readme.md here
- If you install to a different location for debugging, use the environment variable
RUBY_DLL_PATH
on windows.LD_LIBRARY_PATH
for Ruby on Mac/Linuxgem install trinsic-services
- Test installation by running the following Ruby script:
require 'trinsic_services' account_service = Trinsic::AccountService.new(nil, Trinsic::trinsic_prod_server) account_profile = account_service.sign_in(nil).profile puts account_profile
- Output should look something like this:
<Services::Account::V1::AccountProfile: profile_type: "https://trinsic.id/security/v1/oberon", auth_data: ")urn:trinsic:wallets:bbBEp9EmV1NNWMadBhit2$19ac25ae-2fd0-44d1-9ef7-73cc668e8f7d", auth_token: "▒", protection: <Services::Account::V1::TokenProtection: enabled: false, method: :None>>
Next Steps¶
Once the SDK is installed and configured, you're ready to start building! We recommend going through the walkthrough next. If you're ready to dive into building your ecosystem, check out our API Reference