All URIs are relative to https://api.merge.dev/api/hris/v1
Method | HTTP request | Description |
---|---|---|
GroupsList | Get /groups | |
GroupsRetrieve | Get /groups/{id} |
PaginatedGroupList GroupsList(ctx).XAccountToken(xAccountToken).CreatedAfter(createdAfter).CreatedBefore(createdBefore).Cursor(cursor).IncludeDeletedData(includeDeletedData).IncludeRemoteData(includeRemoteData).ModifiedAfter(modifiedAfter).ModifiedBefore(modifiedBefore).PageSize(pageSize).RemoteId(remoteId).Execute()
package main
import (
"context"
"fmt"
"os"
"time"
openapiclient "./openapi"
)
func main() {
xAccountToken := "xAccountToken_example" // string | Token identifying the end user.
createdAfter := time.Now() // time.Time | If provided, will only return objects created after this datetime. (optional)
createdBefore := time.Now() // time.Time | If provided, will only return objects created before this datetime. (optional)
cursor := "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw" // string | The pagination cursor value. (optional)
includeDeletedData := true // bool | Whether to include data that was deleted in the third-party service. (optional)
includeRemoteData := true // bool | Whether to include the original data Merge fetched from the third-party to produce these models. (optional)
modifiedAfter := time.Now() // time.Time | If provided, will only return objects modified after this datetime. (optional)
modifiedBefore := time.Now() // time.Time | If provided, will only return objects modified before this datetime. (optional)
pageSize := int32(56) // int32 | Number of results to return per page. (optional)
remoteId := "remoteId_example" // string | The API provider's ID for the given object. (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.GroupsApi.GroupsList(context.Background()).XAccountToken(xAccountToken).CreatedAfter(createdAfter).CreatedBefore(createdBefore).Cursor(cursor).IncludeDeletedData(includeDeletedData).IncludeRemoteData(includeRemoteData).ModifiedAfter(modifiedAfter).ModifiedBefore(modifiedBefore).PageSize(pageSize).RemoteId(remoteId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `GroupsApi.GroupsList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GroupsList`: PaginatedGroupList
fmt.Fprintf(os.Stdout, "Response from `GroupsApi.GroupsList`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiGroupsListRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
xAccountToken | string | Token identifying the end user. | |
createdAfter | time.Time | If provided, will only return objects created after this datetime. | |
createdBefore | time.Time | If provided, will only return objects created before this datetime. | |
cursor | string | The pagination cursor value. | |
includeDeletedData | bool | Whether to include data that was deleted in the third-party service. | |
includeRemoteData | bool | Whether to include the original data Merge fetched from the third-party to produce these models. | |
modifiedAfter | time.Time | If provided, will only return objects modified after this datetime. | |
modifiedBefore | time.Time | If provided, will only return objects modified before this datetime. | |
pageSize | int32 | Number of results to return per page. | |
remoteId | string | The API provider's ID for the given object. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Group GroupsRetrieve(ctx, id).XAccountToken(xAccountToken).IncludeRemoteData(includeRemoteData).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
xAccountToken := "xAccountToken_example" // string | Token identifying the end user.
id := TODO // string |
includeRemoteData := true // bool | Whether to include the original data Merge fetched from the third-party to produce these models. (optional)
configuration := openapiclient.NewConfiguration()
api_client := openapiclient.NewAPIClient(configuration)
resp, r, err := api_client.GroupsApi.GroupsRetrieve(context.Background(), id).XAccountToken(xAccountToken).IncludeRemoteData(includeRemoteData).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `GroupsApi.GroupsRetrieve``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GroupsRetrieve`: Group
fmt.Fprintf(os.Stdout, "Response from `GroupsApi.GroupsRetrieve`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string |
Other parameters are passed through a pointer to a apiGroupsRetrieveRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
xAccountToken | string | Token identifying the end user. |
includeRemoteData | bool | Whether to include the original data Merge fetched from the third-party to produce these models. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]