portatext 1.6.0 → 1.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/portatext.rb +1 -0
- data/lib/portatext/command/api/calls.rb +37 -0
- data/portatext.gemspec +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc300bce5b7990cee9ad4d91b5733e203bcbf4a2
|
4
|
+
data.tar.gz: dc0da607baa171ff35e78081e4506b6c272a0aab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc8b5f1851c24e8d60375b7eb3e713ab6196cfc3c3241b110d17c0c25c456f881bbfa3195aa6bb8d5a45156f8164c666758de6e62bee4288394bb849e3fec2c1
|
7
|
+
data.tar.gz: aa95472a866611436dbc7613d9c074debdccf9336961bc156d33516cdde4f92fc12b8f7edf6ff745d4439ba2ff1186c4bc5f15281b979189a9d75519ac97e39d
|
data/lib/portatext.rb
CHANGED
@@ -47,6 +47,7 @@ require_relative 'portatext/command/api/summary'
|
|
47
47
|
require_relative 'portatext/command/api/gsm_charset'
|
48
48
|
require_relative 'portatext/command/api/sounds'
|
49
49
|
require_relative 'portatext/command/api/tel_campaign'
|
50
|
+
require_relative 'portatext/command/api/calls'
|
50
51
|
|
51
52
|
# The PortaText namespace.
|
52
53
|
#
|
@@ -0,0 +1,37 @@
|
|
1
|
+
module PortaText
|
2
|
+
module Command
|
3
|
+
module Api
|
4
|
+
# The calls endpoint.
|
5
|
+
# https://github.com/PortaText/docs/wiki/REST-API#api_calls
|
6
|
+
#
|
7
|
+
# Author:: Marcelo Gornstein (mailto:marcelog@portatext.com)
|
8
|
+
# Copyright:: Copyright (c) 2015 PortaText
|
9
|
+
# License:: Apache-2.0
|
10
|
+
class Calls < Base
|
11
|
+
def to(to)
|
12
|
+
set :to, to
|
13
|
+
end
|
14
|
+
|
15
|
+
def from(from)
|
16
|
+
set :from, from
|
17
|
+
end
|
18
|
+
|
19
|
+
def outbound_trunk_id(trunk_id)
|
20
|
+
set :outbound_trunk_id, trunk_id
|
21
|
+
end
|
22
|
+
|
23
|
+
def dial_timeout(timeout)
|
24
|
+
set :dial_timeout, timeout
|
25
|
+
end
|
26
|
+
|
27
|
+
def flow(call_flow)
|
28
|
+
set :flow, call_flow
|
29
|
+
end
|
30
|
+
|
31
|
+
def endpoint(_method)
|
32
|
+
'calls'
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
data/portatext.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: portatext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PortaText
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: simplecov
|
@@ -141,6 +141,7 @@ files:
|
|
141
141
|
- lib/portatext/client/http_client.rb
|
142
142
|
- lib/portatext/command/api/acl.rb
|
143
143
|
- lib/portatext/command/api/blacklist.rb
|
144
|
+
- lib/portatext/command/api/calls.rb
|
144
145
|
- lib/portatext/command/api/campaign_lifecycle.rb
|
145
146
|
- lib/portatext/command/api/campaigns.rb
|
146
147
|
- lib/portatext/command/api/cnam.rb
|