Skip to content

Latest commit

 

History

History
142 lines (88 loc) · 3.4 KB

File metadata and controls

142 lines (88 loc) · 3.4 KB

\TrackingAPI

All URIs are relative to https://api.sendx.io/api/v1/rest

Method HTTP request Description
IdentifyContact Post /contact/identify Identify contact
TrackContact Post /contact/track Track contact

IdentifyContact

IdentifyResponse IdentifyContact(ctx).IdentifyRequest(identifyRequest).Execute()

Identify contact

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/sendx/sendx-go-sdk"
)

func main() {
	identifyRequest := *openapiclient.NewIdentifyRequest("Email_example") // IdentifyRequest | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.TrackingAPI.IdentifyContact(context.Background()).IdentifyRequest(identifyRequest).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `TrackingAPI.IdentifyContact``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `IdentifyContact`: IdentifyResponse
	fmt.Fprintf(os.Stdout, "Response from `TrackingAPI.IdentifyContact`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiIdentifyContactRequest struct via the builder pattern

Name Type Description Notes
identifyRequest IdentifyRequest

Return type

IdentifyResponse

Authorization

TeamApiKey

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

TrackContact

TrackResponse TrackContact(ctx).TrackRequest(trackRequest).Execute()

Track contact

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/sendx/sendx-go-sdk"
)

func main() {
	trackRequest := *openapiclient.NewTrackRequest() // TrackRequest | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.TrackingAPI.TrackContact(context.Background()).TrackRequest(trackRequest).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `TrackingAPI.TrackContact``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `TrackContact`: TrackResponse
	fmt.Fprintf(os.Stdout, "Response from `TrackingAPI.TrackContact`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiTrackContactRequest struct via the builder pattern

Name Type Description Notes
trackRequest TrackRequest

Return type

TrackResponse

Authorization

TeamApiKey

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]