class Primeauth

Public Class Methods

checkAuth(auth_id,token,secret) click to toggle source
# File lib/Primeauth.rb, line 30
def self.checkAuth(auth_id,token,secret)
    response = HTTP.post("https://api.primeauth.com/api/v1/check/id.json",:form => {
    :id => auth_id,
    :token => token,
    :secret => secret
    })
    return response.body
end
checkWhiteLabelAuth(auth_id,token,secret,whitelabel_token,whitelabel_secret) click to toggle source
# File lib/Primeauth.rb, line 38
def self.checkWhiteLabelAuth(auth_id,token,secret,whitelabel_token,whitelabel_secret)
  response = HTTP.post("https://api.primeauth.com/api/v1/check/id.json",:form => {
  :id => auth_id,
  :token => token,
  :secret => secret,
  :whitelabel_token => whitelabel_token,
  :whitelabel_secret => whitelabel_secret
  })
  return response.body
end
createAuth(email,mobile,ip,token,secret,client_id,comments) click to toggle source
# File lib/Primeauth.rb, line 3
def self.createAuth(email,mobile,ip,token,secret,client_id,comments)
    response = HTTP.post("https://api.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
createWhiteLabelAuth(email,mobile,ip,token,secret,client_id,comments,whitelabel_token,whitelabel_secret) click to toggle source
# File lib/Primeauth.rb, line 15
def self.createWhiteLabelAuth(email,mobile,ip,token,secret,client_id,comments,whitelabel_token,whitelabel_secret)
  response = HTTP.post("https://api.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,
  :whitelabel_token => whitelabel_token,
  :whitelabel_secret => whitelabel_secret
  })
  return response.body
end