esendex4soap 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/esendex4soap.gemspec +2 -2
- data/lib/esendex4soap.rb +12 -2
- metadata +132 -137
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.1
|
data/esendex4soap.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "esendex4soap"
|
8
|
-
s.version = "0.6.
|
8
|
+
s.version = "0.6.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Voip Scout"]
|
12
|
-
s.date = "2012-
|
12
|
+
s.date = "2012-03-09"
|
13
13
|
s.description = "thanks to savon library"
|
14
14
|
s.email = "voipscout@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/esendex4soap.rb
CHANGED
@@ -52,6 +52,16 @@ module Esendex
|
|
52
52
|
end
|
53
53
|
end
|
54
54
|
|
55
|
+
def get_inbox_messages
|
56
|
+
client = Savon::Client.new(INBOX_SERVICE_WSDL)
|
57
|
+
#http://jira.codehaus.org/browse/JRUBY-5529 - jruby-openssl in --1.9 jruby mode
|
58
|
+
client.http.auth.ssl.verify_mode=(:none)
|
59
|
+
resp = client.request :com, :get_messages do |soap|
|
60
|
+
soap.header["com:MessengerHeader"] = {"com:Username" => @username, "com:Password" => @password, "com:Account" => @account_reference}
|
61
|
+
end
|
62
|
+
resp[:get_messages_response][:get_messages_result][:message]
|
63
|
+
end
|
64
|
+
|
55
65
|
def get_credit
|
56
66
|
client = Savon::Client.new(ACCOUNT_SERVICE_WSDL)
|
57
67
|
#http://jira.codehaus.org/browse/JRUBY-5529 - jruby-openssl in --1.9 jruby mode
|
@@ -59,7 +69,7 @@ module Esendex
|
|
59
69
|
resp = client.request :com, :get_message_limit do |soap|
|
60
70
|
soap.header["com:MessengerHeader"] = {"com:Username" => @username, "com:Password" => @password, "com:Account" => @account_reference}
|
61
71
|
end
|
62
|
-
resp.to_hash[:get_message_limit_response][:get_message_limit_result].
|
72
|
+
resp.to_hash[:get_message_limit_response][:get_message_limit_result].to_s
|
63
73
|
end
|
64
74
|
|
65
75
|
def get_status(*message_id)
|
@@ -71,7 +81,7 @@ module Esendex
|
|
71
81
|
soap.header["com:MessengerHeader"] = {"com:Username" => @username, "com:Password" => @password, "com:Account" => @account_reference}
|
72
82
|
soap.body = {"com:id" => id.to_s}
|
73
83
|
end
|
74
|
-
@sent_message_statuses
|
84
|
+
@sent_message_statuses[id] = resp.to_hash[:get_message_status_response][:get_message_status_result]
|
75
85
|
end
|
76
86
|
else
|
77
87
|
resp = @client.request :com, :get_message_status do |soap|
|
metadata
CHANGED
@@ -1,154 +1,149 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: esendex4soap
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
version: 0.6.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease:
|
5
|
+
version: 0.6.1
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
8
|
-
|
9
|
-
autorequire:
|
7
|
+
authors:
|
8
|
+
- Voip Scout
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
type: :development
|
12
|
+
date: 2012-03-09 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: jruby-openssl
|
16
|
+
version_requirements: &4022 !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - ! '>='
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '0'
|
21
|
+
none: false
|
22
|
+
requirement: *4022
|
23
|
+
prerelease: false
|
24
|
+
type: :runtime
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: savon
|
27
|
+
version_requirements: &4040 !ruby/object:Gem::Requirement
|
28
|
+
requirements:
|
29
|
+
- - ~>
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
version: 0.9.7
|
32
|
+
none: false
|
33
|
+
requirement: *4040
|
34
|
+
prerelease: false
|
35
|
+
type: :runtime
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: log4r
|
38
|
+
version_requirements: &4056 !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - ! '>='
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '0'
|
43
|
+
none: false
|
44
|
+
requirement: *4056
|
45
|
+
prerelease: false
|
46
|
+
type: :runtime
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: wtf_lang
|
49
|
+
version_requirements: &4072 !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ~>
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 0.3.1
|
54
|
+
none: false
|
55
|
+
requirement: *4072
|
56
|
+
prerelease: false
|
57
|
+
type: :runtime
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: shoulda
|
60
|
+
version_requirements: &4088 !ruby/object:Gem::Requirement
|
61
|
+
requirements:
|
62
|
+
- - ! '>='
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: '0'
|
65
|
+
none: false
|
66
|
+
requirement: *4088
|
67
|
+
prerelease: false
|
68
|
+
type: :development
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: bundler
|
71
|
+
version_requirements: &4106 !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ! '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
none: false
|
77
|
+
requirement: *4106
|
78
|
+
prerelease: false
|
79
|
+
type: :development
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
name: jeweler
|
82
|
+
version_requirements: &4122 !ruby/object:Gem::Requirement
|
83
|
+
requirements:
|
84
|
+
- - ! '>='
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '0'
|
87
|
+
none: false
|
88
|
+
requirement: *4122
|
89
|
+
prerelease: false
|
90
|
+
type: :development
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: rcov
|
93
|
+
version_requirements: &4138 !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ! '>='
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0'
|
98
|
+
none: false
|
99
|
+
requirement: *4138
|
100
|
+
prerelease: false
|
101
|
+
type: :development
|
103
102
|
description: thanks to savon library
|
104
103
|
email: voipscout@gmail.com
|
105
104
|
executables: []
|
106
|
-
|
107
105
|
extensions: []
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
- test/test_esendex4soap.rb
|
106
|
+
extra_rdoc_files:
|
107
|
+
- LICENSE.txt
|
108
|
+
- README.rdoc
|
109
|
+
files:
|
110
|
+
- .document
|
111
|
+
- Gemfile
|
112
|
+
- LICENSE.txt
|
113
|
+
- README.rdoc
|
114
|
+
- Rakefile
|
115
|
+
- VERSION
|
116
|
+
- esendex4soap.gemspec
|
117
|
+
- lib/esendex4soap.rb
|
118
|
+
- test/helper.rb
|
119
|
+
- test/test_esendex4soap.rb
|
123
120
|
homepage: http://github.com/voipscout/esendex4soap
|
124
|
-
licenses:
|
125
|
-
|
126
|
-
post_install_message:
|
121
|
+
licenses:
|
122
|
+
- MIT
|
123
|
+
post_install_message:
|
127
124
|
rdoc_options: []
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
125
|
+
require_paths:
|
126
|
+
- lib
|
127
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ! '>='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
segments:
|
132
|
+
- 0
|
133
|
+
hash: 2
|
134
|
+
version: '0'
|
132
135
|
none: false
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
- 0
|
139
|
-
version: "0"
|
140
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
136
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
137
|
+
requirements:
|
138
|
+
- - ! '>='
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: '0'
|
141
141
|
none: false
|
142
|
-
requirements:
|
143
|
-
- - ">="
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: "0"
|
146
142
|
requirements: []
|
147
|
-
|
148
|
-
rubyforge_project:
|
143
|
+
rubyforge_project:
|
149
144
|
rubygems_version: 1.8.15
|
150
|
-
signing_key:
|
145
|
+
signing_key:
|
151
146
|
specification_version: 3
|
152
147
|
summary: esendex SOAP-XML-API for ruby
|
153
148
|
test_files: []
|
154
|
-
|
149
|
+
...
|