All URIs are relative to https://api.hubapi.com
Method | HTTP request | Description |
---|---|---|
GetAll | Get /crm/v3/associations/{fromObjectType}/{toObjectType}/types | List association types |
CollectionResponsePublicAssociationDefinitionNoPaging GetAll(ctx, fromObjectType, toObjectType).Execute()
List association types
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
fromObjectType := "fromObjectType_example" // string |
toObjectType := "toObjectType_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TypesApi.GetAll(context.Background(), fromObjectType, toObjectType).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TypesApi.GetAll``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetAll`: CollectionResponsePublicAssociationDefinitionNoPaging
fmt.Fprintf(os.Stdout, "Response from `TypesApi.GetAll`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
fromObjectType | string | ||
toObjectType | string |
Other parameters are passed through a pointer to a apiGetAllRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
CollectionResponsePublicAssociationDefinitionNoPaging
oauth2, oauth2_legacy, private_apps, private_apps_legacy
- Content-Type: Not defined
- Accept: application/json, /
[Back to top] [Back to API list] [Back to Model list] [Back to README]