hoiio 1.0.0 → 1.1.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/lib/hoiio-ruby/api/conference.rb +53 -0
- data/lib/hoiio-ruby/api/ivr/middle.rb +14 -0
- data/lib/hoiio-ruby/version/version.rb +1 -1
- metadata +14 -24
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 4e644a25cea3fbb90f3a6e5ae8f1570450ceae83
|
4
|
+
data.tar.gz: d8d2bd6fcedfad9445f498516e78ee61f0a698d9
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: bee4a9d3a9df7463e3b1fb9b4393157ac32fb8e16b9874bf398a2d0035cff212ee583751e1d549874b8747a5c82df17faa8dfe5566d7d7f965e39b5185d8a49a
|
7
|
+
data.tar.gz: 4bbdf07ed2cb3985ec4eb30d54020065f6e943f4ec96f2986e286c06a30cf49a6be0e901091cf46dff26450cca01c939f3a3729f1064b9e1b4ec80b8ee5e5a89
|
@@ -0,0 +1,53 @@
|
|
1
|
+
#Copyright (C) 2012 Hoiio Pte Ltd (http://www.hoiio.com)
|
2
|
+
#
|
3
|
+
#Permission is hereby granted, free of charge, to any person
|
4
|
+
#obtaining a copy of this software and associated documentation
|
5
|
+
#files (the "Software"), to deal in the Software without
|
6
|
+
#restriction, including without limitation the rights to use,
|
7
|
+
# copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
+
#copies of the Software, and to permit persons to whom the
|
9
|
+
#Software is furnished to do so, subject to the following
|
10
|
+
#conditions:
|
11
|
+
#
|
12
|
+
#The above copyright notice and this permission notice shall be
|
13
|
+
#included in all copies or substantial portions of the Software.
|
14
|
+
#
|
15
|
+
#THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
16
|
+
#EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
17
|
+
#OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
18
|
+
#NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
19
|
+
#HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
20
|
+
#WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21
|
+
#FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
22
|
+
#OTHER DEALINGS IN THE SOFTWARE.
|
23
|
+
|
24
|
+
|
25
|
+
module Hoiio
|
26
|
+
class Conference < Request
|
27
|
+
# The Conference API component of Hoiio API provides developers access to telephony services in
|
28
|
+
# more than 200 countries around the world. You will be able to initiate call conferences
|
29
|
+
# just by making an API request to our servers.
|
30
|
+
|
31
|
+
# Creates a new instance of Conference
|
32
|
+
# @param client a shared object used to cache authentication data
|
33
|
+
def initialize(client)
|
34
|
+
super client
|
35
|
+
end
|
36
|
+
|
37
|
+
# Conference Call API
|
38
|
+
# URL: http://developer.hoiio.com/docs/conference_call.html
|
39
|
+
# Call a list of destination numbers and place them in a conference call.
|
40
|
+
def call(params={})
|
41
|
+
api_post 'conference/call', params, [:dest]
|
42
|
+
end
|
43
|
+
|
44
|
+
# Conference Moderate API
|
45
|
+
# URL: http://developer.hoiio.com/docs/conference_moderate.html
|
46
|
+
# Allows you to moderate a conference that is currently in progress.
|
47
|
+
# Available actions include: "kick", "mute", and "unmute"
|
48
|
+
def moderate(params={})
|
49
|
+
api_post 'conference/moderate', params, [:txn_ref, :action]
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|
53
|
+
end
|
@@ -65,6 +65,20 @@ module Hoiio
|
|
65
65
|
api_post '/ivr/middle/monitor', params, [:session, :notify_url]
|
66
66
|
end
|
67
67
|
|
68
|
+
# Call the Hold API
|
69
|
+
# URL: http://developer.hoiio.com/docs/ivr_hold.html
|
70
|
+
# Puts an IVR session on hold and continuously plays the given message on a loop
|
71
|
+
def hold(params={})
|
72
|
+
api_post '/ivr/middle/hold', params, [:session]
|
73
|
+
end
|
74
|
+
|
75
|
+
# Call the Unhold API
|
76
|
+
# URL: http://developer.hoiio.com/docs/ivr_unhold.html
|
77
|
+
# Resumes an IVR session that was put on hold with the Hold block
|
78
|
+
def unhold(params={})
|
79
|
+
api_post '/ivr/middle/unhold', params, [:session, :notify_url]
|
80
|
+
end
|
81
|
+
|
68
82
|
end
|
69
83
|
end
|
70
84
|
end
|
metadata
CHANGED
@@ -1,52 +1,46 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hoiio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
5
|
-
prerelease:
|
4
|
+
version: 1.1.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Steve Van
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2013-08-02 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: json
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>'
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: 1.4.0
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>'
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: 1.4.0
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: httparty
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - '>'
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: 0.6.0
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - '>'
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: 0.6.0
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: rake
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
45
|
- - ~>
|
52
46
|
- !ruby/object:Gem::Version
|
@@ -54,7 +48,6 @@ dependencies:
|
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
52
|
- - ~>
|
60
53
|
- !ruby/object:Gem::Version
|
@@ -62,7 +55,6 @@ dependencies:
|
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: rspec
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
59
|
- - ~>
|
68
60
|
- !ruby/object:Gem::Version
|
@@ -70,7 +62,6 @@ dependencies:
|
|
70
62
|
type: :development
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
66
|
- - ~>
|
76
67
|
- !ruby/object:Gem::Version
|
@@ -78,7 +69,6 @@ dependencies:
|
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
70
|
name: fakeweb
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
73
|
- - ~>
|
84
74
|
- !ruby/object:Gem::Version
|
@@ -86,7 +76,6 @@ dependencies:
|
|
86
76
|
type: :development
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
80
|
- - ~>
|
92
81
|
- !ruby/object:Gem::Version
|
@@ -103,6 +92,7 @@ extra_rdoc_files:
|
|
103
92
|
- LICENSE.txt
|
104
93
|
files:
|
105
94
|
- lib/hoiio-ruby.rb
|
95
|
+
- lib/hoiio-ruby/api/conference.rb
|
106
96
|
- lib/hoiio-ruby/api/fax.rb
|
107
97
|
- lib/hoiio-ruby/api/ivr.rb
|
108
98
|
- lib/hoiio-ruby/api/ivr/end.rb
|
@@ -128,7 +118,9 @@ files:
|
|
128
118
|
- spec/user_spec.rb
|
129
119
|
- spec/voice_spec.rb
|
130
120
|
homepage: https://github.com/icarusK/hoiio-ruby
|
131
|
-
licenses:
|
121
|
+
licenses:
|
122
|
+
- MIT
|
123
|
+
metadata: {}
|
132
124
|
post_install_message:
|
133
125
|
rdoc_options:
|
134
126
|
- --line-numbers
|
@@ -140,22 +132,20 @@ rdoc_options:
|
|
140
132
|
require_paths:
|
141
133
|
- lib
|
142
134
|
required_ruby_version: !ruby/object:Gem::Requirement
|
143
|
-
none: false
|
144
135
|
requirements:
|
145
|
-
- -
|
136
|
+
- - '>='
|
146
137
|
- !ruby/object:Gem::Version
|
147
138
|
version: '0'
|
148
139
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
149
|
-
none: false
|
150
140
|
requirements:
|
151
|
-
- -
|
141
|
+
- - '>='
|
152
142
|
- !ruby/object:Gem::Version
|
153
143
|
version: '0'
|
154
144
|
requirements: []
|
155
145
|
rubyforge_project:
|
156
|
-
rubygems_version:
|
146
|
+
rubygems_version: 2.0.6
|
157
147
|
signing_key:
|
158
|
-
specification_version:
|
148
|
+
specification_version: 4
|
159
149
|
summary: Hoiio SDK for Ruby
|
160
150
|
test_files:
|
161
151
|
- spec/fax_spec.rb
|