Skip to content

Embloy/Embloy-Go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Embloy's Go SDK for interacting with your Embloy integration.

Usage

Install Embloy-Go SDK:

import "github.com/embloy/embloy-go/embloy"

Then you can run the following command to retrieve the package:

go get -u github.com/embloy/embloy-go/embloy

Integrate it in your service:

import (
    "fmt"
    "github.com/embloy/embloy-go/embloy"
)

func your-service-endpoint() {
	sessionData := embloy.SessionData{
		Mode:       "job",
		SuccessURL: "your-success-url",
		CancelURL:  "your-cancel-url",
		JobSlug:    "your-job-slug",
	}

	client := embloy.NewEmbloyClient("your-client-token", sessionData)

    response, err := client.MakeRequest()
    if err != nil {
        fmt.Println("Error:", err)
        return
    }

    fmt.Println("redirect_url:", response)
}

Publish a new release

git tag v0.1.x
git push origin v0.1.x

© Carlo Bortolan, Jan Hummel

Carlo Bortolan  ·  GitHub @carlobortolan  ·  contact via bortolanoffice@embloy.com

Jan Hummel  ·  GitHub @github4touchdouble  ·  contact via hummeloffice@embloy.com

About

Embloy's Go SDK for interacting with your Embloy integration.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages