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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/widgets_api_client.rb +14 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eebb423a38ae367d14b2e99b2ee1f11edc268640a801ee3c5f7cd3efb044f7a3
4
- data.tar.gz: c0d83058ae7079f766754d138691c46128288eb64b4bdb308096f77b2e1efa9e
3
+ metadata.gz: 9b15a95afa5a46ed1479921ca8da5a930a4050d5aabb7a2f5f6fdf618d4f5e32
4
+ data.tar.gz: 4e9dda7e41b1d2ea71c14267cc5cf43d8e7b46c15ce78735e9d5ea9dd1ef4770
5
5
  SHA512:
6
- metadata.gz: 632d6b33c2adc2a0ba532011ab9679942e25b066e1968db7857a196f80a0336172a17501327f0e7e4617beb88fe21fe61741d262f7a6eda754f1867426166315
7
- data.tar.gz: 2b1e7f7b2ab6e9e96d2c4700260d8c581d03bee5bc355251595cd21310a74eef8a81ab107f7b6e6adb02bc309ca7528b72b65c4f92695e0f5cfb1797ba9d1189
6
+ metadata.gz: 9bee356231cd71febc8dcf67f186b99e39b671100deb74aaa077b13bba93cf9db9c3e2f9a4979d0aab4129e129204711116ce3ff99f3ff6b22ca2b42c42dfe99
7
+ data.tar.gz: 5e958dbd17abeaeb1f7a00b0021d54a0669710ecd03c79f7610baa4d1dc488464c0a1822176f80de17b5e41686686bf008515bdc4ed0eb36ff8f4fb86dd595d9
@@ -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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: widgets_api_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9.1
4
+ version: 0.0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sachin Murthy