yandex360 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +12 -0
- data/.github/workflows/ci.yml +51 -0
- data/.gitignore +2 -0
- data/.rspec +5 -0
- data/Gemfile +0 -9
- data/Gemfile.lock +40 -1
- data/README.md +68 -3
- data/lib/yandex360/resources/departments.rb +12 -10
- data/lib/yandex360/resources/groups.rb +12 -10
- data/lib/yandex360/resources/users.rb +2 -2
- data/lib/yandex360/version.rb +2 -2
- data/lib/yandex360.rb +2 -1
- data/spec/antispam_spec.rb +46 -0
- data/spec/client_spec.rb +24 -0
- data/spec/departments_spec.rb +131 -0
- data/spec/groups_spec.rb +133 -0
- data/spec/spec_helper.rb +59 -0
- data/spec/users_spec.rb +203 -0
- data/spec/vcr/anispam/create.yml +43 -0
- data/spec/vcr/anispam/delete.yml +41 -0
- data/spec/vcr/anispam/list.yml +41 -0
- data/spec/vcr/departments/add_alias.yml +43 -0
- data/spec/vcr/departments/create.yml +43 -0
- data/spec/vcr/departments/delete.yml +41 -0
- data/spec/vcr/departments/delete_alias.yml +41 -0
- data/spec/vcr/departments/delete_error.yml +37 -0
- data/spec/vcr/departments/info.yml +41 -0
- data/spec/vcr/departments/list.yml +41 -0
- data/spec/vcr/departments/update.yml +44 -0
- data/spec/vcr/groups/add_user.yml +43 -0
- data/spec/vcr/groups/create.yml +43 -0
- data/spec/vcr/groups/delete.yml +41 -0
- data/spec/vcr/groups/delete_user.yml +41 -0
- data/spec/vcr/groups/list.yml +48 -0
- data/spec/vcr/groups/params.yml +41 -0
- data/spec/vcr/groups/update.yml +43 -0
- data/spec/vcr/groups/users.yml +41 -0
- data/spec/vcr/users/add.yml +43 -0
- data/spec/vcr/users/add_alias.yml +43 -0
- data/spec/vcr/users/delete_alias.yml +41 -0
- data/spec/vcr/users/get2FA.yml +41 -0
- data/spec/vcr/users/get2FA_error.yml +37 -0
- data/spec/vcr/users/has2FA.yml +41 -0
- data/spec/vcr/users/info.yml +41 -0
- data/spec/vcr/users/list.yml +41 -0
- data/spec/vcr/users/list_error.yml +37 -0
- data/spec/vcr/users/update.yml +44 -0
- data/yandex360.gemspec +8 -0
- metadata +144 -2
@@ -0,0 +1,37 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: delete
|
5
|
+
uri: https://api360.yandex.net/directory/v1/org/1234567/departments/13
|
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: 404
|
21
|
+
message: Not Found
|
22
|
+
headers:
|
23
|
+
Content-Type:
|
24
|
+
- application/json
|
25
|
+
Date:
|
26
|
+
- Fri, 14 Oct 2022 12:23:17 GMT
|
27
|
+
Content-Length:
|
28
|
+
- '45'
|
29
|
+
Server:
|
30
|
+
- api360
|
31
|
+
X-Request-Id:
|
32
|
+
- 51eda7ab-299f-4846-90b5-19c94a63b405
|
33
|
+
body:
|
34
|
+
encoding: UTF-8
|
35
|
+
string: '{"code":5,"message":"not_found","details":[]}'
|
36
|
+
recorded_at: Fri, 14 Oct 2022 12:23:17 GMT
|
37
|
+
recorded_with: VCR 6.1.0
|
@@ -0,0 +1,41 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api360.yandex.net/directory/v1/org/1234567/departments/13
|
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
|
+
- Fri, 14 Oct 2022 12:23:15 GMT
|
27
|
+
Grpc-Status:
|
28
|
+
- '0'
|
29
|
+
Grpc-Message:
|
30
|
+
- OK
|
31
|
+
Content-Length:
|
32
|
+
- '226'
|
33
|
+
Server:
|
34
|
+
- api360
|
35
|
+
X-Request-Id:
|
36
|
+
- 2257ab6f-92d9-4356-bb13-6a97b0a23812
|
37
|
+
body:
|
38
|
+
encoding: UTF-8
|
39
|
+
string: '{"id":13,"name":"Support Team","parentId":1,"description":"Yandex360","externalId":"","label":"support-team","email":"support-team@example.ru","headId":"0","membersCount":0,"aliases":[],"createdAt":"2022-10-14T12:23:13.909Z"}'
|
40
|
+
recorded_at: Fri, 14 Oct 2022 12:23:15 GMT
|
41
|
+
recorded_with: VCR 6.1.0
|
@@ -0,0 +1,41 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api360.yandex.net/directory/v1/org/1234567/departments?orderBy=id&page=1&parentId=0&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
|
+
- Fri, 14 Oct 2022 12:23:13 GMT
|
27
|
+
Grpc-Status:
|
28
|
+
- '0'
|
29
|
+
Grpc-Message:
|
30
|
+
- OK
|
31
|
+
Content-Length:
|
32
|
+
- '1008'
|
33
|
+
Server:
|
34
|
+
- api360
|
35
|
+
X-Request-Id:
|
36
|
+
- 7b5805d9-c678-4c64-b1eb-941ccd26fb7a
|
37
|
+
body:
|
38
|
+
encoding: UTF-8
|
39
|
+
string: '{"departments":[{"id":1,"name":"Все сотрудники","parentId":0,"description":"","externalId":"","label":"","email":"","headId":"0","membersCount":28,"aliases":[],"createdAt":"2018-08-13T09:28:29.434Z"},{"id":3,"name":"Golang developers","parentId":1,"description":"гоферы","externalId":"","label":"go-devs","email":"go-devs@example.ru","headId":"0","membersCount":0,"aliases":[],"createdAt":"2022-10-07T16:00:02.931Z"},{"id":6,"name":"juniors","parentId":3,"description":"","externalId":"","label":"","email":"","headId":"0","membersCount":0,"aliases":[],"createdAt":"2022-10-07T16:01:51.472Z"},{"id":7,"name":"middles","parentId":3,"description":"","externalId":"","label":"","email":"","headId":"0","membersCount":0,"aliases":[],"createdAt":"2022-10-07T16:01:58.985Z"},{"id":8,"name":"seniors","parentId":3,"description":"","externalId":"","label":"","email":"","headId":"0","membersCount":0,"aliases":[],"createdAt":"2022-10-07T16:02:06.572Z"}],"page":1,"pages":1,"perPage":10,"total":5}'
|
40
|
+
recorded_at: Fri, 14 Oct 2022 12:23:13 GMT
|
41
|
+
recorded_with: VCR 6.1.0
|
@@ -0,0 +1,44 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: patch
|
5
|
+
uri: https://api360.yandex.net/directory/v1/org/1234567/departments/13
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"orgId":"1234567","departmentId":"13","parentId":"1","description":"Yandex360","name":"Support
|
9
|
+
Team","label":"support-team"}'
|
10
|
+
headers:
|
11
|
+
User-Agent:
|
12
|
+
- Faraday v1.10.2
|
13
|
+
Authorization:
|
14
|
+
- TOKEN
|
15
|
+
Content-Type:
|
16
|
+
- application/json
|
17
|
+
Accept-Encoding:
|
18
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
19
|
+
Accept:
|
20
|
+
- "*/*"
|
21
|
+
response:
|
22
|
+
status:
|
23
|
+
code: 200
|
24
|
+
message: OK
|
25
|
+
headers:
|
26
|
+
Content-Type:
|
27
|
+
- application/json
|
28
|
+
Date:
|
29
|
+
- Fri, 14 Oct 2022 12:23:15 GMT
|
30
|
+
Grpc-Status:
|
31
|
+
- '0'
|
32
|
+
Grpc-Message:
|
33
|
+
- OK
|
34
|
+
Content-Length:
|
35
|
+
- '226'
|
36
|
+
Server:
|
37
|
+
- api360
|
38
|
+
X-Request-Id:
|
39
|
+
- 1e84178e-c771-4f85-b6ea-02a2411056e3
|
40
|
+
body:
|
41
|
+
encoding: UTF-8
|
42
|
+
string: '{"id":13,"name":"Support Team","parentId":1,"description":"Yandex360","externalId":"","label":"support-team","email":"support-team@example.ru","headId":"0","membersCount":0,"aliases":[],"createdAt":"2022-10-14T12:23:13.909Z"}'
|
43
|
+
recorded_at: Fri, 14 Oct 2022 12:23:15 GMT
|
44
|
+
recorded_with: VCR 6.1.0
|
@@ -0,0 +1,43 @@
|
|
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
|
@@ -0,0 +1,43 @@
|
|
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
|
@@ -0,0 +1,41 @@
|
|
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
|
@@ -0,0 +1,41 @@
|
|
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
|
@@ -0,0 +1,48 @@
|
|
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
|
@@ -0,0 +1,41 @@
|
|
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
|
@@ -0,0 +1,43 @@
|
|
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
|
@@ -0,0 +1,41 @@
|
|
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
|
@@ -0,0 +1,43 @@
|
|
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
|
@@ -0,0 +1,43 @@
|
|
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
|
@@ -0,0 +1,41 @@
|
|
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
|