boldsign-go-sdk

command module
v1.1.19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 8 Imported by: 0

README

BoldSign Go SDK

A Go wrapper for the BoldSign API.

The unofficial library for using the BoldSign API for golang.

https://www.boldsign.com/help/api/general/preparing-your-application/

Usage

Get the boldsign module

Note that you need to include the v in the version tag.

$ go get github.com/tanphuqn/boldsign-go-sdk
Client
client := boldsign.Client{ClientID: "CLIENT ID", Secret: "SECRET"}
Embedded Signature Request
	var signers []model.DocumentSigner
	signers = append(signers, model.DocumentSigner{Name: "SignerName1", EmailAddress: "tanphuqn@gmail.com"})
	var files []string
	files = append(files, "./test.pdf")

	request := model.EmbeddedDocumentRequest{
		BrandId:               brandId,
		Title:                 "Sent from API Curl",
		Message:               "This is document message sent from API Curl",
		Signers:               signers,
		Files:                 files,
		EnableSigningOrder:    true,
		ShowToolbar:           true,
		ShowSaveButton:        true,
		ShowNavigationButtons: true,
		ShowSendButton:        true,
		ShowPreviewButton:     true,
	}
	// fmt.Printf("%+v\n", request)
	result, err := client.CreateEmbeddedRequestUrl(request)
	if err != nil {
		log.Fatal(err)
		return
	}
	fmt.Println(result)

Testing

$ go test

Tagging

git tag v1.1.19
git push origin --tags
GOPROXY=proxy.golang.org go list -m github.com/tanphuqn/boldsign-go-sdk@v1.1.19

curl -X 'DELETE'
'https://api.boldsign.com/v1/template/delete?templateId=35936dce-0722-48cc-84a5-c52ff47c1dd6'
-H 'accept: /'
-H 'X-API-KEY: NzJhM2NmZjUtZDQxOS00MTM0LTgyNGUtNWJiMjUwYTRmOWQx'

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL