Class: Primeauth
- Inherits:
-
Object
- Object
- Primeauth
- Defined in:
- lib/Primeauth.rb
Class Method Summary collapse
- .checkAuth(auth_id, token, secret) ⇒ Object
- .createAuth(email, mobile, ip, token, secret, client_id, comments) ⇒ Object
Class Method Details
.checkAuth(auth_id, token, secret) ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/Primeauth.rb', line 16 def self.checkAuth(auth_id,token,secret) response = HTTP.post("https://www.primeauth.com/api/v1/check/id.json",:form => { :id => auth_id, :token => token, :secret => secret }) return response.body end |
.createAuth(email, mobile, ip, token, secret, client_id, comments) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/Primeauth.rb', line 3 def self.createAuth(email,mobile,ip,token,secret,client_id,comments) response = HTTP.post("https://www.primeauth.com/api/v1/create/authreq.json",:form => { :email_id => email, :mobile => mobile, :client_id => client_id, :ip_addr => ip, :token => token, :secret => secret, :comments => comments }) return response.body end |