-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #132 from signnow/prefill-text
Edit Text field feature
- Loading branch information
Showing
54 changed files
with
785 additions
and
268 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using System.Collections.Generic; | ||
using System.Threading.Tasks; | ||
using SignNow.Net.Interfaces; | ||
using SignNow.Net.Model; | ||
using SignNow.Net.Model.EditFields; | ||
using SignNow.Net.Model.Responses; | ||
|
||
namespace SignNow.Net.Examples.Documents | ||
{ | ||
// public class EditDocumentTextFields | ||
public static partial class DocumentExamples | ||
{ | ||
/// <summary> | ||
/// Updates a document by adding/overwriting fields or elements (texts, checks, signatures, hyperlinks, attachments) | ||
/// </summary> | ||
/// <param name="documentId">Identity of the document to add/edit fields for.</param> | ||
/// <param name="fields">Collection of the <see cref="IFieldEditable">fields</see></param> | ||
/// <param name="token">Access token</param> | ||
/// <returns></returns> | ||
public static async Task<EditDocumentResponse> EditDocumentTextFields(string documentId, IEnumerable<IFieldEditable> fields, Token token) | ||
{ | ||
// using token from the Authorization step | ||
var signNowContext = new SignNowContext(token); | ||
|
||
return await signNowContext.Documents | ||
.EditDocumentAsync(documentId, fields) | ||
.ConfigureAwait(false); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
|
Oops, something went wrong.