Module: Onetime
- Defined in:
- lib/onetime/api.rb
Overview
Onetime::API - v0.3
A basic client library for the onetimesecret.com API.
Usage:
api = OT::API.new '[email protected]', '4eb33c6340006d6607c813fc7e707a32f8bf5342'
api.get '/status'
# => {'status' => 'nominal'}
api.post '/generate', :passphrase => 'yourspecialpassphrase'
# => {'value' => '3Rg8R2sfD3?a', 'metadata_key' => '...', 'secret_key' => '...'}
Defined Under Namespace
Classes: API