Skip to content

Latest commit

 

History

History
executable file
·
219 lines (159 loc) · 8.66 KB

README.md

File metadata and controls

executable file
·
219 lines (159 loc) · 8.66 KB

Companies

Overview

Companies

Available Operations

Enrich

Enrich a company 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.Companies.Enrich(ctx, operations.EnrichCompanyRequest{
        ID: "a05dfc2d-df7c-4c78-8a1b-a928fc816742",
    })
    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.EnrichCompanyRequest ✔️ The request object to use for the request.

Response

*operations.EnrichCompanyResponse, error

ListEmployees

List company employees

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.Companies.ListEmployees(ctx, operations.ListEmployeesRequest{
        ID: "cb739205-9293-496f-aa75-96eb10faaa23",
        Offset: sdk.String("corporis"),
        PerPage: sdk.String("explicabo"),
    })
    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.ListEmployeesRequest ✔️ The request object to use for the request.

Response

*operations.ListEmployeesResponse, error

ListJobs

List company jobs

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.Companies.ListJobs(ctx, operations.ListJobsRequest{
        ID: "c5955907-aff1-4a3a-afa9-467739251aa5",
        Offset: sdk.String("odit"),
        PerPage: sdk.String("quo"),
    })
    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.ListJobsRequest ✔️ The request object to use for the request.

Response

*operations.ListJobsResponse, error

Search

Search Companies

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.Companies.Search(ctx, operations.SearchCompaniesApplicationJSON{
        Filter: sdk.String("sequi"),
        Limit: sdk.String("tenetur"),
        Page: sdk.String("ipsam"),
        Query: sdk.String("id"),
    })
    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.SearchCompaniesApplicationJSON ✔️ The request object to use for the request.

Response

*operations.SearchCompaniesResponse, error