People
Enrich a person profile
package main
import(
"context"
"log"
"Structure"
"Structure/pkg/models/operations"
)
func main() {
s := sdk.New(
sdk.WithSecurity(shared.Security{
BearerAuth: "",
}),
)
ctx := context.Background()
res, err := s.People.Enrich(ctx, operations.EnrichPersonRequest{
ID: "d019da1f-fe78-4f09-bb00-74f15471b5e6",
})
if err != nil {
log.Fatal(err)
}
if res.Body != nil {
// handle response
}
}
Parameter | Type | Required | Description |
---|---|---|---|
ctx |
context.Context | ✔️ | The context to use for the request. |
request |
operations.EnrichPersonRequest | ✔️ | The request object to use for the request. |
*operations.EnrichPersonResponse, error
Search People
package main
import(
"context"
"log"
"Structure"
"Structure/pkg/models/operations"
)
func main() {
s := sdk.New(
sdk.WithSecurity(shared.Security{
BearerAuth: "",
}),
)
ctx := context.Background()
res, err := s.People.Search(ctx, operations.SearchPeopleApplicationJSON{
Filter: sdk.String("repudiandae"),
Limit: sdk.String("quae"),
Page: sdk.String("ipsum"),
Query: sdk.String("quidem"),
})
if err != nil {
log.Fatal(err)
}
if res.Body != nil {
// handle response
}
}
Parameter | Type | Required | Description |
---|---|---|---|
ctx |
context.Context | ✔️ | The context to use for the request. |
request |
operations.SearchPeopleApplicationJSON | ✔️ | The request object to use for the request. |