Skip to content

Latest commit

 

History

History
executable file
·
113 lines (81 loc) · 4.41 KB

README.md

File metadata and controls

executable file
·
113 lines (81 loc) · 4.41 KB

People

Overview

People

Available Operations

Enrich

Enrich a person profile

Example Usage

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
    }
}

Parameters

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.

Response

*operations.EnrichPersonResponse, error

Search

Search People

Example Usage

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
    }
}

Parameters

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.

Response

*operations.SearchPeopleResponse, error