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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b4a974c34512ab4db6f834bbf41da66bf2e03b54
4
- data.tar.gz: ed7292659cca097d091b540184ade6edd1ebaf0c
3
+ metadata.gz: bc300bce5b7990cee9ad4d91b5733e203bcbf4a2
4
+ data.tar.gz: dc0da607baa171ff35e78081e4506b6c272a0aab
5
5
  SHA512:
6
- metadata.gz: 98b1173ea9af08b80f9ca76d2710196faaccc38b74021b9149d16e4b51f86c0440f041997600699e700a0e148a068b3d6ddb56603535bbc214b38a4f8422f203
7
- data.tar.gz: 8e9e03b6a99e929a955f0dad684ecc15b629d5d1d6fb31e377b570c272bab0492bb83c98004e6e07de8cd3061c1a09b3d355afcb78ce28959885830ed266a8d7
6
+ metadata.gz: fc8b5f1851c24e8d60375b7eb3e713ab6196cfc3c3241b110d17c0c25c456f881bbfa3195aa6bb8d5a45156f8164c666758de6e62bee4288394bb849e3fec2c1
7
+ data.tar.gz: aa95472a866611436dbc7613d9c074debdccf9336961bc156d33516cdde4f92fc12b8f7edf6ff745d4439ba2ff1186c4bc5f15281b979189a9d75519ac97e39d
@@ -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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'portatext'
3
- s.version = '1.6.0'
3
+ s.version = '1.6.1'
4
4
  s.summary = 'Official PortaText API ruby client'
5
5
  s.description = 'This is the official PortaText API ruby client'
6
6
  s.authors = ['PortaText']
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.0
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: 2016-11-21 00:00:00.000000000 Z
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