tenios-api 0.2.1 → 0.3.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 +5 -5
- data/Gemfile.lock +6 -6
- data/bin/console +10 -0
- data/lib/tenios/api/client.rb +1 -0
- data/lib/tenios/api/record_call.rb +30 -0
- data/lib/tenios/api/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: bc0773c7de20d5e23769de57237ed37a076bb3b12aa5e518fa7b9ec19824ce6a
|
|
4
|
+
data.tar.gz: 69b602fd8a08022768c272b263e827072945062f59a4debd2512203690da7ce5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '091d288e62b6e46e2976ee139da9876b4b0142dc0e976f9f774a91dd85864558931dad609cdbb5dd6b47ee7397b98d11b72d9f2dbd457e8d4ae3af47474c459e'
|
|
7
|
+
data.tar.gz: 49ff97e262d6f1f78cc4c2157a1df8598ac7f5c993e0d8e6e869ccb1f8a218127c867f3b78904b323e187b1bb6767bd97e2c33991dbd657e77fd4c8104b38e0c
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
tenios-api (0.
|
|
4
|
+
tenios-api (0.3.0)
|
|
5
5
|
faraday
|
|
6
6
|
faraday_middleware
|
|
7
7
|
|
|
@@ -14,10 +14,10 @@ GEM
|
|
|
14
14
|
rubocop-rspec (~> 1.28)
|
|
15
15
|
coderay (1.1.2)
|
|
16
16
|
diff-lcs (1.3)
|
|
17
|
-
faraday (0.
|
|
17
|
+
faraday (1.0.1)
|
|
18
18
|
multipart-post (>= 1.2, < 3)
|
|
19
|
-
faraday_middleware (0.
|
|
20
|
-
faraday (
|
|
19
|
+
faraday_middleware (1.0.0)
|
|
20
|
+
faraday (~> 1.0)
|
|
21
21
|
jaro_winkler (1.5.2)
|
|
22
22
|
method_source (0.9.2)
|
|
23
23
|
multipart-post (2.1.1)
|
|
@@ -30,7 +30,7 @@ GEM
|
|
|
30
30
|
method_source (~> 0.9.0)
|
|
31
31
|
psych (3.1.0)
|
|
32
32
|
rainbow (3.0.0)
|
|
33
|
-
rake (
|
|
33
|
+
rake (13.0.1)
|
|
34
34
|
rspec (3.8.0)
|
|
35
35
|
rspec-core (~> 3.8.0)
|
|
36
36
|
rspec-expectations (~> 3.8.0)
|
|
@@ -70,4 +70,4 @@ DEPENDENCIES
|
|
|
70
70
|
tenios-api!
|
|
71
71
|
|
|
72
72
|
BUNDLED WITH
|
|
73
|
-
2.
|
|
73
|
+
2.1.4
|
data/bin/console
ADDED
data/lib/tenios/api/client.rb
CHANGED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Tenios
|
|
4
|
+
module API
|
|
5
|
+
class RecordCall
|
|
6
|
+
attr_reader :client
|
|
7
|
+
|
|
8
|
+
def initialize(client)
|
|
9
|
+
@client = client
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def start(call_uuid:)
|
|
13
|
+
client.http_client.post(
|
|
14
|
+
'/record-call/start',
|
|
15
|
+
access_key: client.access_key,
|
|
16
|
+
call_uuid: call_uuid
|
|
17
|
+
).body
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def stop(recording_uuid:, call_uuid:)
|
|
21
|
+
client.http_client.post(
|
|
22
|
+
'/record-call/stop',
|
|
23
|
+
access_key: client.access_key,
|
|
24
|
+
call_uuid: call_uuid,
|
|
25
|
+
recording_uuid: recording_uuid
|
|
26
|
+
).body
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
data/lib/tenios/api/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tenios-api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- carwow Developers
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2020-04-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -124,11 +124,13 @@ files:
|
|
|
124
124
|
- LICENSE.txt
|
|
125
125
|
- README.md
|
|
126
126
|
- Rakefile
|
|
127
|
+
- bin/console
|
|
127
128
|
- lib/tenios-api.rb
|
|
128
129
|
- lib/tenios/api.rb
|
|
129
130
|
- lib/tenios/api/call_detail_records.rb
|
|
130
131
|
- lib/tenios/api/client.rb
|
|
131
132
|
- lib/tenios/api/number.rb
|
|
133
|
+
- lib/tenios/api/record_call.rb
|
|
132
134
|
- lib/tenios/api/verification.rb
|
|
133
135
|
- lib/tenios/api/version.rb
|
|
134
136
|
- tenios-api.gemspec
|
|
@@ -152,8 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
152
154
|
- !ruby/object:Gem::Version
|
|
153
155
|
version: '0'
|
|
154
156
|
requirements: []
|
|
155
|
-
|
|
156
|
-
rubygems_version: 2.6.14.1
|
|
157
|
+
rubygems_version: 3.0.3
|
|
157
158
|
signing_key:
|
|
158
159
|
specification_version: 4
|
|
159
160
|
summary: Tenios API Client ☎️
|