yandex360 1.1.0 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +1 -1
- data/Gemfile.lock +1 -2
- data/README.md +4 -1
- data/lib/yandex360/version.rb +1 -1
- data/lib/yandex360.rb +0 -1
- data/yandex360.gemspec +3 -4
- metadata +4 -59
- data/spec/antispam_spec.rb +0 -46
- data/spec/client_spec.rb +0 -24
- data/spec/departments_spec.rb +0 -131
- data/spec/groups_spec.rb +0 -133
- data/spec/spec_helper.rb +0 -59
- data/spec/users_spec.rb +0 -203
- data/spec/vcr/anispam/create.yml +0 -43
- data/spec/vcr/anispam/delete.yml +0 -41
- data/spec/vcr/anispam/list.yml +0 -41
- data/spec/vcr/departments/add_alias.yml +0 -43
- data/spec/vcr/departments/create.yml +0 -43
- data/spec/vcr/departments/delete.yml +0 -41
- data/spec/vcr/departments/delete_alias.yml +0 -41
- data/spec/vcr/departments/delete_error.yml +0 -37
- data/spec/vcr/departments/info.yml +0 -41
- data/spec/vcr/departments/list.yml +0 -41
- data/spec/vcr/departments/update.yml +0 -44
- data/spec/vcr/groups/add_user.yml +0 -43
- data/spec/vcr/groups/create.yml +0 -43
- data/spec/vcr/groups/delete.yml +0 -41
- data/spec/vcr/groups/delete_user.yml +0 -41
- data/spec/vcr/groups/list.yml +0 -48
- data/spec/vcr/groups/params.yml +0 -41
- data/spec/vcr/groups/update.yml +0 -43
- data/spec/vcr/groups/users.yml +0 -41
- data/spec/vcr/users/add.yml +0 -43
- data/spec/vcr/users/add_alias.yml +0 -43
- data/spec/vcr/users/delete_alias.yml +0 -41
- data/spec/vcr/users/get2FA.yml +0 -41
- data/spec/vcr/users/get2FA_error.yml +0 -37
- data/spec/vcr/users/has2FA.yml +0 -41
- data/spec/vcr/users/info.yml +0 -41
- data/spec/vcr/users/list.yml +0 -41
- data/spec/vcr/users/list_error.yml +0 -37
- data/spec/vcr/users/update.yml +0 -44
@@ -1,43 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://api360.yandex.net/directory/v1/org/1234567/groups/19/members
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: '{"id":"987654321","type":"user"}'
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Faraday v1.10.2
|
12
|
-
Authorization:
|
13
|
-
- TOKEN
|
14
|
-
Content-Type:
|
15
|
-
- application/json
|
16
|
-
Accept-Encoding:
|
17
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
-
Accept:
|
19
|
-
- "*/*"
|
20
|
-
response:
|
21
|
-
status:
|
22
|
-
code: 200
|
23
|
-
message: OK
|
24
|
-
headers:
|
25
|
-
Content-Type:
|
26
|
-
- application/json
|
27
|
-
Date:
|
28
|
-
- Sat, 15 Oct 2022 10:18:24 GMT
|
29
|
-
Grpc-Status:
|
30
|
-
- '0'
|
31
|
-
Grpc-Message:
|
32
|
-
- OK
|
33
|
-
Content-Length:
|
34
|
-
- '45'
|
35
|
-
Server:
|
36
|
-
- api360
|
37
|
-
X-Request-Id:
|
38
|
-
- 8e009afd-8793-485e-9cab-d7f5cb09c1b9
|
39
|
-
body:
|
40
|
-
encoding: UTF-8
|
41
|
-
string: '{"id":"987654321","type":"user","added":true}'
|
42
|
-
recorded_at: Sat, 15 Oct 2022 10:18:24 GMT
|
43
|
-
recorded_with: VCR 6.1.0
|
data/spec/vcr/groups/create.yml
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://api360.yandex.net/directory/v1/org/1234567/groups
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: '{"name":"Hotline"}'
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Faraday v1.10.2
|
12
|
-
Authorization:
|
13
|
-
- TOKEN
|
14
|
-
Content-Type:
|
15
|
-
- application/json
|
16
|
-
Accept-Encoding:
|
17
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
-
Accept:
|
19
|
-
- "*/*"
|
20
|
-
response:
|
21
|
-
status:
|
22
|
-
code: 200
|
23
|
-
message: OK
|
24
|
-
headers:
|
25
|
-
Content-Type:
|
26
|
-
- application/json
|
27
|
-
Date:
|
28
|
-
- Sat, 15 Oct 2022 10:05:12 GMT
|
29
|
-
Grpc-Status:
|
30
|
-
- '0'
|
31
|
-
Grpc-Message:
|
32
|
-
- OK
|
33
|
-
Content-Length:
|
34
|
-
- '280'
|
35
|
-
Server:
|
36
|
-
- api360
|
37
|
-
X-Request-Id:
|
38
|
-
- e0a7f52a-5057-44bb-bce3-759754074fdf
|
39
|
-
body:
|
40
|
-
encoding: UTF-8
|
41
|
-
string: '{"id":19,"name":"Hotline","type":"generic","description":"","membersCount":1,"label":"","email":"","aliases":[],"externalId":"","removed":false,"members":[{"type":"user","id":"48989999"}],"adminIds":["48989999"],"authorId":"0","memberOf":[],"createdAt":"2022-10-15T10:05:12.657Z"}'
|
42
|
-
recorded_at: Sat, 15 Oct 2022 10:05:12 GMT
|
43
|
-
recorded_with: VCR 6.1.0
|
data/spec/vcr/groups/delete.yml
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: delete
|
5
|
-
uri: https://api360.yandex.net/directory/v1/org/1234567/groups/19
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Faraday v1.10.2
|
12
|
-
Authorization:
|
13
|
-
- TOKEN
|
14
|
-
Accept-Encoding:
|
15
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
-
Accept:
|
17
|
-
- "*/*"
|
18
|
-
response:
|
19
|
-
status:
|
20
|
-
code: 200
|
21
|
-
message: OK
|
22
|
-
headers:
|
23
|
-
Content-Type:
|
24
|
-
- application/json
|
25
|
-
Date:
|
26
|
-
- Sat, 15 Oct 2022 10:28:51 GMT
|
27
|
-
Grpc-Status:
|
28
|
-
- '0'
|
29
|
-
Grpc-Message:
|
30
|
-
- OK
|
31
|
-
Content-Length:
|
32
|
-
- '24'
|
33
|
-
Server:
|
34
|
-
- api360
|
35
|
-
X-Request-Id:
|
36
|
-
- 34c3d591-c020-4817-94ba-13425ae02ed0
|
37
|
-
body:
|
38
|
-
encoding: UTF-8
|
39
|
-
string: '{"id":19,"removed":true}'
|
40
|
-
recorded_at: Sat, 15 Oct 2022 10:28:51 GMT
|
41
|
-
recorded_with: VCR 6.1.0
|
@@ -1,41 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: delete
|
5
|
-
uri: https://api360.yandex.net/directory/v1/org/1234567/groups/19/members/user/987654321
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Faraday v1.10.2
|
12
|
-
Authorization:
|
13
|
-
- TOKEN
|
14
|
-
Accept-Encoding:
|
15
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
-
Accept:
|
17
|
-
- "*/*"
|
18
|
-
response:
|
19
|
-
status:
|
20
|
-
code: 200
|
21
|
-
message: OK
|
22
|
-
headers:
|
23
|
-
Content-Type:
|
24
|
-
- application/json
|
25
|
-
Date:
|
26
|
-
- Sat, 15 Oct 2022 10:24:56 GMT
|
27
|
-
Grpc-Status:
|
28
|
-
- '0'
|
29
|
-
Grpc-Message:
|
30
|
-
- OK
|
31
|
-
Content-Length:
|
32
|
-
- '47'
|
33
|
-
Server:
|
34
|
-
- api360
|
35
|
-
X-Request-Id:
|
36
|
-
- 0f65285a-1573-4011-8229-83b43ebb97a4
|
37
|
-
body:
|
38
|
-
encoding: UTF-8
|
39
|
-
string: '{"id":"987654321","type":"user","deleted":true}'
|
40
|
-
recorded_at: Sat, 15 Oct 2022 10:24:56 GMT
|
41
|
-
recorded_with: VCR 6.1.0
|
data/spec/vcr/groups/list.yml
DELETED
@@ -1,48 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://api360.yandex.net/directory/v1/org/1234567/groups?page=1&perPage=10
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Faraday v1.10.2
|
12
|
-
Authorization:
|
13
|
-
- TOKEN
|
14
|
-
Accept-Encoding:
|
15
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
-
Accept:
|
17
|
-
- "*/*"
|
18
|
-
response:
|
19
|
-
status:
|
20
|
-
code: 200
|
21
|
-
message: OK
|
22
|
-
headers:
|
23
|
-
Content-Type:
|
24
|
-
- application/json
|
25
|
-
Date:
|
26
|
-
- Sat, 15 Oct 2022 10:33:54 GMT
|
27
|
-
Grpc-Status:
|
28
|
-
- '0'
|
29
|
-
Grpc-Message:
|
30
|
-
- OK
|
31
|
-
Content-Length:
|
32
|
-
- '2876'
|
33
|
-
Server:
|
34
|
-
- api360
|
35
|
-
X-Request-Id:
|
36
|
-
- 1fbc454c-27e6-40c7-8838-571dc0a265a6
|
37
|
-
body:
|
38
|
-
encoding: UTF-8
|
39
|
-
string: '{"groups":[{"id":1,"name":"Руководитель отдела \"Все сотрудники\"","type":"department_head","description":"","membersCount":0,"label":"","email":"","aliases":[],"externalId":"","removed":false,"members":[],"adminIds":[],"authorId":"0","memberOf":[],"createdAt":"2018-08-13T09:28:29.434Z"},{"id":2,"name":"Администратор
|
40
|
-
организации","type":"organization_admin","description":"","membersCount":1,"label":"","email":"","aliases":[],"externalId":"","removed":false,"members":[{"type":"user","id":"48989999"}],"adminIds":[],"authorId":"0","memberOf":[],"createdAt":"2018-08-13T09:28:29.434Z"},{"id":3,"name":"Заместители
|
41
|
-
администраторов организации","type":"organization_deputy_admin","description":"","membersCount":0,"label":"","email":"","aliases":[],"externalId":"","removed":false,"members":[],"adminIds":[],"authorId":"0","memberOf":[],"createdAt":"2018-08-13T09:28:29.434Z"},{"id":4,"name":"Роботы
|
42
|
-
организации","type":"robots","description":"Роботы организации","membersCount":3,"label":"","email":"","aliases":[],"externalId":"","removed":false,"members":[{"type":"user","id":"780889736"},{"type":"user","id":"987654321"},{"type":"user","id":"1130000030110394"}],"adminIds":[],"authorId":"0","memberOf":[],"createdAt":"2018-08-13T09:28:29.434Z"},{"id":5,"name":"new_group","type":"generic","description":"","membersCount":1,"label":"","email":"","aliases":[],"externalId":"","removed":false,"members":[{"type":"user","id":"48989999"}],"adminIds":["48989999"],"authorId":"48989999","memberOf":[],"createdAt":"2022-10-07T11:16:18.230Z"},{"id":7,"name":"Руководитель
|
43
|
-
отдела \"Golang developers\"","type":"department_head","description":"","membersCount":0,"label":"","email":"","aliases":[],"externalId":"","removed":false,"members":[],"adminIds":[],"authorId":"0","memberOf":[],"createdAt":"2022-10-07T16:00:02.931Z"},{"id":10,"name":"Руководитель
|
44
|
-
отдела \"juniors\"","type":"department_head","description":"","membersCount":0,"label":"","email":"","aliases":[],"externalId":"","removed":false,"members":[],"adminIds":[],"authorId":"0","memberOf":[],"createdAt":"2022-10-07T16:01:51.472Z"},{"id":11,"name":"Руководитель
|
45
|
-
отдела \"middles\"","type":"department_head","description":"","membersCount":0,"label":"","email":"","aliases":[],"externalId":"","removed":false,"members":[],"adminIds":[],"authorId":"0","memberOf":[],"createdAt":"2022-10-07T16:01:58.985Z"},{"id":12,"name":"Руководитель
|
46
|
-
отдела \"seniors\"","type":"department_head","description":"","membersCount":0,"label":"","email":"","aliases":[],"externalId":"","removed":false,"members":[],"adminIds":[],"authorId":"0","memberOf":[],"createdAt":"2022-10-07T16:02:06.572Z"}],"page":1,"pages":1,"perPage":10,"total":9}'
|
47
|
-
recorded_at: Sat, 15 Oct 2022 10:33:54 GMT
|
48
|
-
recorded_with: VCR 6.1.0
|
data/spec/vcr/groups/params.yml
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://api360.yandex.net/directory/v1/org/1234567/groups/19
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Faraday v1.10.2
|
12
|
-
Authorization:
|
13
|
-
- TOKEN
|
14
|
-
Accept-Encoding:
|
15
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
-
Accept:
|
17
|
-
- "*/*"
|
18
|
-
response:
|
19
|
-
status:
|
20
|
-
code: 200
|
21
|
-
message: OK
|
22
|
-
headers:
|
23
|
-
Content-Type:
|
24
|
-
- application/json
|
25
|
-
Date:
|
26
|
-
- Sat, 15 Oct 2022 10:08:52 GMT
|
27
|
-
Grpc-Status:
|
28
|
-
- '0'
|
29
|
-
Grpc-Message:
|
30
|
-
- OK
|
31
|
-
Content-Length:
|
32
|
-
- '291'
|
33
|
-
Server:
|
34
|
-
- api360
|
35
|
-
X-Request-Id:
|
36
|
-
- 968f7faa-de19-4a68-b712-05b6d5f699fe
|
37
|
-
body:
|
38
|
-
encoding: UTF-8
|
39
|
-
string: '{"id":19,"name":"Hotline 247","type":"generic","description":"","membersCount":1,"label":"","email":"","aliases":[],"externalId":"","removed":false,"members":[{"type":"user","id":"48989999"}],"adminIds":["48989999"],"authorId":"48989999","memberOf":[],"createdAt":"2022-10-15T10:05:12.657Z"}'
|
40
|
-
recorded_at: Sat, 15 Oct 2022 10:08:52 GMT
|
41
|
-
recorded_with: VCR 6.1.0
|
data/spec/vcr/groups/update.yml
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: patch
|
5
|
-
uri: https://api360.yandex.net/directory/v1/org/1234567/groups/19
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: '{"name":"Hotline 247"}'
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Faraday v1.10.2
|
12
|
-
Authorization:
|
13
|
-
- TOKEN
|
14
|
-
Content-Type:
|
15
|
-
- application/json
|
16
|
-
Accept-Encoding:
|
17
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
-
Accept:
|
19
|
-
- "*/*"
|
20
|
-
response:
|
21
|
-
status:
|
22
|
-
code: 200
|
23
|
-
message: OK
|
24
|
-
headers:
|
25
|
-
Content-Type:
|
26
|
-
- application/json
|
27
|
-
Date:
|
28
|
-
- Sat, 15 Oct 2022 10:07:35 GMT
|
29
|
-
Grpc-Status:
|
30
|
-
- '0'
|
31
|
-
Grpc-Message:
|
32
|
-
- OK
|
33
|
-
Content-Length:
|
34
|
-
- '284'
|
35
|
-
Server:
|
36
|
-
- api360
|
37
|
-
X-Request-Id:
|
38
|
-
- 9da78fac-cfab-46e0-bd86-b0fc106e9f1a
|
39
|
-
body:
|
40
|
-
encoding: UTF-8
|
41
|
-
string: '{"id":19,"name":"Hotline 247","type":"generic","description":"","membersCount":1,"label":"","email":"","aliases":[],"externalId":"","removed":false,"members":[{"type":"user","id":"48989999"}],"adminIds":["48989999"],"authorId":"0","memberOf":[],"createdAt":"2022-10-15T10:05:12.657Z"}'
|
42
|
-
recorded_at: Sat, 15 Oct 2022 10:07:35 GMT
|
43
|
-
recorded_with: VCR 6.1.0
|
data/spec/vcr/groups/users.yml
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://api360.yandex.net/directory/v1/org/1234567/groups/19/members
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Faraday v1.10.2
|
12
|
-
Authorization:
|
13
|
-
- TOKEN
|
14
|
-
Accept-Encoding:
|
15
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
-
Accept:
|
17
|
-
- "*/*"
|
18
|
-
response:
|
19
|
-
status:
|
20
|
-
code: 200
|
21
|
-
message: OK
|
22
|
-
headers:
|
23
|
-
Content-Type:
|
24
|
-
- application/json
|
25
|
-
Date:
|
26
|
-
- Sat, 15 Oct 2022 10:21:03 GMT
|
27
|
-
Grpc-Status:
|
28
|
-
- '0'
|
29
|
-
Grpc-Message:
|
30
|
-
- OK
|
31
|
-
Content-Length:
|
32
|
-
- '457'
|
33
|
-
Server:
|
34
|
-
- api360
|
35
|
-
X-Request-Id:
|
36
|
-
- 1e225014-475e-4f7e-bcac-aa664fafd60c
|
37
|
-
body:
|
38
|
-
encoding: UTF-8
|
39
|
-
string: '{"departments":[],"groups":[],"users":[{"id":"48989999","nickname":"sample","departmentId":1,"email":"","name":{"first":"sample","last":"sample","middle":""},"gender":"male","position":"","avatarId":"78321/x1vWPx4b55UiDYwDs32NbEXio1-G"},{"id":"987654321","nickname":"yndx-forms-cnt-robot","departmentId":0,"email":"","name":{"first":"Робот сервиса Forms","last":"","middle":""},"gender":"male","position":"","avatarId":""}]}'
|
40
|
-
recorded_at: Sat, 15 Oct 2022 10:21:03 GMT
|
41
|
-
recorded_with: VCR 6.1.0
|
data/spec/vcr/users/add.yml
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://api360.yandex.net/directory/v1/org/1234567/users
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: '{"departmentId":1,"about":"Yandex360","name":{"first":"Ivan","last":"Ivanov","middle":"Ruby"},"nickname":"yandex360","password":"Q!123456678"}'
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Faraday v1.10.2
|
12
|
-
Authorization:
|
13
|
-
- TOKEN
|
14
|
-
Content-Type:
|
15
|
-
- application/json
|
16
|
-
Accept-Encoding:
|
17
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
-
Accept:
|
19
|
-
- "*/*"
|
20
|
-
response:
|
21
|
-
status:
|
22
|
-
code: 200
|
23
|
-
message: OK
|
24
|
-
headers:
|
25
|
-
Content-Type:
|
26
|
-
- application/json
|
27
|
-
Date:
|
28
|
-
- Thu, 13 Oct 2022 15:54:42 GMT
|
29
|
-
Grpc-Status:
|
30
|
-
- '0'
|
31
|
-
Grpc-Message:
|
32
|
-
- OK
|
33
|
-
Content-Length:
|
34
|
-
- '704'
|
35
|
-
Server:
|
36
|
-
- api360
|
37
|
-
X-Request-Id:
|
38
|
-
- f8c9231f-d1ad-4820-8caa-0a44b0ca1b43
|
39
|
-
body:
|
40
|
-
encoding: UTF-8
|
41
|
-
string: '{"id":"1130000061922106","nickname":"yandex360","departmentId":1,"email":"yandex360@example.ru","name":{"first":"Ivan","last":"Ivanov","middle":"Ruby"},"gender":"","position":"","avatarId":"","about":"Yandex360","birthday":"","contacts":[{"type":"staff","value":"https://staff.yandex.ru/yandex360?org_id=1234567&uid=1130000061922106","main":false,"alias":false,"synthetic":true},{"type":"email","value":"yandex360@example.ru","main":true,"alias":false,"synthetic":true}],"aliases":[],"groups":[],"externalId":"","isAdmin":false,"isRobot":false,"isDismissed":false,"isEnabled":false,"timezone":"Europe/Moscow","language":"ru","createdAt":"2022-10-13T15:54:42.189Z","updatedAt":"2022-10-13T15:54:42.189Z"}'
|
42
|
-
recorded_at: Thu, 13 Oct 2022 15:54:42 GMT
|
43
|
-
recorded_with: VCR 6.1.0
|
@@ -1,43 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://api360.yandex.net/directory/v1/org/1234567/users/1130000018743049/aliases
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: '{"alias":"ruby_gem_api"}'
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Faraday v1.10.2
|
12
|
-
Authorization:
|
13
|
-
- TOKEN
|
14
|
-
Content-Type:
|
15
|
-
- application/json
|
16
|
-
Accept-Encoding:
|
17
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
-
Accept:
|
19
|
-
- "*/*"
|
20
|
-
response:
|
21
|
-
status:
|
22
|
-
code: 200
|
23
|
-
message: OK
|
24
|
-
headers:
|
25
|
-
Content-Type:
|
26
|
-
- application/json
|
27
|
-
Date:
|
28
|
-
- Thu, 13 Oct 2022 16:19:18 GMT
|
29
|
-
Grpc-Status:
|
30
|
-
- '0'
|
31
|
-
Grpc-Message:
|
32
|
-
- OK
|
33
|
-
Content-Length:
|
34
|
-
- '469'
|
35
|
-
Server:
|
36
|
-
- api360
|
37
|
-
X-Request-Id:
|
38
|
-
- 6215e11d-17d1-43c0-9ff1-af4b2ed893fe
|
39
|
-
body:
|
40
|
-
encoding: UTF-8
|
41
|
-
string: '{"id":"1130000018743049","nickname":"dev","departmentId":1,"email":"dev@example.ru","name":{"first":"development","last":"account","middle":""},"gender":"male","position":"","avatarId":"","about":"","birthday":"1970-01-01","contacts":[],"aliases":["ruby_gem_api"],"groups":[],"externalId":"","isAdmin":false,"isRobot":false,"isDismissed":false,"isEnabled":false,"timezone":"","language":"","createdAt":"2018-08-13T09:28:32.694Z","updatedAt":"2022-10-13T16:19:18.375Z"}'
|
42
|
-
recorded_at: Thu, 13 Oct 2022 16:19:18 GMT
|
43
|
-
recorded_with: VCR 6.1.0
|
@@ -1,41 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: delete
|
5
|
-
uri: https://api360.yandex.net/directory/v1/org/1234567/users/1130000018743049/aliases/ruby_gem_api
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Faraday v1.10.2
|
12
|
-
Authorization:
|
13
|
-
- TOKEN
|
14
|
-
Accept-Encoding:
|
15
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
-
Accept:
|
17
|
-
- "*/*"
|
18
|
-
response:
|
19
|
-
status:
|
20
|
-
code: 200
|
21
|
-
message: OK
|
22
|
-
headers:
|
23
|
-
Content-Type:
|
24
|
-
- application/json
|
25
|
-
Date:
|
26
|
-
- Thu, 13 Oct 2022 16:25:47 GMT
|
27
|
-
Grpc-Status:
|
28
|
-
- '0'
|
29
|
-
Grpc-Message:
|
30
|
-
- OK
|
31
|
-
Content-Length:
|
32
|
-
- '39'
|
33
|
-
Server:
|
34
|
-
- api360
|
35
|
-
X-Request-Id:
|
36
|
-
- 492593d7-6075-41af-8c1e-f3c5eefac9c4
|
37
|
-
body:
|
38
|
-
encoding: UTF-8
|
39
|
-
string: '{"alias":"ruby_gem_api","removed":true}'
|
40
|
-
recorded_at: Thu, 13 Oct 2022 16:25:47 GMT
|
41
|
-
recorded_with: VCR 6.1.0
|
data/spec/vcr/users/get2FA.yml
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://api360.yandex.net/directory/v1/org/1234567/users/1130000018743049/2fa
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Faraday v1.10.2
|
12
|
-
Authorization:
|
13
|
-
- TOKEN
|
14
|
-
Accept-Encoding:
|
15
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
-
Accept:
|
17
|
-
- "*/*"
|
18
|
-
response:
|
19
|
-
status:
|
20
|
-
code: 200
|
21
|
-
message: OK
|
22
|
-
headers:
|
23
|
-
Content-Type:
|
24
|
-
- application/json
|
25
|
-
Date:
|
26
|
-
- Thu, 13 Oct 2022 15:16:14 GMT
|
27
|
-
Grpc-Status:
|
28
|
-
- '0'
|
29
|
-
Grpc-Message:
|
30
|
-
- OK
|
31
|
-
Content-Length:
|
32
|
-
- '44'
|
33
|
-
Server:
|
34
|
-
- api360
|
35
|
-
X-Request-Id:
|
36
|
-
- 6e744476-417c-4839-8294-b99c402c3d4c
|
37
|
-
body:
|
38
|
-
encoding: UTF-8
|
39
|
-
string: '{"userId":"1130000018743049","has2fa":false}'
|
40
|
-
recorded_at: Thu, 13 Oct 2022 15:16:14 GMT
|
41
|
-
recorded_with: VCR 6.1.0
|
@@ -1,37 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://api360.yandex.net/directory/v1/org/123/users/123/2fa
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Faraday v1.10.2
|
12
|
-
Authorization:
|
13
|
-
- TOKEN
|
14
|
-
Accept-Encoding:
|
15
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
-
Accept:
|
17
|
-
- "*/*"
|
18
|
-
response:
|
19
|
-
status:
|
20
|
-
code: 403
|
21
|
-
message: Forbidden
|
22
|
-
headers:
|
23
|
-
Content-Type:
|
24
|
-
- application/json
|
25
|
-
Date:
|
26
|
-
- Thu, 13 Oct 2022 15:16:14 GMT
|
27
|
-
Content-Length:
|
28
|
-
- '48'
|
29
|
-
Server:
|
30
|
-
- api360
|
31
|
-
X-Request-Id:
|
32
|
-
- c155f3be-3376-468d-8fab-4bd1d8fceb39
|
33
|
-
body:
|
34
|
-
encoding: UTF-8
|
35
|
-
string: '{"code":7,"message":"Not an admin","details":[]}'
|
36
|
-
recorded_at: Thu, 13 Oct 2022 15:16:14 GMT
|
37
|
-
recorded_with: VCR 6.1.0
|
data/spec/vcr/users/has2FA.yml
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://api360.yandex.net/directory/v1/org/1234567/users/1130000018743049/2fa
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Faraday v1.10.2
|
12
|
-
Authorization:
|
13
|
-
- TOKEN
|
14
|
-
Accept-Encoding:
|
15
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
-
Accept:
|
17
|
-
- "*/*"
|
18
|
-
response:
|
19
|
-
status:
|
20
|
-
code: 200
|
21
|
-
message: OK
|
22
|
-
headers:
|
23
|
-
Content-Type:
|
24
|
-
- application/json
|
25
|
-
Date:
|
26
|
-
- Thu, 13 Oct 2022 15:20:25 GMT
|
27
|
-
Grpc-Status:
|
28
|
-
- '0'
|
29
|
-
Grpc-Message:
|
30
|
-
- OK
|
31
|
-
Content-Length:
|
32
|
-
- '44'
|
33
|
-
Server:
|
34
|
-
- api360
|
35
|
-
X-Request-Id:
|
36
|
-
- a4f30fb0-8c46-4d63-916e-fdf1f517d66f
|
37
|
-
body:
|
38
|
-
encoding: UTF-8
|
39
|
-
string: '{"userId":"1130000018743049","has2fa":false}'
|
40
|
-
recorded_at: Thu, 13 Oct 2022 15:20:25 GMT
|
41
|
-
recorded_with: VCR 6.1.0
|
data/spec/vcr/users/info.yml
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://api360.yandex.net/directory/v1/org/1234567/users/987654321
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- Faraday v1.10.2
|
12
|
-
Authorization:
|
13
|
-
- TOKEN
|
14
|
-
Accept-Encoding:
|
15
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
-
Accept:
|
17
|
-
- "*/*"
|
18
|
-
response:
|
19
|
-
status:
|
20
|
-
code: 200
|
21
|
-
message: OK
|
22
|
-
headers:
|
23
|
-
Content-Type:
|
24
|
-
- application/json
|
25
|
-
Date:
|
26
|
-
- Thu, 13 Oct 2022 15:16:15 GMT
|
27
|
-
Grpc-Status:
|
28
|
-
- '0'
|
29
|
-
Grpc-Message:
|
30
|
-
- OK
|
31
|
-
Content-Length:
|
32
|
-
- '752'
|
33
|
-
Server:
|
34
|
-
- api360
|
35
|
-
X-Request-Id:
|
36
|
-
- 73dc9585-d689-4d01-9397-ec54a861e412
|
37
|
-
body:
|
38
|
-
encoding: UTF-8
|
39
|
-
string: '{"id":"987654321","nickname":"yndx-forms-cnt-robot","departmentId":0,"email":"yndx-forms-cnt-robot@yandex.ru","name":{"first":"Робот сервиса Forms","last":"","middle":""},"gender":"male","position":"","avatarId":"","about":"","birthday":"2019-04-25","contacts":[{"type":"staff","value":"https://staff.yandex.ru/yndx-forms-cnt-robot?org_id=1234567&uid=987654321","main":false,"alias":false,"synthetic":true},{"type":"email","value":"yndx-forms-cnt-robot@yandex.ru","main":true,"alias":false,"synthetic":true}],"aliases":[],"groups":[4],"externalId":"","isAdmin":false,"isRobot":true,"isDismissed":false,"isEnabled":false,"timezone":"Europe/Moscow","language":"ru","createdAt":"2019-04-25T08:03:56.823Z","updatedAt":"2019-04-25T08:03:56.823Z"}'
|
40
|
-
recorded_at: Thu, 13 Oct 2022 15:16:15 GMT
|
41
|
-
recorded_with: VCR 6.1.0
|