我试图获得收件人网址,但得到"GetRecipientView REST错误ACCOUNT_NOT_AUTHORIZED_FOR_ENVELOPE #44“。
首先,我正在创建一个信封来获取发件人url。然后我调用GetRecipientView()来获取收件人视图url。下面是我正在使用的代码
public string EmbeddedSenderView(string docId)
{
Account account = InitializeDocSign();
Envelope envelope = new Envelope();
envelope.Login = account;
envelope.EmailSubject = "Please sign document";
envelope.Recipients = new Recipients()
{
signers = new Signer[]
{
new Signer()
{
email = "xxxx@gmail.com",
name = "AV Gmail 1",
routingOrder = "1",
recipientId = "1",
roleName="Signer",
clientUserId="101"
},
},
};
envelope.Create("\FAQ_NMS.pdf");
bool result = envelope.GetSenderView("my domain");
/*Saving document details into Database*/
if (result)
{
ObjDocumentSignRequest obj = new ObjDocumentSignRequest();
obj.DocumentId = docId;
obj.EnvelopeId = envelope.EnvelopeId;
obj.SenderViewUrl = envelope.SenderViewUrl;
eSignUtilities.SaveSignRequest(obj);
}
return envelope.SenderViewUrl;
}
public void EmbeddedRecepientView(string docId)
{
Account account = InitializeDocSign();
Envelope envelope = new Envelope();
envelope.Login = account;
envelope.EmailSubject = "Please sign document";
envelope.Recipients = new Recipients()
{
signers = new Signer[]
{
new Signer()
{
email = "xxxx@gmail.com",
name = "AV Gmail 1",
routingOrder = "1",
recipientId = "1",
roleName="Signer",
clientUserId="101"
},
},
};
envelope.EnvelopeId = "xxxxxxxxxxx";
envelope.UpdateStatus();
bool result = envelope.GetRecipientView("my domain"); 有什么帮助吗?
谢谢AV
发布于 2015-09-21 09:25:36
它用"GetEmbeddedSignerView“方法解决。
Account account = InitializeDocSign();
Envelope envelope = new Envelope();
envelope.Login = account;
// assign the envelope id that was passed in
envelope.EnvelopeId = "xxxxx-xxx-xxx-xx-xxxxxxx";
var signer = new Signer
{
email = "xxxxx@gmail.com",
name = "AV xxxx 1",
clientUserId = "101",
recipientId = "1"
};
// generate the recipient view token
string signingUrl = envelope.GetEmbeddedSignerView("http://www.google.com", signer); 发布于 2015-09-19 04:39:22
在请求签名URL (也就是收件人视图)之前,您需要发送信封。看起来您正在创建信封,生成嵌入的发送URL,然后尝试在此之后生成嵌入式签名URL。
我知道在你打电话给GetRecipientView()之前,你正在打电话
envelope.UpdateStatus();但是,我不认为你
envelope.Status = "sent";在此之前是...anywhere,这意味着您在处于草案状态的信封上请求一个嵌入的签名URL,这将生成一个错误。
https://stackoverflow.com/questions/32516756
复制相似问题