Closed halfdead2296 closed 3 years ago
It looks that smth wrong with your credentials. Please double check your clientId, clientSecret and Login/Password.
I validated Token using following , and it returns true
/// <summary>
/// Verify access token example
/// </summary>
/// <param name="apiBaseUrl">SignNow API base URL. Sandbox: "https://api-eval.signnow.com", Production: "https://api.signnow.com"</param>
/// <param name="clientInfo"><see cref="CredentialModel"/> with Application Client ID and Client Secret</param>
/// <param name="token">Access token</param>
/// <returns></returns>
public static async Task<bool> VerifyAccessToken(Uri apiBaseUrl, CredentialModel clientInfo, Token token)
{
var oauth2 = new OAuth2Service(apiBaseUrl, clientInfo.Login, clientInfo.Password);
return await oauth2.ValidateTokenAsync(token)
.ConfigureAwait(false);
}
and to note on ds .CreateDocumentFromTemplateAsync(documentName, templateId) .ConfigureAwait(false);
here in your document order of prameter mismatches with the CreateDocumentFromTemplateAsync function defination
and to note on ds .CreateDocumentFromTemplateAsync(documentName, templateId) .ConfigureAwait(false);
here in your document order of prameter mismatches with the CreateDocumentFromTemplateAsync function defination
Thanks, I''l fix it in next version
Did you try to use SingnNow.Net.Examples
solution? Using these examples - all should works.
Yes thankyou for the fix, closing the issue
When I use create document from template I get followiing error
### Following is my code public static async Task CreateDocumentFromTheTemplate(string documentName, string templateId, Token token)
{
// using token from the Authorization step
var signNowContext = new SignNowContext(token);
and I generated token using public static async Task RequestAccessToken(Uri apiBase, CredentialModel clientInfo)
{
Uri apiBaseUrl =new Uri("https://api-eval.signnow.com");