call-recorder-api 1.0.0
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 +7 -0
- data/.bundle/config +3 -0
- data/.gitignore +3 -0
- data/.ruby-version +1 -0
- data/Gemfile +12 -0
- data/README.md +15 -0
- data/bin/bundle +114 -0
- data/bin/htmldiff +29 -0
- data/bin/ldiff +29 -0
- data/bin/restclient +29 -0
- data/bin/rspec +29 -0
- data/lib/call_recorder_api/client.rb +464 -0
- data/lib/call_recorder_api/client/configuration.rb +13 -0
- data/lib/call_recorder_api/model.rb +79 -0
- data/lib/call_recorder_api/model/app.rb +19 -0
- data/lib/call_recorder_api/model/buy_credits_request.rb +39 -0
- data/lib/call_recorder_api/model/buy_credits_response.rb +27 -0
- data/lib/call_recorder_api/model/clone_file_request.rb +27 -0
- data/lib/call_recorder_api/model/clone_file_response.rb +35 -0
- data/lib/call_recorder_api/model/create_file_data.rb +59 -0
- data/lib/call_recorder_api/model/create_file_request.rb +31 -0
- data/lib/call_recorder_api/model/create_file_response.rb +31 -0
- data/lib/call_recorder_api/model/create_folder_request.rb +31 -0
- data/lib/call_recorder_api/model/create_folder_response.rb +35 -0
- data/lib/call_recorder_api/model/delete_files_request.rb +31 -0
- data/lib/call_recorder_api/model/delete_files_response.rb +27 -0
- data/lib/call_recorder_api/model/delete_folder_request.rb +31 -0
- data/lib/call_recorder_api/model/delete_folder_response.rb +27 -0
- data/lib/call_recorder_api/model/delete_meta_files_request.rb +31 -0
- data/lib/call_recorder_api/model/delete_meta_files_response.rb +27 -0
- data/lib/call_recorder_api/model/device_type.rb +19 -0
- data/lib/call_recorder_api/model/files_permission.rb +19 -0
- data/lib/call_recorder_api/model/get_files_request.rb +55 -0
- data/lib/call_recorder_api/model/get_files_response.rb +35 -0
- data/lib/call_recorder_api/model/get_files_response_file.rb +83 -0
- data/lib/call_recorder_api/model/get_folders_request.rb +23 -0
- data/lib/call_recorder_api/model/get_folders_response.rb +31 -0
- data/lib/call_recorder_api/model/get_folders_response_folder.rb +43 -0
- data/lib/call_recorder_api/model/get_languages_request.rb +23 -0
- data/lib/call_recorder_api/model/get_languages_response.rb +31 -0
- data/lib/call_recorder_api/model/get_messages_request.rb +23 -0
- data/lib/call_recorder_api/model/get_messages_response.rb +27 -0
- data/lib/call_recorder_api/model/get_messages_response_msg.rb +35 -0
- data/lib/call_recorder_api/model/get_meta_files_request.rb +27 -0
- data/lib/call_recorder_api/model/get_meta_files_response.rb +27 -0
- data/lib/call_recorder_api/model/get_meta_files_response_meta_files.rb +43 -0
- data/lib/call_recorder_api/model/get_phones_request.rb +23 -0
- data/lib/call_recorder_api/model/get_phones_response.rb +19 -0
- data/lib/call_recorder_api/model/get_phones_response_phone.rb +47 -0
- data/lib/call_recorder_api/model/get_profile_request.rb +23 -0
- data/lib/call_recorder_api/model/get_profile_response.rb +51 -0
- data/lib/call_recorder_api/model/get_profile_response_profile.rb +67 -0
- data/lib/call_recorder_api/model/get_settings_request.rb +23 -0
- data/lib/call_recorder_api/model/get_settings_response.rb +35 -0
- data/lib/call_recorder_api/model/get_settings_response_settings.rb +27 -0
- data/lib/call_recorder_api/model/get_translations_request.rb +27 -0
- data/lib/call_recorder_api/model/get_translations_response.rb +35 -0
- data/lib/call_recorder_api/model/language.rb +31 -0
- data/lib/call_recorder_api/model/notify_user_request.rb +35 -0
- data/lib/call_recorder_api/model/notify_user_response.rb +27 -0
- data/lib/call_recorder_api/model/play_beep.rb +19 -0
- data/lib/call_recorder_api/model/recover_file_request.rb +31 -0
- data/lib/call_recorder_api/model/recover_file_response.rb +31 -0
- data/lib/call_recorder_api/model/register_phone_request.rb +27 -0
- data/lib/call_recorder_api/model/register_phone_response.rb +35 -0
- data/lib/call_recorder_api/model/update_device_token_request.rb +31 -0
- data/lib/call_recorder_api/model/update_device_token_response.rb +27 -0
- data/lib/call_recorder_api/model/update_file_request.rb +67 -0
- data/lib/call_recorder_api/model/update_file_response.rb +27 -0
- data/lib/call_recorder_api/model/update_folder_request.rb +39 -0
- data/lib/call_recorder_api/model/update_folder_response.rb +31 -0
- data/lib/call_recorder_api/model/update_order_request.rb +27 -0
- data/lib/call_recorder_api/model/update_order_request_folder.rb +27 -0
- data/lib/call_recorder_api/model/update_order_response.rb +31 -0
- data/lib/call_recorder_api/model/update_profile_img_request.rb +27 -0
- data/lib/call_recorder_api/model/update_profile_img_response.rb +39 -0
- data/lib/call_recorder_api/model/update_profile_request.rb +27 -0
- data/lib/call_recorder_api/model/update_profile_request_data.rb +39 -0
- data/lib/call_recorder_api/model/update_profile_response.rb +31 -0
- data/lib/call_recorder_api/model/update_settings_request.rb +31 -0
- data/lib/call_recorder_api/model/update_settings_response.rb +31 -0
- data/lib/call_recorder_api/model/update_star_request.rb +35 -0
- data/lib/call_recorder_api/model/update_star_response.rb +31 -0
- data/lib/call_recorder_api/model/update_user_request.rb +31 -0
- data/lib/call_recorder_api/model/update_user_response.rb +31 -0
- data/lib/call_recorder_api/model/upload_meta_file_request.rb +39 -0
- data/lib/call_recorder_api/model/upload_meta_file_response.rb +35 -0
- data/lib/call_recorder_api/model/verify_folder_pass_request.rb +31 -0
- data/lib/call_recorder_api/model/verify_folder_pass_response.rb +31 -0
- data/lib/call_recorder_api/model/verify_phone_request.rb +55 -0
- data/lib/call_recorder_api/model/verify_phone_response.rb +35 -0
- data/spec/call_recorder_api/client_spec.rb +814 -0
- data/spec/resources/audio.mp3 +0 -0
- data/spec/resources/java.png +0 -0
- data/sync.sh +16 -0
- data/tmp.rb +23 -0
- metadata +136 -0
@@ -0,0 +1,31 @@
|
|
1
|
+
module CallRecorderApi
|
2
|
+
module Model
|
3
|
+
|
4
|
+
class UpdateProfileResponse
|
5
|
+
|
6
|
+
attr_accessor :status
|
7
|
+
attr_accessor :msg
|
8
|
+
attr_accessor :code
|
9
|
+
|
10
|
+
def initialize(
|
11
|
+
status,
|
12
|
+
msg,
|
13
|
+
code
|
14
|
+
)
|
15
|
+
@status = status
|
16
|
+
@msg = msg
|
17
|
+
@code = code
|
18
|
+
end
|
19
|
+
|
20
|
+
def to_s
|
21
|
+
'UpdateProfileResponse{' +
|
22
|
+
'status=' + status.to_s + ', ' +
|
23
|
+
'msg=' + msg.to_s + ', ' +
|
24
|
+
'code=' + code.to_s +
|
25
|
+
'}'
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
module CallRecorderApi
|
2
|
+
module Model
|
3
|
+
|
4
|
+
class UpdateSettingsRequest
|
5
|
+
|
6
|
+
attr_accessor :api_key
|
7
|
+
attr_accessor :play_beep
|
8
|
+
attr_accessor :files_permission
|
9
|
+
|
10
|
+
def initialize(
|
11
|
+
api_key,
|
12
|
+
play_beep,
|
13
|
+
files_permission
|
14
|
+
)
|
15
|
+
@api_key = api_key
|
16
|
+
@play_beep = play_beep
|
17
|
+
@files_permission = files_permission
|
18
|
+
end
|
19
|
+
|
20
|
+
def to_s
|
21
|
+
'UpdateSettingsRequest{' +
|
22
|
+
'api_key=' + api_key.to_s + ', ' +
|
23
|
+
'play_beep=' + play_beep.to_s + ', ' +
|
24
|
+
'files_permission=' + files_permission.to_s +
|
25
|
+
'}'
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
module CallRecorderApi
|
2
|
+
module Model
|
3
|
+
|
4
|
+
class UpdateSettingsResponse
|
5
|
+
|
6
|
+
attr_accessor :status
|
7
|
+
attr_accessor :msg
|
8
|
+
attr_accessor :code
|
9
|
+
|
10
|
+
def initialize(
|
11
|
+
status,
|
12
|
+
msg,
|
13
|
+
code
|
14
|
+
)
|
15
|
+
@status = status
|
16
|
+
@msg = msg
|
17
|
+
@code = code
|
18
|
+
end
|
19
|
+
|
20
|
+
def to_s
|
21
|
+
'UpdateSettingsResponse{' +
|
22
|
+
'status=' + status.to_s + ', ' +
|
23
|
+
'msg=' + msg.to_s + ', ' +
|
24
|
+
'code=' + code.to_s +
|
25
|
+
'}'
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
module CallRecorderApi
|
2
|
+
module Model
|
3
|
+
|
4
|
+
class UpdateStarRequest
|
5
|
+
|
6
|
+
attr_accessor :api_key
|
7
|
+
attr_accessor :id
|
8
|
+
attr_accessor :star
|
9
|
+
attr_accessor :type
|
10
|
+
|
11
|
+
def initialize(
|
12
|
+
api_key,
|
13
|
+
id,
|
14
|
+
star,
|
15
|
+
type
|
16
|
+
)
|
17
|
+
@api_key = api_key
|
18
|
+
@id = id
|
19
|
+
@star = star
|
20
|
+
@type = type
|
21
|
+
end
|
22
|
+
|
23
|
+
def to_s
|
24
|
+
'UpdateStarRequest{' +
|
25
|
+
'api_key=' + api_key.to_s + ', ' +
|
26
|
+
'id=' + id.to_s + ', ' +
|
27
|
+
'star=' + star.to_s + ', ' +
|
28
|
+
'type=' + type.to_s +
|
29
|
+
'}'
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
module CallRecorderApi
|
2
|
+
module Model
|
3
|
+
|
4
|
+
class UpdateStarResponse
|
5
|
+
|
6
|
+
attr_accessor :status
|
7
|
+
attr_accessor :msg
|
8
|
+
attr_accessor :code
|
9
|
+
|
10
|
+
def initialize(
|
11
|
+
status,
|
12
|
+
msg,
|
13
|
+
code
|
14
|
+
)
|
15
|
+
@status = status
|
16
|
+
@msg = msg
|
17
|
+
@code = code
|
18
|
+
end
|
19
|
+
|
20
|
+
def to_s
|
21
|
+
'UpdateStarResponse{' +
|
22
|
+
'status=' + status.to_s + ', ' +
|
23
|
+
'msg=' + msg.to_s + ', ' +
|
24
|
+
'code=' + code.to_s +
|
25
|
+
'}'
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
module CallRecorderApi
|
2
|
+
module Model
|
3
|
+
|
4
|
+
class UpdateUserRequest
|
5
|
+
|
6
|
+
attr_accessor :api_key
|
7
|
+
attr_accessor :app
|
8
|
+
attr_accessor :time_zone
|
9
|
+
|
10
|
+
def initialize(
|
11
|
+
api_key,
|
12
|
+
app,
|
13
|
+
time_zone
|
14
|
+
)
|
15
|
+
@api_key = api_key
|
16
|
+
@app = app
|
17
|
+
@time_zone = time_zone
|
18
|
+
end
|
19
|
+
|
20
|
+
def to_s
|
21
|
+
'UpdateUserRequest{' +
|
22
|
+
'api_key=' + api_key.to_s + ', ' +
|
23
|
+
'app=' + app.to_s + ', ' +
|
24
|
+
'time_zone=' + time_zone.to_s +
|
25
|
+
'}'
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
module CallRecorderApi
|
2
|
+
module Model
|
3
|
+
|
4
|
+
class UpdateUserResponse
|
5
|
+
|
6
|
+
attr_accessor :status
|
7
|
+
attr_accessor :msg
|
8
|
+
attr_accessor :code
|
9
|
+
|
10
|
+
def initialize(
|
11
|
+
status,
|
12
|
+
msg,
|
13
|
+
code
|
14
|
+
)
|
15
|
+
@status = status
|
16
|
+
@msg = msg
|
17
|
+
@code = code
|
18
|
+
end
|
19
|
+
|
20
|
+
def to_s
|
21
|
+
'UpdateUserResponse{' +
|
22
|
+
'status=' + status.to_s + ', ' +
|
23
|
+
'msg=' + msg.to_s + ', ' +
|
24
|
+
'code=' + code.to_s +
|
25
|
+
'}'
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
module CallRecorderApi
|
2
|
+
module Model
|
3
|
+
|
4
|
+
class UploadMetaFileRequest
|
5
|
+
|
6
|
+
attr_accessor :api_key
|
7
|
+
attr_accessor :file
|
8
|
+
attr_accessor :name
|
9
|
+
attr_accessor :parent_id
|
10
|
+
attr_accessor :id
|
11
|
+
|
12
|
+
def initialize(
|
13
|
+
api_key,
|
14
|
+
file,
|
15
|
+
name,
|
16
|
+
parent_id,
|
17
|
+
id
|
18
|
+
)
|
19
|
+
@api_key = api_key
|
20
|
+
@file = file
|
21
|
+
@name = name
|
22
|
+
@parent_id = parent_id
|
23
|
+
@id = id
|
24
|
+
end
|
25
|
+
|
26
|
+
def to_s
|
27
|
+
'UploadMetaFileRequest{' +
|
28
|
+
'api_key=' + api_key.to_s + ', ' +
|
29
|
+
'file=' + file.to_s + ', ' +
|
30
|
+
'name=' + name.to_s + ', ' +
|
31
|
+
'parent_id=' + parent_id.to_s + ', ' +
|
32
|
+
'id=' + id.to_s +
|
33
|
+
'}'
|
34
|
+
end
|
35
|
+
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
module CallRecorderApi
|
2
|
+
module Model
|
3
|
+
|
4
|
+
class UploadMetaFileResponse
|
5
|
+
|
6
|
+
attr_accessor :status
|
7
|
+
attr_accessor :msg
|
8
|
+
attr_accessor :parent_id
|
9
|
+
attr_accessor :id
|
10
|
+
|
11
|
+
def initialize(
|
12
|
+
status,
|
13
|
+
msg,
|
14
|
+
parent_id,
|
15
|
+
id
|
16
|
+
)
|
17
|
+
@status = status
|
18
|
+
@msg = msg
|
19
|
+
@parent_id = parent_id
|
20
|
+
@id = id
|
21
|
+
end
|
22
|
+
|
23
|
+
def to_s
|
24
|
+
'UploadMetaFileResponse{' +
|
25
|
+
'status=' + status.to_s + ', ' +
|
26
|
+
'msg=' + msg.to_s + ', ' +
|
27
|
+
'parent_id=' + parent_id.to_s + ', ' +
|
28
|
+
'id=' + id.to_s +
|
29
|
+
'}'
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
module CallRecorderApi
|
2
|
+
module Model
|
3
|
+
|
4
|
+
class VerifyFolderPassRequest
|
5
|
+
|
6
|
+
attr_accessor :api_key
|
7
|
+
attr_accessor :id
|
8
|
+
attr_accessor :pass
|
9
|
+
|
10
|
+
def initialize(
|
11
|
+
api_key,
|
12
|
+
id,
|
13
|
+
pass
|
14
|
+
)
|
15
|
+
@api_key = api_key
|
16
|
+
@id = id
|
17
|
+
@pass = pass
|
18
|
+
end
|
19
|
+
|
20
|
+
def to_s
|
21
|
+
'VerifyFolderPassRequest{' +
|
22
|
+
'api_key=' + api_key.to_s + ', ' +
|
23
|
+
'id=' + id.to_s + ', ' +
|
24
|
+
'pass=' + pass.to_s +
|
25
|
+
'}'
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
module CallRecorderApi
|
2
|
+
module Model
|
3
|
+
|
4
|
+
class VerifyFolderPassResponse
|
5
|
+
|
6
|
+
attr_accessor :status
|
7
|
+
attr_accessor :msg
|
8
|
+
attr_accessor :code
|
9
|
+
|
10
|
+
def initialize(
|
11
|
+
status,
|
12
|
+
msg,
|
13
|
+
code
|
14
|
+
)
|
15
|
+
@status = status
|
16
|
+
@msg = msg
|
17
|
+
@code = code
|
18
|
+
end
|
19
|
+
|
20
|
+
def to_s
|
21
|
+
'VerifyFolderPassResponse{' +
|
22
|
+
'status=' + status.to_s + ', ' +
|
23
|
+
'msg=' + msg.to_s + ', ' +
|
24
|
+
'code=' + code.to_s +
|
25
|
+
'}'
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
module CallRecorderApi
|
2
|
+
module Model
|
3
|
+
|
4
|
+
class VerifyPhoneRequest
|
5
|
+
|
6
|
+
attr_accessor :token
|
7
|
+
attr_accessor :phone
|
8
|
+
attr_accessor :code
|
9
|
+
attr_accessor :mcc
|
10
|
+
attr_accessor :app
|
11
|
+
attr_accessor :device_token
|
12
|
+
attr_accessor :device_id
|
13
|
+
attr_accessor :device_type
|
14
|
+
attr_accessor :time_zone
|
15
|
+
|
16
|
+
def initialize(
|
17
|
+
token,
|
18
|
+
phone,
|
19
|
+
code,
|
20
|
+
mcc,
|
21
|
+
app,
|
22
|
+
device_token,
|
23
|
+
device_id,
|
24
|
+
device_type,
|
25
|
+
time_zone
|
26
|
+
)
|
27
|
+
@token = token
|
28
|
+
@phone = phone
|
29
|
+
@code = code
|
30
|
+
@mcc = mcc
|
31
|
+
@app = app
|
32
|
+
@device_token = device_token
|
33
|
+
@device_id = device_id
|
34
|
+
@device_type = device_type
|
35
|
+
@time_zone = time_zone
|
36
|
+
end
|
37
|
+
|
38
|
+
def to_s
|
39
|
+
'VerifyPhoneRequest{' +
|
40
|
+
'token=' + token.to_s + ', ' +
|
41
|
+
'phone=' + phone.to_s + ', ' +
|
42
|
+
'code=' + code.to_s + ', ' +
|
43
|
+
'mcc=' + mcc.to_s + ', ' +
|
44
|
+
'app=' + app.to_s + ', ' +
|
45
|
+
'device_token=' + device_token.to_s + ', ' +
|
46
|
+
'device_id=' + device_id.to_s + ', ' +
|
47
|
+
'device_type=' + device_type.to_s + ', ' +
|
48
|
+
'time_zone=' + time_zone.to_s +
|
49
|
+
'}'
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|
53
|
+
|
54
|
+
end
|
55
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
module CallRecorderApi
|
2
|
+
module Model
|
3
|
+
|
4
|
+
class VerifyPhoneResponse
|
5
|
+
|
6
|
+
attr_accessor :status
|
7
|
+
attr_accessor :phone
|
8
|
+
attr_accessor :api_key
|
9
|
+
attr_accessor :msg
|
10
|
+
|
11
|
+
def initialize(
|
12
|
+
status,
|
13
|
+
phone,
|
14
|
+
api_key,
|
15
|
+
msg
|
16
|
+
)
|
17
|
+
@status = status
|
18
|
+
@phone = phone
|
19
|
+
@api_key = api_key
|
20
|
+
@msg = msg
|
21
|
+
end
|
22
|
+
|
23
|
+
def to_s
|
24
|
+
'VerifyPhoneResponse{' +
|
25
|
+
'status=' + status.to_s + ', ' +
|
26
|
+
'phone=' + phone.to_s + ', ' +
|
27
|
+
'api_key=' + api_key.to_s + ', ' +
|
28
|
+
'msg=' + msg.to_s +
|
29
|
+
'}'
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
35
|
+
end
|