faxplus_api 0.0.3 → 0.0.4

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -4
  3. metadata +4 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 522e0a417cb9e97b26a73388d7369cfb9cf0cdf9ab4d69ef0e6f20f75f64a029
4
- data.tar.gz: 502520063d90636f49deaee39b3f341ea9d4b516f67b8108e8a2f4a3b58d0412
3
+ metadata.gz: 4d7d5d99a832e5707096a02ae5209ea2984306a74d964345143acf573616fd9a
4
+ data.tar.gz: a049ba2bd56c73f3bdb6753a75cf73642128a916c750cc5519631e58bc5ee834
5
5
  SHA512:
6
- metadata.gz: 0c60c55d502184d9e37acb42c7021ab08f33cfa82d46437645e905c7f814c78b8b5961ef0541b3f42c9ea98b1467ca86e16a4bd17d7a279185f2f7e669653199
7
- data.tar.gz: af05b0b220a6118cbff131c7268bfb1754b1e3545b8ad0892f0d198e5e1681344286696c01f80e3597794dd1e2f9c0100334c682833309fb11c6a15e30f469ca
6
+ metadata.gz: 4a4c22a9b6bfd8a1f0d1afa06202c65ebf04739ca43fe860047a29278641ad17c42579c6a850a151e1fcefcea045926586852199e815d432355e9f388d1e7b0f
7
+ data.tar.gz: 9f7e41ed1231cd4bd97d8a465fe670dd8062c6659695b5842c01fe251f96e2248ec2ed8df581b47f76b730101b47154bb264e533c7a465d7d7126c51a7399d7f
data/README.md CHANGED
@@ -6,7 +6,7 @@ Faxplus is a Ruby library for interacting with faxplus APIs.
6
6
  To start using faxplus, you first need to add it to your Gemfile, with an entry such as this:
7
7
 
8
8
  ```ruby
9
- gem 'faxplus_ruby'
9
+ gem 'faxplus_api'
10
10
  ```
11
11
 
12
12
  Afterwards, run `bundle install`
@@ -43,7 +43,8 @@ client.fax.revoke(user_id: 'userid', fax_id: 'fax_id') # Delete a fax
43
43
  ## Files.
44
44
 
45
45
  ```ruby
46
- client.file.upload(user_id: 'userid') # Upload a file TODO: Need proper params how to send file
46
+ # Upload a file
47
+ client.file.upload(user_id: 'userid', data: {fax_file: File.open('pdf_file_path.pdf'), multipart: true}) => {:path => "/storage/transient-hsfhadhaskha.pdf"}
47
48
  client.file.get(user_id: 'userid', fax_id: 'fax_id') # Download fax file
48
49
  client.file.fax_report(user_id: 'userid', fax_id: 'fax_id') # Get fax confirmation report
49
50
  ```
@@ -51,8 +52,8 @@ client.file.fax_report(user_id: 'userid', fax_id: 'fax_id') # Get fax confirmati
51
52
 
52
53
  ```ruby
53
54
  client.outbox.list(user_id: 'userid') # List faxes in the outbox
54
- # TODO: require proper params here
55
- client.outbox.send(user_id: 'userid') # Send a fax
55
+ # file_path from the client.file.upload output path
56
+ client.outbox.send(user_id: 'userid', data: {from: "+12345667", to: ["+12345688"], files: [file_path]}) # Send a fax
56
57
  client.outbox.get(user_id: 'userid', outbox_fax_id: 'outbox_fax_id') # List outgoing faxes
57
58
  client.outbox.update(user_id: 'userid', outbox_fax_id: 'outbox_fax_id') # Delete an outgoing fax
58
59
  client.outbox.delete(user_id: 'userid', outbox_fax_id: 'outbox_fax_id') # Modify an outgoing fax
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faxplus_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dilkhush Soni
@@ -52,7 +52,9 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: 1.8.6
55
- description:
55
+ description: |2
56
+ A simple wrapper around faxplus's API.
57
+ For detailed documentation, please visit: https://github.com/dilkhush/faxplus-ruby/blob/main/README.md
56
58
  email:
57
59
  - dilkhushsoni2010@gmail.com
58
60
  executables: []