Giter Site home page Giter Site logo

nquocvuong / signrequest-ruby-client Goto Github PK

View Code? Open in Web Editor NEW

This project forked from signrequest/signrequest-ruby-client

0.0 0.0 2.0 157 KB

Official Ruby client for SignRequest.com

Home Page: https://signrequest.com

License: MIT License

Ruby 99.81% Shell 0.19%

signrequest-ruby-client's Introduction

SignRequest Ruby Client

SignRequestClient - the offical Ruby client for SignRequest.com

Gem Version

Installation

Add this to the Gemfile:

gem 'signrequest_client', '~> 1.2.0'

And then run:

bundle install

API Documentation

Full API documentation, including code samples, can be found here: https://signrequest.com/api/v1/docs/

Getting Started

The client needs to be configured with an API token from your team api settings page.

# Setup authorization
SignRequestClient.configure do |config|
  config.api_key['Authorization'] = 'YOUR API KEY'
  config.api_key_prefix['Authorization'] = 'Token'
end

documents_api = SignRequestClient::DocumentsApi.new
document = SignRequestClient::Document.new
document.file_from_url = 'https://docs.google.com/document/d/1oI2R1SxfMNZXiz3jCQvorpoklF9xq_dCJnOpkI-zo80/edit?usp=sharing'

begin
  result = documents_api.documents_create(document)
  p result
rescue SignRequestClient::ApiError => e
  puts "Exception when calling ApiTokensApi->api_tokens_create: #{e}"
end

Documentation for API Endpoints

All URIs are relative to https://signrequest.com/api/v1

Class Method HTTP request Description
SignRequestClient::ApiTokensApi api_tokens_list GET /api-tokens/ Retrieve a list of API tokens
SignRequestClient::DocumentAttachmentsApi document_attachments_create POST /document-attachments/ Create a Document Attachment
SignRequestClient::DocumentAttachmentsApi document_attachments_list GET /document-attachments/ Retrieve a list of Document Attachments
SignRequestClient::DocumentAttachmentsApi document_attachments_read GET /document-attachments/{uuid}/ Retrieve a Document Attachment
SignRequestClient::DocumentsApi documents_create POST /documents/ Create a Document
SignRequestClient::DocumentsApi documents_delete DELETE /documents/{uuid}/ Delete a Document
SignRequestClient::DocumentsApi documents_list GET /documents/ Retrieve a list of Documents
SignRequestClient::DocumentsApi documents_read GET /documents/{uuid}/ Retrieve a Document
SignRequestClient::DocumentsSearchApi documents_search_list GET /documents-search/ Search documents
SignRequestClient::EventsApi events_list GET /events/ Retrieve a list of Events
SignRequestClient::EventsApi events_read GET /events/{id}/ Retrieve an Event
SignRequestClient::SignrequestQuickCreateApi signrequest_quick_create_create POST /signrequest-quick-create/ Quick create a SignRequest
SignRequestClient::SignrequestsApi signrequests_cancel_signrequest POST /signrequests/{uuid}/cancel_signrequest/ Cancel a SignRequest
SignRequestClient::SignrequestsApi signrequests_create POST /signrequests/ Create a SignRequest
SignRequestClient::SignrequestsApi signrequests_list GET /signrequests/ Retrieve a list of SignRequests
SignRequestClient::SignrequestsApi signrequests_read GET /signrequests/{uuid}/ Retrieve a SignRequest
SignRequestClient::SignrequestsApi signrequests_resend_signrequest_email POST /signrequests/{uuid}/resend_signrequest_email/ Resend a SignRequest
SignRequestClient::TeamMembersApi team_members_list GET /team-members/ Retrieve a list of Team Members
SignRequestClient::TeamMembersApi team_members_read GET /team-members/{uuid}/ Retrieve a Team Member
SignRequestClient::TeamsApi teams_create POST /teams/ Create a Team
SignRequestClient::TeamsApi teams_delete DELETE /teams/{subdomain}/ Delete a Team
SignRequestClient::TeamsApi teams_invite_member POST /teams/{subdomain}/invite_member/ Invite a Team Member
SignRequestClient::TeamsApi teams_list GET /teams/ Retrieve a list of Teams
SignRequestClient::TeamsApi teams_partial_update PATCH /teams/{subdomain}/ Update a Team
SignRequestClient::TeamsApi teams_read GET /teams/{subdomain}/ Retrieve a Team
SignRequestClient::TemplatesApi templates_list GET /templates/ Retrieve a list of Templates
SignRequestClient::TemplatesApi templates_read GET /templates/{uuid}/ Retrieve a Template
SignRequestClient::WebhooksApi webhooks_create POST /webhooks/ Create a Webhook
SignRequestClient::WebhooksApi webhooks_delete DELETE /webhooks/{uuid}/ Delete a Webhook
SignRequestClient::WebhooksApi webhooks_list GET /webhooks/ Retrieve a list of Webhooks
SignRequestClient::WebhooksApi webhooks_partial_update PATCH /webhooks/{uuid}/ Partially update a Webhook
SignRequestClient::WebhooksApi webhooks_read GET /webhooks/{uuid}/ Retrieve a Webhook
SignRequestClient::WebhooksApi webhooks_update PUT /webhooks/{uuid}/ Update a Webhook

Documentation for Models

Documentation for Authorization

Token

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

signrequest-ruby-client's People

Contributors

cjackson avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.