Retrieve a worker email address
client.Workers.GetEmail(ctx, workerID) (*string, error)
GET/api/workers/{workerId}/email
Retrieve the inbound email address for a worker.
Retrieve a worker email address
package main
import (
"context"
"fmt"
"github.com/stainless-sdks/handinger-go"
"github.com/stainless-sdks/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)
}
"string"Returns Examples
"string"