Retrieve a worker email address
client.Workers.GetEmail(ctx, workerID) (*WorkerGetEmailResponse, error)
GET/api/workers/{workerId}/email
Retrieve a worker email address
package main
import (
"context"
"fmt"
"github.com/ramensoft/handinger-go"
"github.com/ramensoft/handinger-go/option"
)
func main() {
client := handinger.NewClient(
option.WithAPIKey("My API Key"),
)
response, err := client.Workers.GetEmail(context.TODO(), "t_org_123_w_01HZY2ZJQ8G7K42W2D7WF6V4GM")
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response.Email)
}
{
"email": "email"
}Returns Examples
{
"email": "email"
}