sign_well 1.0.1 → 1.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b255e6788c68a7d121fcdc284d22ee6c93bfa429426f81898df302ae5a293fee
4
- data.tar.gz: ecff23a9c2b0472d2566ab51fccc9eafcecd0e1f1aaa475ecd5c7823cdc07874
3
+ metadata.gz: e2b4c38aa54fec1cbfc11f2bb9e24d005ba18a06f406bcf038c8a8a4451048fe
4
+ data.tar.gz: e7379a5b36b229056d636be8ab1411bdcd9e7ce11352f1f52516c53eaf708221
5
5
  SHA512:
6
- metadata.gz: 105f447a749cf01d9de3cca7e0605de81392fc8f786017ddeaa0567204259bbb247ff76aa190268fe1681b4f25476fde709865e883da71a66523742c389120bb
7
- data.tar.gz: 9d1f186d486407b585b92c09ce85a46ede39febc255ac3873c0321d3c4632507c4f581241529589ee64a5ce727953570a2af3d89ad26402528b6ee69e36e08e4
6
+ metadata.gz: 3f87a2f13accaf1d988994e5cf7787a50b957baa5d3a12d38ab3b373bf4be6dadac5fa342d8d43b1a8dd694a02af3f366bbb76c0a71b40192513b71cdc35579b
7
+ data.tar.gz: 7386cec5d8d2f71c2b3f80bd711ef5faa709be52ba34a68531df37a0a4f98e9ac8a728c3faebbd3620d0cef11997e79f342e789463331d84489ea937d7396ec5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sign_well (1.0.1)
4
+ sign_well (1.0.2)
5
5
  faraday (~> 1.7)
6
6
  faraday_middleware (~> 1.1)
7
7
 
data/README.md CHANGED
@@ -4,8 +4,8 @@
4
4
 
5
5
  Add this line to your application's Gemfile:
6
6
 
7
- ```ruby
8
- gem 'sign_well'
7
+ ```bash
8
+ bundle add sign_well
9
9
  ```
10
10
 
11
11
  And then execute:
@@ -32,7 +32,7 @@ client = SignWell::Client.new(x_api_key: ENV['X_API_KEY'])
32
32
 
33
33
  ```
34
34
 
35
- ## [Get Document](https://developers.signwell.com/reference/get_api-v1-documents-id--1)
35
+ ## [Get Document](https://developers.signwell.com/reference/get_api-v1-document)
36
36
 
37
37
  ```
38
38
  response = client.document('docment_id')
@@ -40,7 +40,7 @@ response.body => Hash of the JSON.body
40
40
  response.to_object => OpenStruct
41
41
  ```
42
42
 
43
- ## [Create Document](https://developers.signwell.com/reference/post_api-v1-documents-1)
43
+ ## [Create Document](https://developers.signwell.com/reference/post_api-v1-documents)
44
44
 
45
45
  ```
46
46
  response = client.create_document(test_mode: true, files: [{name: 'test', file_url: 'exmpaledoc.com'}], recipients: [{id: 1, email: 'william@test.com'}])
@@ -57,7 +57,7 @@ response.body => Hash of the JSON.body
57
57
  response.to_object => OpenStruct
58
58
  ```
59
59
 
60
- ## [Update and Send Document](https://developers.signwell.com/reference/post_api-v1-documents-id-send-1)
60
+ ## [Update and Send Document](https://developers.signwell.com/reference/post_api-v1-documents-id-send)
61
61
 
62
62
  ```
63
63
  response = client.update_and_send_document(document_id, test_mode: true, embedded_signing: true)
@@ -65,13 +65,13 @@ response.body => Hash of the JSON.body
65
65
  response.to_object => OpenStruct
66
66
  ```
67
67
 
68
- ## [Delete Document](https://developers.signwell.com/reference/delete_api-v1-documents-id--1)
68
+ ## [Delete Document](https://developers.signwell.com/reference/delete_api-v1-documents-id)
69
69
 
70
70
  ```
71
71
  response = client.delete_document(document_id)
72
72
  ```
73
73
 
74
- ## [Completed PDF](https://developers.signwell.com/reference/get_api-v1-documents-id-completed-pdf-1)
74
+ ## [Completed PDF](https://developers.signwell.com/reference/get_api-v1-documents-id-completed-pdf)
75
75
 
76
76
  ```
77
77
  response = client.completed_pdf(document_id, test_mode: true, url_only: true)
@@ -80,7 +80,7 @@ response.to_object => OpenStruct
80
80
  ```
81
81
 
82
82
 
83
- ## [Get Template](https://developers.signwell.com/reference/get_api-v1-document-templates-id--1)
83
+ ## [Get Template](https://developers.signwell.com/reference/get_api-v1-document-templates-id-)
84
84
 
