class AlterEgo
Constants
- API_URL
- AUTH_URL
Public Class Methods
password(key, passcode)
click to toggle source
Check an AlterEgo
passcode. Returns true
if the passcode if valid, and false
if the passcode is not valid.
Example¶ ↑
AlterEgo.password
(“valid_api_key”, “passcode”)
# File lib/alterego.rb, line 63 def self.password(key, passcode) call("#{API_URL}/check/password.json?key=#{key}&pass=#{passcode}") end
ping(key)
click to toggle source
Ping the AlterEgo
API. Returns either “PONG!” (indicating a successful connection to the API) or an error.
Example¶ ↑
AlterEgo.ping
(“valid_api_key”)
# File lib/alterego.rb, line 51 def self.ping(key) call("#{API_URL}/check/ping.json?key=#{key}") end