signrequest_client 0.1.0

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 (188) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/Gemfile.lock +69 -0
  4. data/LICENSE +21 -0
  5. data/README.md +122 -0
  6. data/Rakefile +9 -0
  7. data/docs/ApiTokensApi.md +226 -0
  8. data/docs/AuthToken.md +13 -0
  9. data/docs/Document.md +33 -0
  10. data/docs/DocumentAttachment.md +15 -0
  11. data/docs/DocumentAttachmentsApi.md +179 -0
  12. data/docs/DocumentSearch.md +22 -0
  13. data/docs/DocumentSignerTemplateConf.md +14 -0
  14. data/docs/DocumentsApi.md +301 -0
  15. data/docs/DocumentsSearchApi.md +119 -0
  16. data/docs/Event.md +17 -0
  17. data/docs/EventsApi.md +145 -0
  18. data/docs/FileFromSf.md +9 -0
  19. data/docs/InlineDocumentSignerIntegrationData.md +9 -0
  20. data/docs/InlineIntegrationData.md +9 -0
  21. data/docs/InlinePrefillTags.md +11 -0
  22. data/docs/InlineResponse200.md +11 -0
  23. data/docs/InlineResponse2001.md +11 -0
  24. data/docs/InlineResponse2002.md +11 -0
  25. data/docs/InlineResponse2003.md +11 -0
  26. data/docs/InlineResponse2004.md +11 -0
  27. data/docs/InlineResponse2005.md +11 -0
  28. data/docs/InlineResponse2006.md +11 -0
  29. data/docs/InlineResponse2007.md +11 -0
  30. data/docs/InlineResponse2008.md +11 -0
  31. data/docs/InlineResponse2009.md +11 -0
  32. data/docs/InlineSignRequest.md +25 -0
  33. data/docs/InlineTeam.md +10 -0
  34. data/docs/InlineTeamMember.md +13 -0
  35. data/docs/InviteMember.md +10 -0
  36. data/docs/Placeholder.md +15 -0
  37. data/docs/RequiredAttachment.md +9 -0
  38. data/docs/SignRequest.md +29 -0
  39. data/docs/SignRequestQuickCreate.md +42 -0
  40. data/docs/Signer.md +40 -0
  41. data/docs/SignerAttachment.md +11 -0
  42. data/docs/SignerInputs.md +14 -0
  43. data/docs/SigningLog.md +9 -0
  44. data/docs/SignrequestQuickCreateApi.md +62 -0
  45. data/docs/SignrequestsApi.md +291 -0
  46. data/docs/Team.md +15 -0
  47. data/docs/TeamMember.md +14 -0
  48. data/docs/TeamMembersApi.md +131 -0
  49. data/docs/TeamsApi.md +344 -0
  50. data/docs/Template.md +14 -0
  51. data/docs/TemplatesApi.md +119 -0
  52. data/docs/User.md +11 -0
  53. data/docs/WebhookSubscription.md +15 -0
  54. data/docs/WebhooksApi.md +340 -0
  55. data/git_push.sh +55 -0
  56. data/lib/signrequest_client/api/api_tokens_api.rb +242 -0
  57. data/lib/signrequest_client/api/document_attachments_api.rb +197 -0
  58. data/lib/signrequest_client/api/documents_api.rb +330 -0
  59. data/lib/signrequest_client/api/documents_search_api.rb +133 -0
  60. data/lib/signrequest_client/api/events_api.rb +172 -0
  61. data/lib/signrequest_client/api/signrequest_quick_create_api.rb +78 -0
  62. data/lib/signrequest_client/api/signrequests_api.rb +316 -0
  63. data/lib/signrequest_client/api/team_members_api.rb +151 -0
  64. data/lib/signrequest_client/api/teams_api.rb +371 -0
  65. data/lib/signrequest_client/api/templates_api.rb +133 -0
  66. data/lib/signrequest_client/api/webhooks_api.rb +364 -0
  67. data/lib/signrequest_client/api_client.rb +389 -0
  68. data/lib/signrequest_client/api_error.rb +38 -0
  69. data/lib/signrequest_client/configuration.rb +209 -0
  70. data/lib/signrequest_client/models/auth_token.rb +298 -0
  71. data/lib/signrequest_client/models/document.rb +605 -0
  72. data/lib/signrequest_client/models/document_attachment.rb +304 -0
  73. data/lib/signrequest_client/models/document_search.rb +519 -0
  74. data/lib/signrequest_client/models/document_signer_template_conf.rb +294 -0
  75. data/lib/signrequest_client/models/event.rb +330 -0
  76. data/lib/signrequest_client/models/file_from_sf.rb +245 -0
  77. data/lib/signrequest_client/models/inline_document_signer_integration_data.rb +230 -0
  78. data/lib/signrequest_client/models/inline_integration_data.rb +230 -0
  79. data/lib/signrequest_client/models/inline_prefill_tags.rb +231 -0
  80. data/lib/signrequest_client/models/inline_response_200.rb +227 -0
  81. data/lib/signrequest_client/models/inline_response_200_1.rb +227 -0
  82. data/lib/signrequest_client/models/inline_response_200_2.rb +227 -0
  83. data/lib/signrequest_client/models/inline_response_200_3.rb +227 -0
  84. data/lib/signrequest_client/models/inline_response_200_4.rb +227 -0
  85. data/lib/signrequest_client/models/inline_response_200_5.rb +227 -0
  86. data/lib/signrequest_client/models/inline_response_200_6.rb +227 -0
  87. data/lib/signrequest_client/models/inline_response_200_7.rb +227 -0
  88. data/lib/signrequest_client/models/inline_response_200_8.rb +227 -0
  89. data/lib/signrequest_client/models/inline_response_200_9.rb +227 -0
  90. data/lib/signrequest_client/models/inline_sign_request.rb +496 -0
  91. data/lib/signrequest_client/models/inline_team.rb +247 -0
  92. data/lib/signrequest_client/models/inline_team_member.rb +249 -0
  93. data/lib/signrequest_client/models/invite_member.rb +234 -0
  94. data/lib/signrequest_client/models/placeholder.rb +326 -0
  95. data/lib/signrequest_client/models/required_attachment.rb +246 -0
  96. data/lib/signrequest_client/models/sign_request.rb +543 -0
  97. data/lib/signrequest_client/models/sign_request_quick_create.rb +764 -0
  98. data/lib/signrequest_client/models/signer.rb +751 -0
  99. data/lib/signrequest_client/models/signer_attachment.rb +247 -0
  100. data/lib/signrequest_client/models/signer_inputs.rb +312 -0
  101. data/lib/signrequest_client/models/signing_log.rb +213 -0
  102. data/lib/signrequest_client/models/team.rb +367 -0
  103. data/lib/signrequest_client/models/team_member.rb +258 -0
  104. data/lib/signrequest_client/models/template.rb +309 -0
  105. data/lib/signrequest_client/models/user.rb +296 -0
  106. data/lib/signrequest_client/models/webhook_subscription.rb +366 -0
  107. data/lib/signrequest_client/version.rb +15 -0
  108. data/lib/signrequest_client.rb +87 -0
  109. data/pkg/signrequest_client-0.1.0.gem +0 -0
  110. data/signrequest_client.gemspec +45 -0
  111. data/signrequst_client/.git/HEAD +1 -0
  112. data/signrequst_client/.git/config +7 -0
  113. data/signrequst_client/.git/description +1 -0
  114. data/signrequst_client/.git/hooks/applypatch-msg.sample +15 -0
  115. data/signrequst_client/.git/hooks/commit-msg.sample +24 -0
  116. data/signrequst_client/.git/hooks/fsmonitor-watchman.sample +114 -0
  117. data/signrequst_client/.git/hooks/post-update.sample +8 -0
  118. data/signrequst_client/.git/hooks/pre-applypatch.sample +14 -0
  119. data/signrequst_client/.git/hooks/pre-commit.sample +49 -0
  120. data/signrequst_client/.git/hooks/pre-push.sample +53 -0
  121. data/signrequst_client/.git/hooks/pre-rebase.sample +169 -0
  122. data/signrequst_client/.git/hooks/pre-receive.sample +24 -0
  123. data/signrequst_client/.git/hooks/prepare-commit-msg.sample +42 -0
  124. data/signrequst_client/.git/hooks/update.sample +128 -0
  125. data/signrequst_client/.git/index +0 -0
  126. data/signrequst_client/.git/info/exclude +6 -0
  127. data/signrequst_client/.git/objects/30/68cc8a074ffc0c7b8891cb21d68b5d367cb8c4 +0 -0
  128. data/signrequst_client/.git/objects/32/c4b7e9f988621ed2ce28954f1aaf088f340848 +2 -0
  129. data/signrequst_client/.git/objects/3e/8c4c2f8d1d5334612f3072160124e985f27e8c +0 -0
  130. data/signrequst_client/.git/objects/43/022f711e20ed55baf2470278eb8e428a04856f +0 -0
  131. data/signrequst_client/.git/objects/6f/8caa83dfb6dc8a987a2829cbfefae18c8870c3 +0 -0
  132. data/signrequst_client/.git/objects/91/06b2a345b019a799c02e5069affa88370b35dd +0 -0
  133. data/signrequst_client/.git/objects/aa/58e53f733551ac2bde6f7a50b5a9f16ddbf110 +0 -0
  134. data/signrequst_client/.git/objects/dc/e67d860af47a4eb630117ce03624bae45dcf26 +3 -0
  135. data/signrequst_client/.git/objects/f1/c9171bed4c19fd22429ffd68d4cbb2c3ce2fce +0 -0
  136. data/signrequst_client/.git/objects/f8/e4c2573ebc57d5a365ebe14d5c18cc8d0716c4 +0 -0
  137. data/spec/api/api_tokens_api_spec.rb +84 -0
  138. data/spec/api/document_attachments_api_spec.rb +75 -0
  139. data/spec/api/documents_api_spec.rb +106 -0
  140. data/spec/api/documents_search_api_spec.rb +60 -0
  141. data/spec/api/events_api_spec.rb +73 -0
  142. data/spec/api/signrequest_quick_create_api_spec.rb +47 -0
  143. data/spec/api/signrequests_api_spec.rb +100 -0
  144. data/spec/api/team_members_api_spec.rb +66 -0
  145. data/spec/api/teams_api_spec.rb +111 -0
  146. data/spec/api/templates_api_spec.rb +60 -0
  147. data/spec/api/webhooks_api_spec.rb +110 -0
  148. data/spec/api_client_spec.rb +226 -0
  149. data/spec/configuration_spec.rb +42 -0
  150. data/spec/models/auth_token_spec.rb +72 -0
  151. data/spec/models/document_attachment_spec.rb +84 -0
  152. data/spec/models/document_search_spec.rb +126 -0
  153. data/spec/models/document_signer_template_conf_spec.rb +78 -0
  154. data/spec/models/document_spec.rb +196 -0
  155. data/spec/models/event_spec.rb +104 -0
  156. data/spec/models/file_from_sf_spec.rb +48 -0
  157. data/spec/models/inline_document_signer_integration_data_spec.rb +52 -0
  158. data/spec/models/inline_integration_data_spec.rb +52 -0
  159. data/spec/models/inline_prefill_tags_spec.rb +60 -0
  160. data/spec/models/inline_response_200_1_spec.rb +60 -0
  161. data/spec/models/inline_response_200_2_spec.rb +60 -0
  162. data/spec/models/inline_response_200_3_spec.rb +60 -0
  163. data/spec/models/inline_response_200_4_spec.rb +60 -0
  164. data/spec/models/inline_response_200_5_spec.rb +60 -0
  165. data/spec/models/inline_response_200_6_spec.rb +60 -0
  166. data/spec/models/inline_response_200_7_spec.rb +60 -0
  167. data/spec/models/inline_response_200_8_spec.rb +60 -0
  168. data/spec/models/inline_response_200_9_spec.rb +60 -0
  169. data/spec/models/inline_response_200_spec.rb +60 -0
  170. data/spec/models/inline_sign_request_spec.rb +148 -0
  171. data/spec/models/inline_team_member_spec.rb +72 -0
  172. data/spec/models/inline_team_spec.rb +54 -0
  173. data/spec/models/invite_member_spec.rb +54 -0
  174. data/spec/models/placeholder_spec.rb +88 -0
  175. data/spec/models/required_attachment_spec.rb +48 -0
  176. data/spec/models/sign_request_quick_create_spec.rb +254 -0
  177. data/spec/models/sign_request_spec.rb +176 -0
  178. data/spec/models/signer_attachment_spec.rb +60 -0
  179. data/spec/models/signer_inputs_spec.rb +82 -0
  180. data/spec/models/signer_spec.rb +238 -0
  181. data/spec/models/signing_log_spec.rb +48 -0
  182. data/spec/models/team_member_spec.rb +78 -0
  183. data/spec/models/team_spec.rb +84 -0
  184. data/spec/models/template_spec.rb +82 -0
  185. data/spec/models/user_spec.rb +60 -0
  186. data/spec/models/webhook_subscription_spec.rb +92 -0
  187. data/spec/spec_helper.rb +111 -0
  188. metadata +461 -0
@@ -0,0 +1,340 @@
1
+ # SignRequestClient::WebhooksApi
2
+
3
+ All URIs are relative to *https://signrequest.com/api/v1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**webhooks_create**](WebhooksApi.md#webhooks_create) | **POST** /webhooks/ |
8
+ [**webhooks_delete**](WebhooksApi.md#webhooks_delete) | **DELETE** /webhooks/{uuid}/ |
9
+ [**webhooks_list**](WebhooksApi.md#webhooks_list) | **GET** /webhooks/ |
10
+ [**webhooks_partial_update**](WebhooksApi.md#webhooks_partial_update) | **PATCH** /webhooks/{uuid}/ |
11
+ [**webhooks_read**](WebhooksApi.md#webhooks_read) | **GET** /webhooks/{uuid}/ |
12
+ [**webhooks_update**](WebhooksApi.md#webhooks_update) | **PUT** /webhooks/{uuid}/ |
13
+
14
+
15
+ # **webhooks_create**
16
+ > WebhookSubscription webhooks_create(data)
17
+
18
+
19
+
20
+
21
+
22
+ ### Example
23
+ ```ruby
24
+ # load the gem
25
+ require 'signrequest_client'
26
+ # setup authorization
27
+ SignRequestClient.configure do |config|
28
+ # Configure API key authorization: Token
29
+ config.api_key['Authorization'] = 'YOUR API KEY'
30
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
31
+ #config.api_key_prefix['Authorization'] = 'Bearer'
32
+ end
33
+
34
+ api_instance = SignRequestClient::WebhooksApi.new
35
+
36
+ data = SignRequestClient::WebhookSubscription.new # WebhookSubscription |
37
+
38
+
39
+ begin
40
+ result = api_instance.webhooks_create(data)
41
+ p result
42
+ rescue SignRequestClient::ApiError => e
43
+ puts "Exception when calling WebhooksApi->webhooks_create: #{e}"
44
+ end
45
+ ```
46
+
47
+ ### Parameters
48
+
49
+ Name | Type | Description | Notes
50
+ ------------- | ------------- | ------------- | -------------
51
+ **data** | [**WebhookSubscription**](WebhookSubscription.md)| |
52
+
53
+ ### Return type
54
+
55
+ [**WebhookSubscription**](WebhookSubscription.md)
56
+
57
+ ### Authorization
58
+
59
+ [Token](../README.md#Token)
60
+
61
+ ### HTTP request headers
62
+
63
+ - **Content-Type**: application/json
64
+ - **Accept**: application/json
65
+
66
+
67
+
68
+ # **webhooks_delete**
69
+ > webhooks_delete(uuid, )
70
+
71
+
72
+
73
+
74
+
75
+ ### Example
76
+ ```ruby
77
+ # load the gem
78
+ require 'signrequest_client'
79
+ # setup authorization
80
+ SignRequestClient.configure do |config|
81
+ # Configure API key authorization: Token
82
+ config.api_key['Authorization'] = 'YOUR API KEY'
83
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
84
+ #config.api_key_prefix['Authorization'] = 'Bearer'
85
+ end
86
+
87
+ api_instance = SignRequestClient::WebhooksApi.new
88
+
89
+ uuid = "uuid_example" # String |
90
+
91
+
92
+ begin
93
+ api_instance.webhooks_delete(uuid, )
94
+ rescue SignRequestClient::ApiError => e
95
+ puts "Exception when calling WebhooksApi->webhooks_delete: #{e}"
96
+ end
97
+ ```
98
+
99
+ ### Parameters
100
+
101
+ Name | Type | Description | Notes
102
+ ------------- | ------------- | ------------- | -------------
103
+ **uuid** | **String**| |
104
+
105
+ ### Return type
106
+
107
+ nil (empty response body)
108
+
109
+ ### Authorization
110
+
111
+ [Token](../README.md#Token)
112
+
113
+ ### HTTP request headers
114
+
115
+ - **Content-Type**: application/json
116
+ - **Accept**: application/json
117
+
118
+
119
+
120
+ # **webhooks_list**
121
+ > InlineResponse2009 webhooks_list(opts)
122
+
123
+
124
+
125
+
126
+
127
+ ### Example
128
+ ```ruby
129
+ # load the gem
130
+ require 'signrequest_client'
131
+ # setup authorization
132
+ SignRequestClient.configure do |config|
133
+ # Configure API key authorization: Token
134
+ config.api_key['Authorization'] = 'YOUR API KEY'
135
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
136
+ #config.api_key_prefix['Authorization'] = 'Bearer'
137
+ end
138
+
139
+ api_instance = SignRequestClient::WebhooksApi.new
140
+
141
+ opts = {
142
+ page: 56, # Integer | A page number within the paginated result set.
143
+ limit: 56 # Integer | Number of results to return per page.
144
+ }
145
+
146
+ begin
147
+ result = api_instance.webhooks_list(opts)
148
+ p result
149
+ rescue SignRequestClient::ApiError => e
150
+ puts "Exception when calling WebhooksApi->webhooks_list: #{e}"
151
+ end
152
+ ```
153
+
154
+ ### Parameters
155
+
156
+ Name | Type | Description | Notes
157
+ ------------- | ------------- | ------------- | -------------
158
+ **page** | **Integer**| A page number within the paginated result set. | [optional]
159
+ **limit** | **Integer**| Number of results to return per page. | [optional]
160
+
161
+ ### Return type
162
+
163
+ [**InlineResponse2009**](InlineResponse2009.md)
164
+
165
+ ### Authorization
166
+
167
+ [Token](../README.md#Token)
168
+
169
+ ### HTTP request headers
170
+
171
+ - **Content-Type**: application/json
172
+ - **Accept**: application/json
173
+
174
+
175
+
176
+ # **webhooks_partial_update**
177
+ > WebhookSubscription webhooks_partial_update(uuid, data)
178
+
179
+
180
+
181
+
182
+
183
+ ### Example
184
+ ```ruby
185
+ # load the gem
186
+ require 'signrequest_client'
187
+ # setup authorization
188
+ SignRequestClient.configure do |config|
189
+ # Configure API key authorization: Token
190
+ config.api_key['Authorization'] = 'YOUR API KEY'
191
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
192
+ #config.api_key_prefix['Authorization'] = 'Bearer'
193
+ end
194
+
195
+ api_instance = SignRequestClient::WebhooksApi.new
196
+
197
+ uuid = "uuid_example" # String |
198
+
199
+ data = SignRequestClient::WebhookSubscription.new # WebhookSubscription |
200
+
201
+
202
+ begin
203
+ result = api_instance.webhooks_partial_update(uuid, data)
204
+ p result
205
+ rescue SignRequestClient::ApiError => e
206
+ puts "Exception when calling WebhooksApi->webhooks_partial_update: #{e}"
207
+ end
208
+ ```
209
+
210
+ ### Parameters
211
+
212
+ Name | Type | Description | Notes
213
+ ------------- | ------------- | ------------- | -------------
214
+ **uuid** | **String**| |
215
+ **data** | [**WebhookSubscription**](WebhookSubscription.md)| |
216
+
217
+ ### Return type
218
+
219
+ [**WebhookSubscription**](WebhookSubscription.md)
220
+
221
+ ### Authorization
222
+
223
+ [Token](../README.md#Token)
224
+
225
+ ### HTTP request headers
226
+
227
+ - **Content-Type**: application/json
228
+ - **Accept**: application/json
229
+
230
+
231
+
232
+ # **webhooks_read**
233
+ > WebhookSubscription webhooks_read(uuid, )
234
+
235
+
236
+
237
+
238
+
239
+ ### Example
240
+ ```ruby
241
+ # load the gem
242
+ require 'signrequest_client'
243
+ # setup authorization
244
+ SignRequestClient.configure do |config|
245
+ # Configure API key authorization: Token
246
+ config.api_key['Authorization'] = 'YOUR API KEY'
247
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
248
+ #config.api_key_prefix['Authorization'] = 'Bearer'
249
+ end
250
+
251
+ api_instance = SignRequestClient::WebhooksApi.new
252
+
253
+ uuid = "uuid_example" # String |
254
+
255
+
256
+ begin
257
+ result = api_instance.webhooks_read(uuid, )
258
+ p result
259
+ rescue SignRequestClient::ApiError => e
260
+ puts "Exception when calling WebhooksApi->webhooks_read: #{e}"
261
+ end
262
+ ```
263
+
264
+ ### Parameters
265
+
266
+ Name | Type | Description | Notes
267
+ ------------- | ------------- | ------------- | -------------
268
+ **uuid** | **String**| |
269
+
270
+ ### Return type
271
+
272
+ [**WebhookSubscription**](WebhookSubscription.md)
273
+
274
+ ### Authorization
275
+
276
+ [Token](../README.md#Token)
277
+
278
+ ### HTTP request headers
279
+
280
+ - **Content-Type**: application/json
281
+ - **Accept**: application/json
282
+
283
+
284
+
285
+ # **webhooks_update**
286
+ > WebhookSubscription webhooks_update(uuid, data)
287
+
288
+
289
+
290
+
291
+
292
+ ### Example
293
+ ```ruby
294
+ # load the gem
295
+ require 'signrequest_client'
296
+ # setup authorization
297
+ SignRequestClient.configure do |config|
298
+ # Configure API key authorization: Token
299
+ config.api_key['Authorization'] = 'YOUR API KEY'
300
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
301
+ #config.api_key_prefix['Authorization'] = 'Bearer'
302
+ end
303
+
304
+ api_instance = SignRequestClient::WebhooksApi.new
305
+
306
+ uuid = "uuid_example" # String |
307
+
308
+ data = SignRequestClient::WebhookSubscription.new # WebhookSubscription |
309
+
310
+
311
+ begin
312
+ result = api_instance.webhooks_update(uuid, data)
313
+ p result
314
+ rescue SignRequestClient::ApiError => e
315
+ puts "Exception when calling WebhooksApi->webhooks_update: #{e}"
316
+ end
317
+ ```
318
+
319
+ ### Parameters
320
+
321
+ Name | Type | Description | Notes
322
+ ------------- | ------------- | ------------- | -------------
323
+ **uuid** | **String**| |
324
+ **data** | [**WebhookSubscription**](WebhookSubscription.md)| |
325
+
326
+ ### Return type
327
+
328
+ [**WebhookSubscription**](WebhookSubscription.md)
329
+
330
+ ### Authorization
331
+
332
+ [Token](../README.md#Token)
333
+
334
+ ### HTTP request headers
335
+
336
+ - **Content-Type**: application/json
337
+ - **Accept**: application/json
338
+
339
+
340
+
data/git_push.sh ADDED
@@ -0,0 +1,55 @@
1
+ #!/bin/sh
2
+ #
3
+ # Generated by: https://github.com/swagger-api/swagger-codegen.git
4
+ #
5
+ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
6
+ #
7
+ # Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
8
+
9
+ git_user_id=$1
10
+ git_repo_id=$2
11
+ release_note=$3
12
+
13
+ if [ "$git_user_id" = "" ]; then
14
+ git_user_id="GIT_USER_ID"
15
+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
16
+ fi
17
+
18
+ if [ "$git_repo_id" = "" ]; then
19
+ git_repo_id="GIT_REPO_ID"
20
+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
21
+ fi
22
+
23
+ if [ "$release_note" = "" ]; then
24
+ release_note="Minor update"
25
+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"
26
+ fi
27
+
28
+ # Initialize the local directory as a Git repository
29
+ git init
30
+
31
+ # Adds the files in the local repository and stages them for commit.
32
+ git add .
33
+
34
+ # Commits the tracked changes and prepares them to be pushed to a remote repository.
35
+ git commit -m "$release_note"
36
+
37
+ # Sets the new remote
38
+ git_remote=`git remote`
39
+ if [ "$git_remote" = "" ]; then # git remote not defined
40
+
41
+ if [ "$GIT_TOKEN" = "" ]; then
42
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
43
+ git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
44
+ else
45
+ git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
46
+ fi
47
+
48
+ fi
49
+
50
+ git pull origin master
51
+
52
+ # Pushes (Forces) the changes in the local repository up to the remote repository
53
+ echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
54
+ git push origin master 2>&1 | grep -v 'To https'
55
+
@@ -0,0 +1,242 @@
1
+ =begin
2
+ #SignRequest API
3
+
4
+ #API for SignRequest.com
5
+
6
+ OpenAPI spec version: v1
7
+ Contact: tech-support@signrequest.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.3.1
10
+
11
+ =end
12
+
13
+ require "uri"
14
+
15
+ module SignRequestClient
16
+ class ApiTokensApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+
23
+ #
24
+ #
25
+ # @param data
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [AuthToken]
28
+ def api_tokens_create(data, opts = {})
29
+ data, _status_code, _headers = api_tokens_create_with_http_info(data, opts)
30
+ return data
31
+ end
32
+
33
+ #
34
+ #
35
+ # @param data
36
+ # @param [Hash] opts the optional parameters
37
+ # @return [Array<(AuthToken, Fixnum, Hash)>] AuthToken data, response status code and response headers
38
+ def api_tokens_create_with_http_info(data, opts = {})
39
+ if @api_client.config.debugging
40
+ @api_client.config.logger.debug "Calling API: ApiTokensApi.api_tokens_create ..."
41
+ end
42
+ # verify the required parameter 'data' is set
43
+ if @api_client.config.client_side_validation && data.nil?
44
+ fail ArgumentError, "Missing the required parameter 'data' when calling ApiTokensApi.api_tokens_create"
45
+ end
46
+ # resource path
47
+ local_var_path = "/api-tokens/"
48
+
49
+ # query parameters
50
+ query_params = {}
51
+
52
+ # header parameters
53
+ header_params = {}
54
+ # HTTP header 'Accept' (if needed)
55
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
56
+ # HTTP header 'Content-Type'
57
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
58
+
59
+ # form parameters
60
+ form_params = {}
61
+
62
+ # http body (model)
63
+ post_body = @api_client.object_to_http_body(data)
64
+ auth_names = ['Token']
65
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
66
+ :header_params => header_params,
67
+ :query_params => query_params,
68
+ :form_params => form_params,
69
+ :body => post_body,
70
+ :auth_names => auth_names,
71
+ :return_type => 'AuthToken')
72
+ if @api_client.config.debugging
73
+ @api_client.config.logger.debug "API called: ApiTokensApi#api_tokens_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
74
+ end
75
+ return data, status_code, headers
76
+ end
77
+
78
+ #
79
+ #
80
+ # @param key A unique value identifying this api token.
81
+ # @param [Hash] opts the optional parameters
82
+ # @return [nil]
83
+ def api_tokens_delete(key, opts = {})
84
+ api_tokens_delete_with_http_info(key, opts)
85
+ return nil
86
+ end
87
+
88
+ #
89
+ #
90
+ # @param key A unique value identifying this api token.
91
+ # @param [Hash] opts the optional parameters
92
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
93
+ def api_tokens_delete_with_http_info(key, opts = {})
94
+ if @api_client.config.debugging
95
+ @api_client.config.logger.debug "Calling API: ApiTokensApi.api_tokens_delete ..."
96
+ end
97
+ # verify the required parameter 'key' is set
98
+ if @api_client.config.client_side_validation && key.nil?
99
+ fail ArgumentError, "Missing the required parameter 'key' when calling ApiTokensApi.api_tokens_delete"
100
+ end
101
+ # resource path
102
+ local_var_path = "/api-tokens/{key}/".sub('{' + 'key' + '}', key.to_s)
103
+
104
+ # query parameters
105
+ query_params = {}
106
+
107
+ # header parameters
108
+ header_params = {}
109
+ # HTTP header 'Accept' (if needed)
110
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
111
+ # HTTP header 'Content-Type'
112
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
113
+
114
+ # form parameters
115
+ form_params = {}
116
+
117
+ # http body (model)
118
+ post_body = nil
119
+ auth_names = ['Token']
120
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
121
+ :header_params => header_params,
122
+ :query_params => query_params,
123
+ :form_params => form_params,
124
+ :body => post_body,
125
+ :auth_names => auth_names)
126
+ if @api_client.config.debugging
127
+ @api_client.config.logger.debug "API called: ApiTokensApi#api_tokens_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
128
+ end
129
+ return data, status_code, headers
130
+ end
131
+
132
+ #
133
+ #
134
+ # @param [Hash] opts the optional parameters
135
+ # @option opts [Integer] :page A page number within the paginated result set.
136
+ # @option opts [Integer] :limit Number of results to return per page.
137
+ # @return [InlineResponse200]
138
+ def api_tokens_list(opts = {})
139
+ data, _status_code, _headers = api_tokens_list_with_http_info(opts)
140
+ return data
141
+ end
142
+
143
+ #
144
+ #
145
+ # @param [Hash] opts the optional parameters
146
+ # @option opts [Integer] :page A page number within the paginated result set.
147
+ # @option opts [Integer] :limit Number of results to return per page.
148
+ # @return [Array<(InlineResponse200, Fixnum, Hash)>] InlineResponse200 data, response status code and response headers
149
+ def api_tokens_list_with_http_info(opts = {})
150
+ if @api_client.config.debugging
151
+ @api_client.config.logger.debug "Calling API: ApiTokensApi.api_tokens_list ..."
152
+ end
153
+ # resource path
154
+ local_var_path = "/api-tokens/"
155
+
156
+ # query parameters
157
+ query_params = {}
158
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
159
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
160
+
161
+ # header parameters
162
+ header_params = {}
163
+ # HTTP header 'Accept' (if needed)
164
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
165
+ # HTTP header 'Content-Type'
166
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
167
+
168
+ # form parameters
169
+ form_params = {}
170
+
171
+ # http body (model)
172
+ post_body = nil
173
+ auth_names = ['Token']
174
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
175
+ :header_params => header_params,
176
+ :query_params => query_params,
177
+ :form_params => form_params,
178
+ :body => post_body,
179
+ :auth_names => auth_names,
180
+ :return_type => 'InlineResponse200')
181
+ if @api_client.config.debugging
182
+ @api_client.config.logger.debug "API called: ApiTokensApi#api_tokens_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
183
+ end
184
+ return data, status_code, headers
185
+ end
186
+
187
+ #
188
+ #
189
+ # @param key A unique value identifying this api token.
190
+ # @param [Hash] opts the optional parameters
191
+ # @return [AuthToken]
192
+ def api_tokens_read(key, opts = {})
193
+ data, _status_code, _headers = api_tokens_read_with_http_info(key, opts)
194
+ return data
195
+ end
196
+
197
+ #
198
+ #
199
+ # @param key A unique value identifying this api token.
200
+ # @param [Hash] opts the optional parameters
201
+ # @return [Array<(AuthToken, Fixnum, Hash)>] AuthToken data, response status code and response headers
202
+ def api_tokens_read_with_http_info(key, opts = {})
203
+ if @api_client.config.debugging
204
+ @api_client.config.logger.debug "Calling API: ApiTokensApi.api_tokens_read ..."
205
+ end
206
+ # verify the required parameter 'key' is set
207
+ if @api_client.config.client_side_validation && key.nil?
208
+ fail ArgumentError, "Missing the required parameter 'key' when calling ApiTokensApi.api_tokens_read"
209
+ end
210
+ # resource path
211
+ local_var_path = "/api-tokens/{key}/".sub('{' + 'key' + '}', key.to_s)
212
+
213
+ # query parameters
214
+ query_params = {}
215
+
216
+ # header parameters
217
+ header_params = {}
218
+ # HTTP header 'Accept' (if needed)
219
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
220
+ # HTTP header 'Content-Type'
221
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
222
+
223
+ # form parameters
224
+ form_params = {}
225
+
226
+ # http body (model)
227
+ post_body = nil
228
+ auth_names = ['Token']
229
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
230
+ :header_params => header_params,
231
+ :query_params => query_params,
232
+ :form_params => form_params,
233
+ :body => post_body,
234
+ :auth_names => auth_names,
235
+ :return_type => 'AuthToken')
236
+ if @api_client.config.debugging
237
+ @api_client.config.logger.debug "API called: ApiTokensApi#api_tokens_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
238
+ end
239
+ return data, status_code, headers
240
+ end
241
+ end
242
+ end