Skip to content

Latest commit

 

History

History
58 lines (40 loc) · 1.97 KB

README.md

File metadata and controls

58 lines (40 loc) · 1.97 KB

CustomFields

(CustomFields)

Overview

View custom contact properties

Available Operations

GetContactsCustomFields

Retrieve a list of your account's custom contact properties.

Example Usage

package main

import(
	loopsgo "github.com/speakeasy-sdks/loops-go"
	"context"
	"log"
)

func main() {
    s := loopsgo.New(
        loopsgo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
    )

    ctx := context.Background()
    res, err := s.CustomFields.GetContactsCustomFields(ctx)
    if err != nil {
        log.Fatal(err)
    }
    if res.CustomFields != nil {
        // handle response
    }
}

Parameters

Parameter Type Required Description
ctx context.Context ✔️ The context to use for the request.
opts []operations.Option The options for this request.

Response

*operations.GetContactsCustomFieldsResponse, error

Error Object Status Code Content Type
sdkerrors.SDKError 4xx-5xx /