Comments (2)
DocuSign just released v2.1 but have not released the OpenAPI/Swagger specification so that I can generate the operations and models. The v2 implementation works the same and is available in the envelopes package
The SDK Method (Envelopes::createRecipientView) is the best way to link the code to the documentation. To find the package implementation, find the SDK Method definition for an operation on the DocuSign reference page. The Quick Links menu in the top right always has a link to the SDK Method.
Then search package documentation for the SDK method, and you will find the package operations (see godoc.org link.
import "github.com/jfcote87/esign/envelopes"
import "github.com/jfcote87/esign/model"
func getRecipientURL(ctx context.Context, cred esign.Credential, envID string) (*model.ViewURL, error) {
sv := envelopes.New(cred)
rl, _ := sv.RecipientsList(envID).Do(ctx)
vURL, err := sv.ViewsCreateRecipient(envID, &model.RecipientViewRequest{
AssertionID: "Something",
AuthenticationMethod: "Email",
ReturnURL: "https://www.example.com?state=12345",
RecipientID: rl.Signers[0].RecipientID,
UserID: rl.Signers[0].UserID,
}).Do(ctx)
if err != nil {
return nil, err
}
log.Printf("%s", vURL.URL)
return vURL, nil
}
from esign.
thanks mate!!!
from esign.
Related Issues (10)
- undefined: jwt.ExpirationSetting HOT 2
- Allow JSON webhook notifications HOT 1
- Bug preventing signer from editting text tab with default value
- move service packages to v2 directory HOT 7
- "create credential error: private key should be a PEM or plain PKSC1" HOT 2
- Error Unmarshal JSON HOT 7
- Does esign support embeded usage? HOT 1
- cannot find package "." in: /vendor/github.com/jfcote87/esign/v2/envelopes HOT 2
- Embedded signing ceremony HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esign.