tenios-api 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 1fd8595d7d98c5f04a53cf356299e50e21f0728a
4
- data.tar.gz: 7f78537581f544ed32b986d7a24d0613c07f1555
2
+ SHA256:
3
+ metadata.gz: bc0773c7de20d5e23769de57237ed37a076bb3b12aa5e518fa7b9ec19824ce6a
4
+ data.tar.gz: 69b602fd8a08022768c272b263e827072945062f59a4debd2512203690da7ce5
5
5
  SHA512:
6
- metadata.gz: 6e90fdb236b51cce907c88f6f6726a97ecf36d7046535efcb5978617ba8bdafa6471aeb294e1ec323be0dade529a48e947899aa27785417d7f94ceb055c37d5e
7
- data.tar.gz: ad493d6a5b904e35eba27974e8bacaa74249c3c0a1222f59f33f89eaad19286516d6775832ae01decd5f08d6cf9bc69337d369eb8408bc080fc9e853bc00b3ff
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.2.1)
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.15.4)
17
+ faraday (1.0.1)
18
18
  multipart-post (>= 1.2, < 3)
19
- faraday_middleware (0.13.1)
20
- faraday (>= 0.7.4, < 1.0)
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 (12.3.2)
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.0.2
73
+ 2.1.4
data/bin/console ADDED
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ lib = File.expand_path("../lib", __dir__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+
6
+ require "bundler/setup"
7
+ require "tenios/api"
8
+ require "pry"
9
+
10
+ Pry.start
@@ -41,6 +41,7 @@ module Tenios
41
41
  endpoint :call_detail_records, :CallDetailRecords
42
42
  endpoint :verification, :Verification
43
43
  endpoint :number, :Number
44
+ endpoint :record_call, :RecordCall
44
45
  end
45
46
  end
46
47
  end
@@ -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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tenios
4
4
  module API
5
- VERSION = '0.2.1'
5
+ VERSION = '0.3.0'
6
6
  end
7
7
  end
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.2.1
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: 2019-10-10 00:00:00.000000000 Z
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
- rubyforge_project:
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 ☎️