widgets_api_client 0.0.9.1 → 0.0.9.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.
- checksums.yaml +4 -4
- data/lib/widgets_api_client.rb +14 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b15a95afa5a46ed1479921ca8da5a930a4050d5aabb7a2f5f6fdf618d4f5e32
|
4
|
+
data.tar.gz: 4e9dda7e41b1d2ea71c14267cc5cf43d8e7b46c15ce78735e9d5ea9dd1ef4770
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bee356231cd71febc8dcf67f186b99e39b671100deb74aaa077b13bba93cf9db9c3e2f9a4979d0aab4129e129204711116ce3ff99f3ff6b22ca2b42c42dfe99
|
7
|
+
data.tar.gz: 5e958dbd17abeaeb1f7a00b0021d54a0669710ecd03c79f7610baa4d1dc488464c0a1822176f80de17b5e41686686bf008515bdc4ed0eb36ff8f4fb86dd595d9
|
data/lib/widgets_api_client.rb
CHANGED
@@ -11,6 +11,10 @@ class WidgetsApiClient
|
|
11
11
|
ApplicationConfig.set_config(client_id, client_secret, base_url)
|
12
12
|
end
|
13
13
|
|
14
|
+
def self.client_id
|
15
|
+
ApplicationConfig.client_id
|
16
|
+
end
|
17
|
+
|
14
18
|
# Create authentication token
|
15
19
|
def self.create_authentication_token(auth_data)
|
16
20
|
AuthenticationService.create_authentication(auth_data)
|
@@ -111,3 +115,13 @@ class WidgetsApiClient
|
|
111
115
|
WidgetService.get_public_widgets_with_search_term(search_term, bearer_token)
|
112
116
|
end
|
113
117
|
end
|
118
|
+
|
119
|
+
b = User.new
|
120
|
+
b.first_name = "sam"
|
121
|
+
b.last_name = "test"
|
122
|
+
b.password = "password"
|
123
|
+
b.email = "sam@gmail.com"
|
124
|
+
b.image_url = "https://static.thenounproject.com/png/961-200.png"
|
125
|
+
WidgetsApiClient.set_config("277ef29692f9a70d511415dc60592daf4cf2c6f6552d3e1b769924b2f2e2e6fe", "d6106f26e8ff5b749a606a1fba557f44eb3dca8f48596847770beb9b643ea352",
|
126
|
+
"https://showoff-rails-react-production.herokuapp.com")
|
127
|
+
puts WidgetsApiClient.create_user(b)
|