Skip to content

Latest commit

 

History

History
64 lines (47 loc) · 1.82 KB

README.md

File metadata and controls

64 lines (47 loc) · 1.82 KB

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