lib/clicksign/api/documents_signers.rb in clicksign-api-1.0.1 vs lib/clicksign/api/documents_signers.rb in clicksign-api-1.1.0.alpha
- old
+ new
@@ -7,19 +7,20 @@
ATTRIBUTES = [
:document_key, :signer_key, :sign_as
]
class << self
- def create(params)
+ def create(token:, params: {})
post(
REQUEST_PATH,
- body(params)
+ body(params),
+ token
)
end
- def batch_create(batch)
+ def batch_create(token:, batch:)
batch.map do |params|
- create(params)
+ create(token: token, params: params)
end
end
def body(params)
list = ATTRIBUTES.each.with_object({}) do |key, hash|