Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 727 Bytes

README.md

File metadata and controls

13 lines (11 loc) · 727 Bytes

Who am I?

This examples shows how to use turnkey_client to sign requests. Here we sign a "Who am I?" request (see documentation)

To run this example:

  • cp .env.example .env
  • Follow the instructions in the .env file to fill in values for TURNKEY_ORGANIZATION_ID, TURNKEY_API_PUBLIC_KEY, and TURNKEY_API_PRIVATE_KEY
  • Install the dependencies: bundle install
  • Then run the whoami.rb script:
    $ bundle exec ruby whoami.rb
    {:organizationId=>"4ecd2483-49db-4d63-bc2a-f70f122c3044", :organizationName=>"Ruby", :userId=>"1299d44a-339d-497d-867c-b78c047a8622", :username=>"Root user"}