Embloy's Go SDK for interacting with your Embloy integration.
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)
}
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