|
1 | | -# docusign-maestro-csharp-client |
| 1 | +# DocuSign.Maestro - the C# library for the Maestro API |
| 2 | + |
| 3 | +Maestro authors and executes experiences that allow non-coders the ability to define Simple Business Process without having to write code and to deploy them seamlessly without having to have development expertise |
| 4 | + |
| 5 | +This C# SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: |
| 6 | + |
| 7 | +- Build package: io.swagger.codegen.languages.CSharpClientCodegen |
| 8 | + For more information, please visit [https://developers.docusign.com/](https://developers.docusign.com/) |
| 9 | + |
| 10 | +## Frameworks supported |
| 11 | +- .NET 4.0 or later |
| 12 | +- Windows Phone 7.1 (Mango) |
| 13 | + |
| 14 | +## Dependencies |
| 15 | +- [Json.NET](https://www.nuget.org/packages/Newtonsoft.Json/) - 13.0.1 or later |
| 16 | + |
| 17 | +The DLLs included in the package may not be the latest version. We recommned using [NuGet] (https://docs.nuget.org/consume/installing-nuget) to obtain the latest version of the packages: |
| 18 | +``` |
| 19 | +Install-Package Newtonsoft.Json |
| 20 | +``` |
| 21 | + |
| 22 | + |
| 23 | +## Getting Started |
| 24 | + |
| 25 | +```csharp |
| 26 | +using System; |
| 27 | +using System.Diagnostics; |
| 28 | +using DocuSign.Maestro.Api; |
| 29 | +using DocuSign.Maestro.Client; |
| 30 | +using DocuSign.Maestro.Model; |
| 31 | + |
| 32 | +namespace Example |
| 33 | +{ |
| 34 | + public class Example |
| 35 | + { |
| 36 | + public void main() |
| 37 | + { |
| 38 | + |
| 39 | + // Configure OAuth2 access token for authorization: DSAuth |
| 40 | + Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN"; |
| 41 | + // Configure API key authorization: DSBearerAuth |
| 42 | + Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY"); |
| 43 | + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed |
| 44 | + // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer"); |
| 45 | +
|
| 46 | + var apiInstance = new WorkflowInstanceManagementApi(); |
| 47 | + var accountId = new Guid?(); // Guid? | Account ID |
| 48 | + var instanceId = new Guid?(); // Guid? | DS Workflow Instance Id (dacId) |
| 49 | +
|
| 50 | + try |
| 51 | + { |
| 52 | + // Cancels a running workflow instance. |
| 53 | + CancelResponse result = apiInstance.CancelWorkflowInstance(accountId, instanceId); |
| 54 | + Debug.WriteLine(result); |
| 55 | + } |
| 56 | + catch (Exception e) |
| 57 | + { |
| 58 | + Debug.Print("Exception when calling WorkflowInstanceManagementApi.CancelWorkflowInstance: " + e.Message ); |
| 59 | + } |
| 60 | + } |
| 61 | + } |
| 62 | +} |
| 63 | +``` |
| 64 | + |
| 65 | +## Documentation for Authorization |
| 66 | + |
| 67 | + |
| 68 | +### DSAuth |
| 69 | + |
| 70 | +- **Type**: OAuth |
| 71 | +- **Flow**: accessCode |
| 72 | +- **Authorization URL**: https://account-tk1.tk.docusign.dev/oauth/auth |
| 73 | +- **Scopes**: |
| 74 | + - aow_manage: Manage workflows scope |
| 75 | + |
| 76 | +### DSBearerAuth |
| 77 | + |
| 78 | +- **Type**: API key |
| 79 | +- **API key parameter name**: Authorization |
| 80 | +- **Location**: HTTP header |
0 commit comments