Companies
- Enrich - Enrich a company profile
- ListEmployees - List company employees
- ListJobs - List company jobs
- Search - Search Companies
Enrich a company 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.Companies.Enrich(ctx, operations.EnrichCompanyRequest{
ID: "a05dfc2d-df7c-4c78-8a1b-a928fc816742",
})
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.EnrichCompanyRequest | ✔️ | The request object to use for the request. |
*operations.EnrichCompanyResponse, error
List company employees
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
}
}
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. |
*operations.ListEmployeesResponse, error
List company jobs
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
}
}
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. |
*operations.ListJobsResponse, error
Search Companies
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
}
}
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. |