interfax 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +1 -1
- data/README.markdown +60 -0
- data/VERSION +1 -1
- data/lib/interfax/base.rb +1 -13
- metadata +5 -5
- data/README.rdoc +0 -17
data/LICENSE
CHANGED
data/README.markdown
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
# Interfax/Ruby
|
2
|
+
|
3
|
+
This library is a wrapper for the interfax.net fax service. Until now only sending of html faxes and status
|
4
|
+
querying is supported.
|
5
|
+
|
6
|
+
If you're willing to help, just drop me a line.
|
7
|
+
|
8
|
+
## Sending
|
9
|
+
|
10
|
+
Creating a fax:
|
11
|
+
|
12
|
+
fax = OrderFax.new(:html).contains("<h1>test</h1>").subject("test").to("+4923456123456")
|
13
|
+
|
14
|
+
It is possible to specify more than one receipent:
|
15
|
+
|
16
|
+
fax = OrderFax.new(:html).contains("<h1>test</h1>").subject("test").to(["+4923456123456","+4943254324312"])
|
17
|
+
|
18
|
+
To get a summary before sending, just call summary on it which returns a hash:
|
19
|
+
|
20
|
+
fax.summary
|
21
|
+
|
22
|
+
Finally:
|
23
|
+
|
24
|
+
result_id = fax.deliver
|
25
|
+
|
26
|
+
## Querying
|
27
|
+
|
28
|
+
To get all faxes:
|
29
|
+
|
30
|
+
faxes = OrderFax.all
|
31
|
+
|
32
|
+
You can limit the number of received items with an optional parameter:
|
33
|
+
|
34
|
+
faxes = OrderFax.all(10)
|
35
|
+
|
36
|
+
To find a specific fax:
|
37
|
+
|
38
|
+
OrderFax.find(123456789)
|
39
|
+
|
40
|
+
or get more than one at once:
|
41
|
+
|
42
|
+
OrderFax.find(123456789,234567890)
|
43
|
+
|
44
|
+
## Interfax API documentation
|
45
|
+
|
46
|
+
http://www.interfax.net/en/dev/webservice/reference/methods
|
47
|
+
|
48
|
+
## Note on Patches/Pull Requests
|
49
|
+
|
50
|
+
* Fork the project.
|
51
|
+
* Make your feature addition or bug fix.
|
52
|
+
* Add tests for it. This is important so I don't break it in a
|
53
|
+
future version unintentionally.
|
54
|
+
* Commit, do not mess with rakefile, version, or history.
|
55
|
+
(if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
|
56
|
+
* Send me a pull request. Bonus points for topic branches.
|
57
|
+
|
58
|
+
## Copyright
|
59
|
+
|
60
|
+
Copyright (c) 2010 Sascha Brink. See LICENSE for details.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/lib/interfax/base.rb
CHANGED
@@ -116,16 +116,4 @@ module Interfax
|
|
116
116
|
|
117
117
|
end
|
118
118
|
|
119
|
-
end
|
120
|
-
|
121
|
-
|
122
|
-
#
|
123
|
-
# aa = OrderFax.new(:html).contains("<h1>test</h1>").subject("yes").to("+49236189013699")
|
124
|
-
# aa.summary
|
125
|
-
# aa.deliver
|
126
|
-
#
|
127
|
-
# OrderFax.all
|
128
|
-
# OrderFax.find(173581304)
|
129
|
-
#
|
130
|
-
#
|
131
|
-
|
119
|
+
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: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Sascha Brink
|
@@ -42,10 +42,10 @@ extensions: []
|
|
42
42
|
|
43
43
|
extra_rdoc_files:
|
44
44
|
- LICENSE
|
45
|
-
- README.
|
45
|
+
- README.markdown
|
46
46
|
files:
|
47
47
|
- LICENSE
|
48
|
-
- README.
|
48
|
+
- README.markdown
|
49
49
|
- Rakefile
|
50
50
|
- VERSION
|
51
51
|
- lib/interfax.rb
|
data/README.rdoc
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
= interfax
|
2
|
-
|
3
|
-
Description goes here.
|
4
|
-
|
5
|
-
== Note on Patches/Pull Requests
|
6
|
-
|
7
|
-
* Fork the project.
|
8
|
-
* Make your feature addition or bug fix.
|
9
|
-
* Add tests for it. This is important so I don't break it in a
|
10
|
-
future version unintentionally.
|
11
|
-
* Commit, do not mess with rakefile, version, or history.
|
12
|
-
(if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
|
13
|
-
* Send me a pull request. Bonus points for topic branches.
|
14
|
-
|
15
|
-
== Copyright
|
16
|
-
|
17
|
-
Copyright (c) 2010 Sascha Brink. See LICENSE for details.
|