Skip to content
master
Go to file
Code
This branch is 41 commits behind labstack:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Go Client

Installation

go get github.com/labstack/labstack-go

Quick Start

Sign up to get an API key

Create a file app.go with the following content:

package main

import (
	"fmt"

	"github.com/labstack/labstack-go"
)

func main() {
	client := labstack.NewClient("<ACCOUNT_ID>", "<API_KEY>")
	res, err := client.BarcodeGenerate(&labstack.BarcodeGenerateRequest{
		Format:  "qr_code",
		Content: "https://labstack.com",
	})
	if err != nil {
		fmt.Println(err)
	} else {
		client.Download(res.ID, "/tmp/"+res.Name)
	}
}

From terminal run your app:

go run app.go

API | Forum

About

Official Go client library for the LabStack platform

Resources

License

Packages

No packages published
You can’t perform that action at this time.