Giter Site home page Giter Site logo

blue-sam / docusign-csharp-client Goto Github PK

View Code? Open in Web Editor NEW

This project forked from docusign/docusign-esign-csharp-client

0.0 2.0 0.0 7.74 MB

C# Client Library used to interact with the DocuSign REST API. Send, sign, and approve documents using this client.

Home Page: https://www.docusign.com/devcenter

License: MIT License

Batchfile 0.01% C# 99.89% PowerShell 0.10%

docusign-csharp-client's Introduction

DocuSign C# Client

You can sign up for a free developer sandbox.

Requirements

Microsoft .NET version 4.5 or later.

Installation

NuGet Package Manager

To add to a new or existing Visual Studio project:

1. Open project and go to Tools -> NuGet Package Manager -> Manage NuGet Packages for Solution.
2. Search for "DocuSign", select the DocuSign.eSign package, and click Install.  

Manual Install

Copy DocuSign.eSign.dll file to your local machine and add reference through your project settings.

Others

Alternatively you can just copy the source code directly into your project.

Dependencies

This client has the following external dependencies:

  • Newtonsoft.Json.dll
  • RestSharp.dll

Usage

To initialize the client and make the Login API Call:

	using DocuSign.eSign.Api;
	using DocuSign.eSign.Model;
	using DocuSign.eSign.Client;

	namespace DocuSignSample
	{
		class Program
		{
			static void Main(string[] args)
			{
				string username = "[EMAIL]";
				string password = "[PASSWORD]";
				string integratorKey = "[INTEGRATOR_KEY]";

				// initialize client for desired environment (for production change to www)
				ApiClient apiClient = new ApiClient("https://demo.docusign.net/restapi");
				Configuration.Default.ApiClient = apiClient;

				// configure custom authentication header
				string authHeader = "{\"Username\":\"" + username + "\", \"Password\":\"" + password + "\", \"IntegratorKey\":\"" + integratorKey + "\"}";
				Configuration.Default.AddDefaultHeader("X-DocuSign-Authentication", authHeader);

				// we will retrieve this from the login API call
				string accountId = null;

				// login call is available in the authentication api 
				AuthenticationApi authApi = new AuthenticationApi();
				LoginInformation loginInfo = authApi.Login();
				accountId = loginInfo.LoginAccounts[0].AccountId;
			}
		}
	}

See CoreRecipes.cs for more examples.

Testing

Unit tests are available in the Test folder.

Support

Feel free to log issues against this client through GitHub. We also have an active developer community on Stack Overflow, search the DocuSignAPI tag.

License

The DocuSign CSharp Client is licensed under the following License.

Notes

This version of the client library does not implement all of the DocuSign REST API methods. The current client omits methods in the Accounts, Billing, Cloud Storage, Connect, Groups (Branding), and Templates (Bulk Recipients) categories. The client's methods support the core set of use cases that most integrations will encounter. For a complete list of omitted endpoints, see Omitted Endpoints.

docusign-csharp-client's People

Contributors

inbargazit avatar ergin008 avatar larryklugerds avatar lanubisl avatar bojake avatar javikia avatar joe-cartano avatar gonemad83 avatar donglover avatar totallyeviljake avatar joepetrakovich avatar patman0021 avatar gabolles avatar tranquilchaos avatar rmccune8 avatar srbrown1977 avatar sergei-pankratov avatar

Watchers

James Cloos avatar Sam Walker 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.