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,67 @@
|
|
1
|
+
module CallRecorderApi
|
2
|
+
module Model
|
3
|
+
|
4
|
+
class GetProfileResponseProfile
|
5
|
+
|
6
|
+
attr_accessor :f_name
|
7
|
+
attr_accessor :l_name
|
8
|
+
attr_accessor :email
|
9
|
+
attr_accessor :phone
|
10
|
+
attr_accessor :pic
|
11
|
+
attr_accessor :language
|
12
|
+
attr_accessor :is_public
|
13
|
+
attr_accessor :play_beep
|
14
|
+
attr_accessor :max_length
|
15
|
+
attr_accessor :time_zone
|
16
|
+
attr_accessor :time
|
17
|
+
attr_accessor :pin
|
18
|
+
|
19
|
+
def initialize(
|
20
|
+
f_name,
|
21
|
+
l_name,
|
22
|
+
email,
|
23
|
+
phone,
|
24
|
+
pic,
|
25
|
+
language,
|
26
|
+
is_public,
|
27
|
+
play_beep,
|
28
|
+
max_length,
|
29
|
+
time_zone,
|
30
|
+
time,
|
31
|
+
pin
|
32
|
+
)
|
33
|
+
@f_name = f_name
|
34
|
+
@l_name = l_name
|
35
|
+
@email = email
|
36
|
+
@phone = phone
|
37
|
+
@pic = pic
|
38
|
+
@language = language
|
39
|
+
@is_public = is_public
|
40
|
+
@play_beep = play_beep
|
41
|
+
@max_length = max_length
|
42
|
+
@time_zone = time_zone
|
43
|
+
@time = time
|
44
|
+
@pin = pin
|
45
|
+
end
|
46
|
+
|
47
|
+
def to_s
|
48
|
+
'GetProfileResponseProfile{' +
|
49
|
+
'f_name=' + f_name.to_s + ', ' +
|
50
|
+
'l_name=' + l_name.to_s + ', ' +
|
51
|
+
'email=' + email.to_s + ', ' +
|
52
|
+
'phone=' + phone.to_s + ', ' +
|
53
|
+
'pic=' + pic.to_s + ', ' +
|
54
|
+
'language=' + language.to_s + ', ' +
|
55
|
+
'is_public=' + is_public.to_s + ', ' +
|
56
|
+
'play_beep=' + play_beep.to_s + ', ' +
|
57
|
+
'max_length=' + max_length.to_s + ', ' +
|
58
|
+
'time_zone=' + time_zone.to_s + ', ' +
|
59
|
+
'time=' + time.to_s + ', ' +
|
60
|
+
'pin=' + pin.to_s +
|
61
|
+
'}'
|
62
|
+
end
|
63
|
+
|
64
|
+
end
|
65
|
+
|
66
|
+
end
|
67
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module CallRecorderApi
|
2
|
+
module Model
|
3
|
+
|
4
|
+
class GetSettingsRequest
|
5
|
+
|
6
|
+
attr_accessor :api_key
|
7
|
+
|
8
|
+
def initialize(
|
9
|
+
api_key
|
10
|
+
)
|
11
|
+
@api_key = api_key
|
12
|
+
end
|
13
|
+
|
14
|
+
def to_s
|
15
|
+
'GetSettingsRequest{' +
|
16
|
+
'api_key=' + api_key.to_s +
|
17
|
+
'}'
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
module CallRecorderApi
|
2
|
+
module Model
|
3
|
+
|
4
|
+
class GetSettingsResponse
|
5
|
+
|
6
|
+
attr_accessor :status
|
7
|
+
attr_accessor :app
|
8
|
+
attr_accessor :credits
|
9
|
+
attr_accessor :settings
|
10
|
+
|
11
|
+
def initialize(
|
12
|
+
status,
|
13
|
+
app,
|
14
|
+
credits,
|
15
|
+
settings
|
16
|
+
)
|
17
|
+
@status = status
|
18
|
+
@app = app
|
19
|
+
@credits = credits
|
20
|
+
@settings = settings
|
21
|
+
end
|
22
|
+
|
23
|
+
def to_s
|
24
|
+
'GetSettingsResponse{' +
|
25
|
+
'status=' + status.to_s + ', ' +
|
26
|
+
'app=' + app.to_s + ', ' +
|
27
|
+
'credits=' + credits.to_s + ', ' +
|
28
|
+
'settings=' + settings.to_s +
|
29
|
+
'}'
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module CallRecorderApi
|
2
|
+
module Model
|
3
|
+
|
4
|
+
class GetSettingsResponseSettings
|
5
|
+
|
6
|
+
attr_accessor :play_beep
|
7
|
+
attr_accessor :files_permission
|
8
|
+
|
9
|
+
def initialize(
|
10
|
+
play_beep,
|
11
|
+
files_permission
|
12
|
+
)
|
13
|
+
@play_beep = play_beep
|
14
|
+
@files_permission = files_permission
|
15
|
+
end
|
16
|
+
|
17
|
+
def to_s
|
18
|
+
'GetSettingsResponseSettings{' +
|
19
|
+
'play_beep=' + play_beep.to_s + ', ' +
|
20
|
+
'files_permission=' + files_permission.to_s +
|
21
|
+
'}'
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module CallRecorderApi
|
2
|
+
module Model
|
3
|
+
|
4
|
+
class GetTranslationsRequest
|
5
|
+
|
6
|
+
attr_accessor :api_key
|
7
|
+
attr_accessor :language
|
8
|
+
|
9
|
+
def initialize(
|
10
|
+
api_key,
|
11
|
+
language
|
12
|
+
)
|
13
|
+
@api_key = api_key
|
14
|
+
@language = language
|
15
|
+
end
|
16
|
+
|
17
|
+
def to_s
|
18
|
+
'GetTranslationsRequest{' +
|
19
|
+
'api_key=' + api_key.to_s + ', ' +
|
20
|
+
'language=' + language.to_s +
|
21
|
+
'}'
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
module CallRecorderApi
|
2
|
+
module Model
|
3
|
+
|
4
|
+
class GetTranslationsResponse
|
5
|
+
|
6
|
+
attr_accessor :status
|
7
|
+
attr_accessor :msg
|
8
|
+
attr_accessor :code
|
9
|
+
attr_accessor :translation
|
10
|
+
|
11
|
+
def initialize(
|
12
|
+
status,
|
13
|
+
msg,
|
14
|
+
code,
|
15
|
+
translation
|
16
|
+
)
|
17
|
+
@status = status
|
18
|
+
@msg = msg
|
19
|
+
@code = code
|
20
|
+
@translation = translation
|
21
|
+
end
|
22
|
+
|
23
|
+
def to_s
|
24
|
+
'GetTranslationsResponse{' +
|
25
|
+
'status=' + status.to_s + ', ' +
|
26
|
+
'msg=' + msg.to_s + ', ' +
|
27
|
+
'code=' + code.to_s + ', ' +
|
28
|
+
'translation=' + translation.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 Language
|
5
|
+
|
6
|
+
attr_accessor :code
|
7
|
+
attr_accessor :name
|
8
|
+
attr_accessor :flag
|
9
|
+
|
10
|
+
def initialize(
|
11
|
+
code,
|
12
|
+
name,
|
13
|
+
flag
|
14
|
+
)
|
15
|
+
@code = code
|
16
|
+
@name = name
|
17
|
+
@flag = flag
|
18
|
+
end
|
19
|
+
|
20
|
+
def to_s
|
21
|
+
'Language{' +
|
22
|
+
'code=' + code.to_s + ', ' +
|
23
|
+
'name=' + name.to_s + ', ' +
|
24
|
+
'flag=' + flag.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 NotifyUserRequest
|
5
|
+
|
6
|
+
attr_accessor :api_key
|
7
|
+
attr_accessor :title
|
8
|
+
attr_accessor :body
|
9
|
+
attr_accessor :device_type
|
10
|
+
|
11
|
+
def initialize(
|
12
|
+
api_key,
|
13
|
+
title,
|
14
|
+
body,
|
15
|
+
device_type
|
16
|
+
)
|
17
|
+
@api_key = api_key
|
18
|
+
@title = title
|
19
|
+
@body = body
|
20
|
+
@device_type = device_type
|
21
|
+
end
|
22
|
+
|
23
|
+
def to_s
|
24
|
+
'NotifyUserRequest{' +
|
25
|
+
'api_key=' + api_key.to_s + ', ' +
|
26
|
+
'title=' + title.to_s + ', ' +
|
27
|
+
'body=' + body.to_s + ', ' +
|
28
|
+
'device_type=' + device_type.to_s +
|
29
|
+
'}'
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module CallRecorderApi
|
2
|
+
module Model
|
3
|
+
|
4
|
+
class NotifyUserResponse
|
5
|
+
|
6
|
+
attr_accessor :status
|
7
|
+
attr_accessor :msg
|
8
|
+
|
9
|
+
def initialize(
|
10
|
+
status,
|
11
|
+
msg
|
12
|
+
)
|
13
|
+
@status = status
|
14
|
+
@msg = msg
|
15
|
+
end
|
16
|
+
|
17
|
+
def to_s
|
18
|
+
'NotifyUserResponse{' +
|
19
|
+
'status=' + status.to_s + ', ' +
|
20
|
+
'msg=' + msg.to_s +
|
21
|
+
'}'
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
module CallRecorderApi
|
2
|
+
module Model
|
3
|
+
|
4
|
+
class RecoverFileRequest
|
5
|
+
|
6
|
+
attr_accessor :api_key
|
7
|
+
attr_accessor :id
|
8
|
+
attr_accessor :folder_id
|
9
|
+
|
10
|
+
def initialize(
|
11
|
+
api_key,
|
12
|
+
id,
|
13
|
+
folder_id
|
14
|
+
)
|
15
|
+
@api_key = api_key
|
16
|
+
@id = id
|
17
|
+
@folder_id = folder_id
|
18
|
+
end
|
19
|
+
|
20
|
+
def to_s
|
21
|
+
'RecoverFileRequest{' +
|
22
|
+
'api_key=' + api_key.to_s + ', ' +
|
23
|
+
'id=' + id.to_s + ', ' +
|
24
|
+
'folder_id=' + folder_id.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 RecoverFileResponse
|
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
|
+
'RecoverFileResponse{' +
|
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,27 @@
|
|
1
|
+
module CallRecorderApi
|
2
|
+
module Model
|
3
|
+
|
4
|
+
class RegisterPhoneRequest
|
5
|
+
|
6
|
+
attr_accessor :token
|
7
|
+
attr_accessor :phone
|
8
|
+
|
9
|
+
def initialize(
|
10
|
+
token,
|
11
|
+
phone
|
12
|
+
)
|
13
|
+
@token = token
|
14
|
+
@phone = phone
|
15
|
+
end
|
16
|
+
|
17
|
+
def to_s
|
18
|
+
'RegisterPhoneRequest{' +
|
19
|
+
'token=' + token.to_s + ', ' +
|
20
|
+
'phone=' + phone.to_s +
|
21
|
+
'}'
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
module CallRecorderApi
|
2
|
+
module Model
|
3
|
+
|
4
|
+
class RegisterPhoneResponse
|
5
|
+
|
6
|
+
attr_accessor :status
|
7
|
+
attr_accessor :phone
|
8
|
+
attr_accessor :code
|
9
|
+
attr_accessor :msg
|
10
|
+
|
11
|
+
def initialize(
|
12
|
+
status,
|
13
|
+
phone,
|
14
|
+
code,
|
15
|
+
msg
|
16
|
+
)
|
17
|
+
@status = status
|
18
|
+
@phone = phone
|
19
|
+
@code = code
|
20
|
+
@msg = msg
|
21
|
+
end
|
22
|
+
|
23
|
+
def to_s
|
24
|
+
'RegisterPhoneResponse{' +
|
25
|
+
'status=' + status.to_s + ', ' +
|
26
|
+
'phone=' + phone.to_s + ', ' +
|
27
|
+
'code=' + code.to_s + ', ' +
|
28
|
+
'msg=' + msg.to_s +
|
29
|
+
'}'
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
35
|
+
end
|