85
85
  ```
86
86
  response = client.template(tempate_id)
@@ -88,7 +88,7 @@ response.body => Hash of the JSON.body
88
88
  response.to_object => OpenStruct
89
89
  ```
90
90
 
91
- ## [Create Template](https://developers.signwell.com/reference/post_api-v1-document-templates-1)
91
+ ## [Create Template](https://developers.signwell.com/reference/post_api-v1-document-templates)
92
92
 
93
93
  ```
94
94
  body = {test_mode: true, "files"=>[{"name"=>"string.pdf", "file_url"=>"https://file-examples-com.github.io/uploads/2017/10/file-sample_150kB.pdf"}],
@@ -110,13 +110,13 @@ response.body => Hash of the JSON.body
110
110
  response.to_object => OpenStruct
111
111
  ```
112
112
 
113
- ## [Delete Template](https://developers.signwell.com/reference/delete_api-v1-document-templates-id--1)
113
+ ## [Delete Template](https://developers.signwell.com/reference/delete_api-v1-document-templates-id)
114
114
 
115
115
  ```
116
116
  client.delete_template(id)
117
117
  ```
118
118
 
119
- ## [Get API Application](https://developers.signwell.com/reference/get_api-v1-api-applications-id--1)
119
+ ## [Get API Application](https://developers.signwell.com/reference/get_api-v1-api-applications-id)
120
120
 
121
121
  ```
122
122
  response = client.api_application(id)
@@ -124,13 +124,13 @@ response.body => Hash of the JSON.body
124
124
  response.to_object => OpenStruct
125
125
  ```
126
126
 
127
- ## [Delete API Application](https://developers.signwell.com/reference/delete_api-v1-api-applications-id--1)
127
+ ## [Delete API Application](https://developers.signwell.com/reference/delete_api-v1-api-applications-id)
128
128
 
129
129
  ```
130
130
  client.delete_api_application(id)
131
131
  ```
132
132
 
133
- ## [List Webhooks](https://developers.signwell.com/reference/get_api-v1-hooks-1)
133
+ ## [List Webhooks](https://developers.signwell.com/reference/get_api-v1-hooks)
134
134
 
135
135
  ```
136
136
  response = client.list_web_hooks
@@ -138,7 +138,7 @@ response.body => Hash of the JSON.body
138
138
  response.to_object => OpenStruct
139
139
  ```
140
140
 
141
- ## [Create Webhooks](https://developers.signwell.com/reference/post_api-v1-hooks-1)
141
+ ## [Create Webhooks](https://developers.signwell.com/reference/post_api-v1-hooks)
142
142
 
143
143
  ```
144
144
  response = client.create_web_hook(test_mode: true, callback_url: 'https://test.com')
@@ -146,13 +146,13 @@ response.body => Hash of the JSON.body
146
146
  response.to_object => OpenStruct
147
147
  ```
148
148
 
149
- ## [Delete Webhook](https://developers.signwell.com/reference/delete_api-v1-hooks-id--1)
149
+ ## [Delete Webhook](https://developers.signwell.com/reference/delete_api-v1-hooks-id)
150
150
 
151
151
  ```
152
152
  client.delete_web_hook(id)
153
153
  ```
154
154
 
155
- ## [Get Credentials](https://developers.signwell.com/reference/get_api-v1-me-1)
155
+ ## [Get Credentials](https://developers.signwell.com/reference/get_api-v1-me)
156
156
 
157
157
  ```
158
158
  client.me
@@ -15,14 +15,14 @@ module SignWell
15
15
 
16
16
  def post_request(path, params)
17
17
  client.connection.post(path) do |req|
18
- req.params = params
18
+ req.body = params.to_json
19
19
  req.headers['Content-Type'] = 'application/json'
20
20
  end
21
21
  end
22
22
 
23
23
  def patch_request(path, params)
24
24
  client.connection.patch(path) do |req|
25
- req.params = params
25
+ req.body = params.to_json
26
26
  req.headers['Content-Type'] = 'application/json'
27
27
  req.headers['Accept'] = 'application/json'
28
28
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SignWell
4
- VERSION = "1.0.1"
4
+ VERSION = "1.0.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sign_well
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Kennedy
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-07 00:00:00.000000000 Z
11
+ date: 2022-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -107,7 +107,6 @@ files:
107
107
  - lib/sign_well/response.rb
108
108
  - lib/sign_well/version.rb
109
109
  - sig/sign_well.rbs
110
- - sign_well-1.0.0.gem
111
110
  homepage: https://github.com/williamkennedy/sign_well
112
111
  licenses:
113
112
  - MIT
data/sign_well-1.0.0.gem DELETED
Binary file