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,43 @@
|
|
1
|
+
module CallRecorderApi
|
2
|
+
module Model
|
3
|
+
|
4
|
+
class GetFoldersResponseFolder
|
5
|
+
|
6
|
+
attr_accessor :id
|
7
|
+
attr_accessor :name
|
8
|
+
attr_accessor :created
|
9
|
+
attr_accessor :updated
|
10
|
+
attr_accessor :is_start
|
11
|
+
attr_accessor :order_id
|
12
|
+
|
13
|
+
def initialize(
|
14
|
+
id,
|
15
|
+
name,
|
16
|
+
created,
|
17
|
+
updated,
|
18
|
+
is_start,
|
19
|
+
order_id
|
20
|
+
)
|
21
|
+
@id = id
|
22
|
+
@name = name
|
23
|
+
@created = created
|
24
|
+
@updated = updated
|
25
|
+
@is_start = is_start
|
26
|
+
@order_id = order_id
|
27
|
+
end
|
28
|
+
|
29
|
+
def to_s
|
30
|
+
'GetFoldersResponseFolder{' +
|
31
|
+
'id=' + id.to_s + ', ' +
|
32
|
+
'name=' + name.to_s + ', ' +
|
33
|
+
'created=' + created.to_s + ', ' +
|
34
|
+
'updated=' + updated.to_s + ', ' +
|
35
|
+
'is_start=' + is_start.to_s + ', ' +
|
36
|
+
'order_id=' + order_id.to_s +
|
37
|
+
'}'
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module CallRecorderApi
|
2
|
+
module Model
|
3
|
+
|
4
|
+
class GetLanguagesRequest
|
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
|
+
'GetLanguagesRequest{' +
|
16
|
+
'api_key=' + api_key.to_s +
|
17
|
+
'}'
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
module CallRecorderApi
|
2
|
+
module Model
|
3
|
+
|
4
|
+
class GetLanguagesResponse
|
5
|
+
|
6
|
+
attr_accessor :status
|
7
|
+
attr_accessor :msg
|
8
|
+
attr_accessor :languages
|
9
|
+
|
10
|
+
def initialize(
|
11
|
+
status,
|
12
|
+
msg,
|
13
|
+
languages
|
14
|
+
)
|
15
|
+
@status = status
|
16
|
+
@msg = msg
|
17
|
+
@languages = languages
|
18
|
+
end
|
19
|
+
|
20
|
+
def to_s
|
21
|
+
'GetLanguagesResponse{' +
|
22
|
+
'status=' + status.to_s + ', ' +
|
23
|
+
'msg=' + msg.to_s + ', ' +
|
24
|
+
'languages=' + languages.to_s +
|
25
|
+
'}'
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module CallRecorderApi
|
2
|
+
module Model
|
3
|
+
|
4
|
+
class GetMessagesRequest
|
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
|
+
'GetMessagesRequest{' +
|
16
|
+
'api_key=' + api_key.to_s +
|
17
|
+
'}'
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module CallRecorderApi
|
2
|
+
module Model
|
3
|
+
|
4
|
+
class GetMessagesResponse
|
5
|
+
|
6
|
+
attr_accessor :status
|
7
|
+
attr_accessor :msgs
|
8
|
+
|
9
|
+
def initialize(
|
10
|
+
status,
|
11
|
+
msgs
|
12
|
+
)
|
13
|
+
@status = status
|
14
|
+
@msgs = msgs
|
15
|
+
end
|
16
|
+
|
17
|
+
def to_s
|
18
|
+
'GetMessagesResponse{' +
|
19
|
+
'status=' + status.to_s + ', ' +
|
20
|
+
'msgs=' + msgs.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 GetMessagesResponseMsg
|
5
|
+
|
6
|
+
attr_accessor :id
|
7
|
+
attr_accessor :title
|
8
|
+
attr_accessor :body
|
9
|
+
attr_accessor :time
|
10
|
+
|
11
|
+
def initialize(
|
12
|
+
id,
|
13
|
+
title,
|
14
|
+
body,
|
15
|
+
time
|
16
|
+
)
|
17
|
+
@id = id
|
18
|
+
@title = title
|
19
|
+
@body = body
|
20
|
+
@time = time
|
21
|
+
end
|
22
|
+
|
23
|
+
def to_s
|
24
|
+
'GetMessagesResponseMsg{' +
|
25
|
+
'id=' + id.to_s + ', ' +
|
26
|
+
'title=' + title.to_s + ', ' +
|
27
|
+
'body=' + body.to_s + ', ' +
|
28
|
+
'time=' + time.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 GetMetaFilesRequest
|
5
|
+
|
6
|
+
attr_accessor :api_key
|
7
|
+
attr_accessor :parent_id
|
8
|
+
|
9
|
+
def initialize(
|
10
|
+
api_key,
|
11
|
+
parent_id
|
12
|
+
)
|
13
|
+
@api_key = api_key
|
14
|
+
@parent_id = parent_id
|
15
|
+
end
|
16
|
+
|
17
|
+
def to_s
|
18
|
+
'GetMetaFilesRequest{' +
|
19
|
+
'api_key=' + api_key.to_s + ', ' +
|
20
|
+
'parent_id=' + parent_id.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 GetMetaFilesResponse
|
5
|
+
|
6
|
+
attr_accessor :status
|
7
|
+
attr_accessor :meta_files
|
8
|
+
|
9
|
+
def initialize(
|
10
|
+
status,
|
11
|
+
meta_files
|
12
|
+
)
|
13
|
+
@status = status
|
14
|
+
@meta_files = meta_files
|
15
|
+
end
|
16
|
+
|
17
|
+
def to_s
|
18
|
+
'GetMetaFilesResponse{' +
|
19
|
+
'status=' + status.to_s + ', ' +
|
20
|
+
'meta_files=' + meta_files.to_s +
|
21
|
+
'}'
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
module CallRecorderApi
|
2
|
+
module Model
|
3
|
+
|
4
|
+
class GetMetaFilesResponseMetaFiles
|
5
|
+
|
6
|
+
attr_accessor :id
|
7
|
+
attr_accessor :parent_id
|
8
|
+
attr_accessor :name
|
9
|
+
attr_accessor :file
|
10
|
+
attr_accessor :user_id
|
11
|
+
attr_accessor :time
|
12
|
+
|
13
|
+
def initialize(
|
14
|
+
id,
|
15
|
+
parent_id,
|
16
|
+
name,
|
17
|
+
file,
|
18
|
+
user_id,
|
19
|
+
time
|
20
|
+
)
|
21
|
+
@id = id
|
22
|
+
@parent_id = parent_id
|
23
|
+
@name = name
|
24
|
+
@file = file
|
25
|
+
@user_id = user_id
|
26
|
+
@time = time
|
27
|
+
end
|
28
|
+
|
29
|
+
def to_s
|
30
|
+
'GetMetaFilesResponseMetaFiles{' +
|
31
|
+
'id=' + id.to_s + ', ' +
|
32
|
+
'parent_id=' + parent_id.to_s + ', ' +
|
33
|
+
'name=' + name.to_s + ', ' +
|
34
|
+
'file=' + file.to_s + ', ' +
|
35
|
+
'user_id=' + user_id.to_s + ', ' +
|
36
|
+
'time=' + time.to_s +
|
37
|
+
'}'
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module CallRecorderApi
|
2
|
+
module Model
|
3
|
+
|
4
|
+
class GetPhonesRequest
|
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
|
+
'GetPhonesRequest{' +
|
16
|
+
'api_key=' + api_key.to_s +
|
17
|
+
'}'
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
module CallRecorderApi
|
2
|
+
module Model
|
3
|
+
|
4
|
+
class GetPhonesResponsePhone
|
5
|
+
|
6
|
+
attr_accessor :phone_number
|
7
|
+
attr_accessor :number
|
8
|
+
attr_accessor :prefix
|
9
|
+
attr_accessor :friendly_name
|
10
|
+
attr_accessor :flag
|
11
|
+
attr_accessor :city
|
12
|
+
attr_accessor :country
|
13
|
+
|
14
|
+
def initialize(
|
15
|
+
phone_number,
|
16
|
+
number,
|
17
|
+
prefix,
|
18
|
+
friendly_name,
|
19
|
+
flag,
|
20
|
+
city,
|
21
|
+
country
|
22
|
+
)
|
23
|
+
@phone_number = phone_number
|
24
|
+
@number = number
|
25
|
+
@prefix = prefix
|
26
|
+
@friendly_name = friendly_name
|
27
|
+
@flag = flag
|
28
|
+
@city = city
|
29
|
+
@country = country
|
30
|
+
end
|
31
|
+
|
32
|
+
def to_s
|
33
|
+
'GetPhonesResponsePhone{' +
|
34
|
+
'phone_number=' + phone_number.to_s + ', ' +
|
35
|
+
'number=' + number.to_s + ', ' +
|
36
|
+
'prefix=' + prefix.to_s + ', ' +
|
37
|
+
'friendly_name=' + friendly_name.to_s + ', ' +
|
38
|
+
'flag=' + flag.to_s + ', ' +
|
39
|
+
'city=' + city.to_s + ', ' +
|
40
|
+
'country=' + country.to_s +
|
41
|
+
'}'
|
42
|
+
end
|
43
|
+
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module CallRecorderApi
|
2
|
+
module Model
|
3
|
+
|
4
|
+
class GetProfileRequest
|
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
|
+
'GetProfileRequest{' +
|
16
|
+
'api_key=' + api_key.to_s +
|
17
|
+
'}'
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
module CallRecorderApi
|
2
|
+
module Model
|
3
|
+
|
4
|
+
class GetProfileResponse
|
5
|
+
|
6
|
+
attr_accessor :status
|
7
|
+
attr_accessor :code
|
8
|
+
attr_accessor :profile
|
9
|
+
attr_accessor :app
|
10
|
+
attr_accessor :share_url
|
11
|
+
attr_accessor :rate_url
|
12
|
+
attr_accessor :credits
|
13
|
+
attr_accessor :credits_trans
|
14
|
+
|
15
|
+
def initialize(
|
16
|
+
status,
|
17
|
+
code,
|
18
|
+
profile,
|
19
|
+
app,
|
20
|
+
share_url,
|
21
|
+
rate_url,
|
22
|
+
credits,
|
23
|
+
credits_trans
|
24
|
+
)
|
25
|
+
@status = status
|
26
|
+
@code = code
|
27
|
+
@profile = profile
|
28
|
+
@app = app
|
29
|
+
@share_url = share_url
|
30
|
+
@rate_url = rate_url
|
31
|
+
@credits = credits
|
32
|
+
@credits_trans = credits_trans
|
33
|
+
end
|
34
|
+
|
35
|
+
def to_s
|
36
|
+
'GetProfileResponse{' +
|
37
|
+
'status=' + status.to_s + ', ' +
|
38
|
+
'code=' + code.to_s + ', ' +
|
39
|
+
'profile=' + profile.to_s + ', ' +
|
40
|
+
'app=' + app.to_s + ', ' +
|
41
|
+
'share_url=' + share_url.to_s + ', ' +
|
42
|
+
'rate_url=' + rate_url.to_s + ', ' +
|
43
|
+
'credits=' + credits.to_s + ', ' +
|
44
|
+
'credits_trans=' + credits_trans.to_s +
|
45
|
+
'}'
|
46
|
+
end
|
47
|
+
|
48
|
+
end
|
49
|
+
|
50
|
+
end
|
51
|
+
end
|