Module: Tr3llo::API::Token
Instance Method Summary collapse
Instance Method Details
#api_key ⇒ Object
18 19 20 |
# File 'lib/3llo/api/token.rb', line 18 def api_key Application.fetch_configuration!().api_key end |
#api_token ⇒ Object
22 23 24 |
# File 'lib/3llo/api/token.rb', line 22 def api_token Application.fetch_configuration!().api_token end |
#client ⇒ Object
14 15 16 |
# File 'lib/3llo/api/token.rb', line 14 def client Application.fetch_client!() end |
#verify(key, token) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/3llo/api/token.rb', line 6 def verify(key, token) client.get("/tokens/#{token}?key=#{key}", {}) true rescue RemoteServer::RequestError false end |