Primeauth 0.1 → 0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/Primeauth.rb +25 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 582d1b672175eceb5a568a2695bf3a0709a08cf9
4
- data.tar.gz: 92098f29dff295170fe73ed829489d08afa63717
3
+ metadata.gz: 740e2044184bf4720edb585d16f73540ba3d023d
4
+ data.tar.gz: 228d72c22b989bdbb835c8c57d75879a10c2ae35
5
5
  SHA512:
6
- metadata.gz: 4744203c35ba92df226b84f14db1fb3a8d7fe13fa90bb1434e327864a5dba1bc23af3e1b4b3cc394da323ab6da28a6140f21d17f7fa56a2a5e2f6a41a2266263
7
- data.tar.gz: 3974d9f0a23ba8e7e0c49957dd19243258a808164250fd51d887e907f7327671025827a99023a4747a2938b05b9134ed345b4a49c578cb79690f15902d3d9111
6
+ metadata.gz: e95d82715f17374b92f85ed2c30c57e04dd180c9a89591e75e8cd3e6ecc65cde5063569f73c5bf77cc8cde344757c89bec5128aedb77db04e05e308b7d53e722
7
+ data.tar.gz: d7ec7242eecea4cbc438c3240d432036dc56458c46759f80608703b3f6d0c28cb6fd072dae80cdab739deb0a795046df69b7333146628f931862610b3dbc75b6
data/lib/Primeauth.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  class Primeauth
2
2
  require 'http'
3
3
  def self.createAuth(email,mobile,ip,token,secret,client_id,comments)
4
- response = HTTP.post("https://www.primeauth.com/api/v1/create/authreq.json",:form => {
4
+ response = HTTP.post("https://api.primeauth.com/api/v1/create/authreq.json",:form => {
5
5
  :email_id => email,
6
6
  :mobile => mobile,
7
7
  :client_id => client_id,
@@ -12,6 +12,20 @@ class Primeauth
12
12
  })
13
13
  return response.body
14
14
  end
15
+ def self.createWhiteLabelAuth(email,mobile,ip,token,secret,client_id,comments,whitelabel_token,whitelabel_secret)
16
+ response = HTTP.post("https://api.primeauth.com/api/v1/create/authreq.json",:form => {
17
+ :email_id => email,
18
+ :mobile => mobile,
19
+ :client_id => client_id,
20
+ :ip_addr => ip,
21
+ :token => token,
22
+ :secret => secret,
23
+ :comments => comments,
24
+ :whitelabel_token => whitelabel_token,
25
+ :whitelabel_secret => whitelabel_secret
26
+ })
27
+ return response.body
28
+ end
15
29
 
16
30
  def self.checkAuth(auth_id,token,secret)
17
31
  response = HTTP.post("https://www.primeauth.com/api/v1/check/id.json",:form => {
@@ -21,4 +35,14 @@ class Primeauth
21
35
  })
22
36
  return response.body
23
37
  end
38
+ def self.checkWhiteLabelAuth(auth_id,token,secret,whitelabel_token,whitelabel_secret)
39
+ response = HTTP.post("https://www.primeauth.com/api/v1/check/id.json",:form => {
40
+ :id => auth_id,
41
+ :token => token,
42
+ :secret => secret,
43
+ :whitelabel_token => whitelabel_token,
44
+ :whitelabel_secret => whitelabel_secret
45
+ })
46
+ return response.body
47
+ end
24
48
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Primeauth
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: '0.2'
5
5
  platform: ruby
6
6
  authors:
7
7
  - P B Surya Subhash