bridge_api 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff27f0d72d5680fece15686d58d893adc45efcb001c6040ee3991166579c8091
|
4
|
+
data.tar.gz: 382e064c6305fa078be782f98d47340563b82ddc68825af3ea8f8067cb2ec730
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68066389b21ba31a2c25f85581494c1d32f6bfa2c18aade6c5f6d2361d2b674859c95931cdd8e05190f2fa76088276648b05375174e46a16c1bf17404ce311de
|
7
|
+
data.tar.gz: a261eaa3408de898e96db1f7c8979d27c30e70beaeedd5119962813b0b72f73079311cc15197e7fec2979026229925adfdfbec541b1e0c78d0d7fb66b6be7992
|
@@ -43,6 +43,10 @@ module BridgeAPI
|
|
43
43
|
put("#{API_PATH}#{ADMIN_PATH}#{USER_PATH}/#{user_id}#{ROLE_PATH}#{BATCH_PATH}", params)
|
44
44
|
end
|
45
45
|
|
46
|
+
def new_temporary_users(params = {})
|
47
|
+
get("#{API_PATH}#{ADMIN_PATH}#{NEW_TEMPORARY_USERS}", params)
|
48
|
+
end
|
49
|
+
|
46
50
|
private
|
47
51
|
|
48
52
|
#++user_id++ Bridge user ID
|
data/lib/bridge_api/client.rb
CHANGED
data/lib/bridge_api/version.rb
CHANGED
@@ -39,4 +39,9 @@ describe BridgeAPI::Client::User do
|
|
39
39
|
response = @client.add_user_to_role_batch(1)
|
40
40
|
expect(response.length).to eq(7)
|
41
41
|
end
|
42
|
+
|
43
|
+
it 'should get new temporary users' do
|
44
|
+
response = @client.new_temporary_users
|
45
|
+
expect(response.length).to(eq(2))
|
46
|
+
end
|
42
47
|
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
{
|
2
|
+
"meta": {
|
3
|
+
"next": "http://bridge.bridgeapp.com/api/admin/new_temporary_users?after=eyJ0eXAiOiJKV1QiLCJhb"
|
4
|
+
},
|
5
|
+
"temporary_users": [
|
6
|
+
{
|
7
|
+
"uid": "test@test.com",
|
8
|
+
"email": "test@test.com",
|
9
|
+
"first_name": "test",
|
10
|
+
"last_name": "mcfake",
|
11
|
+
"full_name": "test name",
|
12
|
+
"status": "Active",
|
13
|
+
"store_id": "",
|
14
|
+
"store_name": "",
|
15
|
+
"franchisee_id": "1892",
|
16
|
+
"franchisee_name": "Test Franchisee",
|
17
|
+
"manager_id": null,
|
18
|
+
"hire_date": null,
|
19
|
+
"job_role": "Admin",
|
20
|
+
"country": "UK",
|
21
|
+
"termination_date": ""
|
22
|
+
},
|
23
|
+
{
|
24
|
+
"uid": "test2@test.com",
|
25
|
+
"email": "test2@test.com",
|
26
|
+
"first_name": "test2",
|
27
|
+
"last_name": "mcfake2",
|
28
|
+
"full_name": "test name 2",
|
29
|
+
"status": "Active",
|
30
|
+
"store_id": "29263",
|
31
|
+
"store_name": "Ashton",
|
32
|
+
"franchisee_id": "2051",
|
33
|
+
"franchisee_name": "Test Franchisee2",
|
34
|
+
"manager_id": null,
|
35
|
+
"hire_date": null,
|
36
|
+
"job_role": "Operations Manager",
|
37
|
+
"country": "UK",
|
38
|
+
"termination_date": ""
|
39
|
+
}
|
40
|
+
]
|
41
|
+
}
|
data/spec/support/fake_bridge.rb
CHANGED
@@ -91,6 +91,10 @@ class FakeBridge < Sinatra::Base
|
|
91
91
|
get_json_data 204, nil
|
92
92
|
end
|
93
93
|
|
94
|
+
get %r{/api/admin/new_temporary_users} do
|
95
|
+
get_json_data 200, 'temporary_users.json'
|
96
|
+
end
|
97
|
+
|
94
98
|
## Managers
|
95
99
|
get %r{/api/author/managers$} do
|
96
100
|
get_json_data 200, 'managers.json'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bridge_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jay Shaffer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -290,6 +290,7 @@ files:
|
|
290
290
|
- spec/fixtures/sub_account_lti_config_update.json
|
291
291
|
- spec/fixtures/sub_account_new_lti_config.json
|
292
292
|
- spec/fixtures/sub_accounts.json
|
293
|
+
- spec/fixtures/temporary_users.json
|
293
294
|
- spec/fixtures/user.json
|
294
295
|
- spec/fixtures/user_roles_add.json
|
295
296
|
- spec/fixtures/users.json
|
@@ -341,6 +342,7 @@ test_files:
|
|
341
342
|
- spec/fixtures/roles.json
|
342
343
|
- spec/fixtures/live_course.json
|
343
344
|
- spec/fixtures/managers.json
|
345
|
+
- spec/fixtures/temporary_users.json
|
344
346
|
- spec/fixtures/program_enrollments.json
|
345
347
|
- spec/fixtures/enrollment.json
|
346
348
|
- spec/fixtures/sub_accounts.json
|