interfax 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +16 -2
- data/VERSION +1 -1
- data/lib/interfax/base.rb +2 -1
- metadata +4 -4
data/README.markdown
CHANGED
@@ -5,7 +5,21 @@ querying is supported.
|
|
5
5
|
|
6
6
|
If you're willing to help, just drop me a line.
|
7
7
|
|
8
|
-
##
|
8
|
+
## Installation
|
9
|
+
|
10
|
+
gem install interfax
|
11
|
+
|
12
|
+
## Usage
|
13
|
+
|
14
|
+
Create a class, inherit from Interfax::Base and set authentication parameters:
|
15
|
+
|
16
|
+
class OrderFax < Interfax::Base
|
17
|
+
self.username = "my_interfax_username"
|
18
|
+
self.password = "my_interfax_password"
|
19
|
+
end
|
20
|
+
|
21
|
+
|
22
|
+
### Sending
|
9
23
|
|
10
24
|
Creating a fax:
|
11
25
|
|
@@ -23,7 +37,7 @@ Finally:
|
|
23
37
|
|
24
38
|
result_id = fax.deliver
|
25
39
|
|
26
|
-
|
40
|
+
### Querying
|
27
41
|
|
28
42
|
To get all faxes:
|
29
43
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
data/lib/interfax/base.rb
CHANGED
@@ -97,7 +97,7 @@ module Interfax
|
|
97
97
|
end
|
98
98
|
|
99
99
|
def deliver
|
100
|
-
SOAP::WSDLDriverFactory.new("http://ws.interfax.net/dfs.asmx?WSDL").create_rpc_driver.SendfaxEx_2(
|
100
|
+
result = SOAP::WSDLDriverFactory.new("http://ws.interfax.net/dfs.asmx?WSDL").create_rpc_driver.SendfaxEx_2(
|
101
101
|
:Username => @username,
|
102
102
|
:Password => @password,
|
103
103
|
:FileTypes => @type,
|
@@ -112,6 +112,7 @@ module Interfax
|
|
112
112
|
:IsHighResolution => 'true',
|
113
113
|
:IsFineRendering => 'false'
|
114
114
|
)
|
115
|
+
result ? result.sendfaxEx_2Result : nil
|
115
116
|
end
|
116
117
|
|
117
118
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: interfax
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Sascha Brink
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-09-
|
18
|
+
date: 2010-09-24 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|