'What are the values for AuthenticationMethod?
I'm making a request to /accounts/{accountId}/envelopes/{envelopeId}/views/recipient
with the JSON
{
"authenticationMethod": "userid",
"returnUrl": "http://localhost:3000/rooms/07bfcdf24f455ff14964f0e14c8d6825/finished",
"userId": "5a44ea44-02be-4926-8c3d-66cb85523799"
}
and getting the error
{
"errorCode": "INVALID_REQUEST_PARAMETER",
"message": "The request contained at least one invalid parameter. The value of AuthenticationMethod is invalid."
}
EDIT:
Another thing i failed to mention, is the envelope was created with compositeTemplates.
Solution 1:[1]
From the SOAP WSDL (https://www.docusign.net/api/3.0/dsapi.asmx?wsdl) - these values also work for REST (lowercase):
Password
Email
PaperDocuments
HTTPBasicAuth
SSLMutualAuth
X509Certificate
Kerberos
SingleSignOn_CASiteminder
SingleSignOn_InfoCard
SingleSignOn_MicrosoftActiveDirectory
SingleSignOn_Passport
SingleSignOn_SAML
SingleSignOn_Other
Smartcard
RSASecureID
Biometric
None
KnowledgeBasedAuth
Solution 2:[2]
The following values should all be valid, though note that this might not be a full list:
"None"
"Email"
"Password"
"HTTPBasicAuth"
"X509Certificate"
"KnowledgeBasedAuth"
Solution 3:[3]
import 'package:flutter/material.dart';
import 'package:simple_animations/simple_animations.dart';
enum AnimationType { opacity, translateX }
class FadeAnimation extends StatelessWidget {
final double delay;
final Widget child;
const FadeAnimation(this.delay, this.child);
@override
Widget build(BuildContext context) {
final tween = MultiTween<AnimationType>()
..add(AnimationType.opacity, Tween(begin: 0.0, end: 1.0),
Duration(milliseconds: 500),)
..add(
AnimationType.translateX,
Tween(begin: 30.0, end: 1.0),
Duration(milliseconds: 500),
);
return PlayAnimation<MultiTweenValues<AnimationType>>(
delay: Duration(milliseconds: (500 * delay).round()),
duration: tween.duration,
tween: tween,
child: child,
builder: (context, child, value) => Opacity(
opacity: value.get(AnimationType.opacity),
child: Transform.translate(
offset: Offset(value.get(AnimationType.translateX), 0), child: child),
),
);
}
}
Please ref: https://stackoverflow.com/a/64085688/3382061
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Drew |
| Solution 2 | Ergin |
| Solution 3 | VeeraLavan |
