https://github.com/embloy/embloy-go
Embloy's Go SDK for interacting with your Embloy integration.
https://github.com/embloy/embloy-go
Last synced: 16 days ago
JSON representation
Embloy's Go SDK for interacting with your Embloy integration.
- Host: GitHub
- URL: https://github.com/embloy/embloy-go
- Owner: Embloy
- License: agpl-3.0
- Created: 2024-01-11T19:37:32.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-13T22:22:49.000Z (over 1 year ago)
- Last Synced: 2025-03-13T23:26:13.499Z (over 1 year ago)
- Language: Go
- Homepage: https://pkg.go.dev/github.com/embloy/embloy-go/embloy
- Size: 44.9 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [Embloy Go](https://pkg.go.dev/github.com/embloy/embloy-go) · [](https://github.com/Embloy/Embloy-Go/blob/main/LICENSE) [](https://pkg.go.dev/github.com/embloy/embloy-go) [](https://github.com/Embloy/Embloy-Go/issues) [](https://github.com/Embloy/Embloy-Go/pulls)
Embloy's Go SDK for interacting with your Embloy integration.
## Usage
Install Embloy-Go SDK:
```go
import "github.com/embloy/embloy-go/embloy"
```
Then you can run the following command to retrieve the package:
```go
go get -u github.com/embloy/embloy-go/embloy
```
Integrate it in your service:
```go
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
```bash
git tag v0.1.x
git push origin v0.1.x
```
---
© Carlo Bortolan, Jan Hummel
> Carlo Bortolan ·
> GitHub [@carlobortolan](https://github.com/carlobortolan) ·
> contact via [bortolanoffice@embloy.com](mailto:bortolanoffice@embloy.com)
>
> Jan Hummel ·
> GitHub [@github4touchdouble](https://github.com/github4touchdouble) ·
> contact via [hummeloffice@embloy.com](mailto:hummeloffice@embloy.com)