gauthify 1.2.6 → 1.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gauthify.rb +3 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec7c02906f52b2669c16522753e56f05c56660a3
|
4
|
+
data.tar.gz: 1c9491fed1ad9a5b23ad61cc6876e31ea39ae28c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2575cc08d186c401fac149642d4efdfc3655ee57fe34d9edced1b4682a3d46a5f6c9c3ec3eec053eb01f607de781e13121d98490d83a579b82c5ead81a141025
|
7
|
+
data.tar.gz: 0b885b48658d02d266bbb671b07d9eb0dfa279d8b0c1d9bd8aff6a9a60cc7062195e428ff36b64c597a10531a20e2dc3aadacbfca3dfdb2642faf88810df0f74
|
data/lib/gauthify.rb
CHANGED
@@ -60,7 +60,7 @@ class GAuthify
|
|
60
60
|
'https://api.gauthify.com/v1/',
|
61
61
|
'https://backup.gauthify.com/v1/'
|
62
62
|
]
|
63
|
-
@headers = {:authorization => api_key, :user_agent => 'GAuthify/v1.
|
63
|
+
@headers = {:authorization => api_key, :user_agent => 'GAuthify-Ruby/v1.27'}
|
64
64
|
|
65
65
|
end
|
66
66
|
|
@@ -110,7 +110,7 @@ class GAuthify
|
|
110
110
|
|
111
111
|
def create_user(unique_id, display_name, email=nil, phone_number=nil)
|
112
112
|
<<-DOC
|
113
|
-
Creates new user with
|
113
|
+
Creates new user (replaces with new if already exists)
|
114
114
|
DOC
|
115
115
|
|
116
116
|
params = {'display_name' => display_name}
|
@@ -121,7 +121,6 @@ class GAuthify
|
|
121
121
|
params['phone_number'] = phone_number
|
122
122
|
end
|
123
123
|
url_addon = "users/#{unique_id}/"
|
124
|
-
puts "HELLO", params
|
125
124
|
return requests_handler('post', url_addon, params=params)
|
126
125
|
end
|
127
126
|
|
@@ -269,7 +268,7 @@ class GAuthify
|
|
269
268
|
if not user.class == Hash
|
270
269
|
raise Exception
|
271
270
|
end
|
272
|
-
puts(
|
271
|
+
puts(user)
|
273
272
|
success()
|
274
273
|
|
275
274
|
puts("3) Retrieving All Users...")
|