Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
InbarGazit committed Aug 18, 2015
2 parents e24f4f2 + 5c07590 commit 7601eef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
5 changes: 0 additions & 5 deletions Examples.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,13 @@ class TestProgram
// Your Integrator Key can be found in your account Preferences -> API screen.
protected const string IntegratorKey = "***";

// update this once you move into production
protected const string Environment = "http://demo.docusign.net";

static void Main(string[] args)
{
// Example #1...
Console.WriteLine("Testing Walkthrough #1...");

// configure application's integrator key, webservice url, and rest api version
RestSettings.Instance.IntegratorKey = IntegratorKey;
RestSettings.Instance.DocuSignAddress = Environment;
RestSettings.Instance.WebServiceUrl = Environment + "/restapi/v2";

TestProgram test = new TestProgram();
test.SignatureRequestFromTemplate();
Expand Down
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,15 @@ Users of your integration authenticate with DocuSign by making the Login API cal
* password
* Integrator Key

For example, to authenticate against the DocuSign demo environment (ie _demo.docusign.net_) you can use the following code:
For example, to authenticate against the DocuSign demo environment (ie _demo.docusign.net_) - which is where the DocuSign developer sandbox accounts operate in - you can use the following code:

// configure application's integrator key and webservice url
RestSettings.Instance.IntegratorKey = "<Your_Integrator_Key>";
RestSettings.Instance.DocuSignAddress = "http://demo.docusign.net";
RestSettings.Instance.WebServiceUrl = RestSettings.Instance.DocuSignAddress + "/restapi/v2";
RestSettings.Instance.IntegratorKey = "INTEGRATOR_KEY";

// credentials for sending account
Account account = new Account();
account.Email = "<Email_Address>";
account.Password = "<Password>";
account.Email = "EMAIL";
account.Password = "PASSWORD";

// make the Login API call
bool result = account.Login();
Expand Down

0 comments on commit 7601eef

Please sign in to comment.