xumm-go-client

module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: MIT

README

xumm-go-client

example workflow

This is a client written in golang for using the XUMM API. The API docs can be found here.

Installation:

The latest version can be installed using go get :

go get github.com/xyield/xumm-go-client@master

How to use this client

Register your app with the Xumm developer console Set Xumm credentials as environment variables

export XUMM_API_KEY=<key_from_console>
export XUMM_API_SECRET=<secret_from_console>
package main

func main() {
    cfg, err := xumm.NewConfig()
	if err != nil {
		log.Panicln(err)
	}

	client := client.New(cfg)

	pong, err := client.Meta.Ping()

	if err != nil {
		log.Println(err.Error())
	}

    // Do something
}

Contributing

Pre-requisites:
Install pre-commit

Future work

Continue to develop all endpoints
Integration testing in pipeline to connect to Xumm API
Ability to use custom logging library
Ability to use a custom client library

Directories

Path Synopsis
examples
This client provides an SDK to interact with the XUMM API in a golang application.
This client provides an SDK to interact with the XUMM API in a golang application.

Jump to

Keyboard shortcuts

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