Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Code of conduct

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages