@benjamn I tried using the meteor-promise package and it works great!.. except inside of a meteor method… Is there a way to return a value to the method?
The best I idea that I could come up with was using a future to grab the 2nd promise:
getUrlTest: function() {
var future = new Future();
hellosign.signatureRequest.createEmbedded(options)
.then(function(response){
var signatureId = response.signature_request.signatures[0].signature_id;
return hellosign.embedded.getSignUrl(signatureId);
})
.then(function(response){
future.return(response.embedded.sign_url);
})
.catch(function(err){
console.log(err);
});
return future.wait();
}
});