8000 GitHub - nicdavies/signable-api-client: A Go API client for working with the Signable API.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

nicdavies/signable-api-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Signable GO API Client

A Go API Client for working with the Signable API.

Install

go get github.com/nicdavies/signable-api-client

Features

// todo

Documentation

Usage

// create a new api client
client := client.NewClient("apikey")

// get all contacts
res, err := client.GetContacts(context.TODO(), &types.ListContactOptions{
    Offset: 0,
    Limit: 10,
})

// get a contact
res, err := client.GetContact(context.TODO(), &types.ListContactOptions{
    Id: 1000,
})

// create a contact
res, err := client.CreateContact(context.TODO(), &types.CreateContactOptions{
	Name: "Hello World",
	Email: "hi@example.org",
})

// update a contact
res, err := client.CreateContact(context.TODO(), 1000, &types.UpdateContactOptions{
    Name: "Hello World",
    Email: "hi@example.org",
})

// delete a contact
res, err := client.CreateContact(context.TODO(), &types.DeleteContactOptions{
    Id: 1000,
})

About

A Go API client for working with the Signable API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0