From f10b7e71ea60b08074618690a04d548205e4b0aa Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Fri, 14 Jun 2024 10:08:40 -0600 Subject: [PATCH] chore: deprecate create_list function --- tracker.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tracker.go b/tracker.go index 8686bb4..20b419b 100644 --- a/tracker.go +++ b/tracker.go @@ -155,6 +155,8 @@ func (c *Client) CreateTrackerWithContext(ctx context.Context, opts *CreateTrack // CreateTrackerList asynchronously creates multiple trackers. // Input a map of maps that contains multiple tracking codes +// +// Deprecated: Use the CreateTracker function instead. CreateTrackerList will be removed in a future release. func (c *Client) CreateTrackerList(param map[string]interface{}) (bool, error) { // The data structure must look like the following when calling the API: // { @@ -172,6 +174,8 @@ func (c *Client) CreateTrackerList(param map[string]interface{}) (bool, error) { // CreateTrackerListWithContext performs the same operation as // CreateTrackerList, but allows specifying a context that can interrupt the // request. +// +// Deprecated: Use the CreateTracker function instead. CreateTrackerList will be removed in a future release. func (c *Client) CreateTrackerListWithContext(ctx context.Context, param map[string]interface{}) (bool, error) { req := map[string]interface{}{"trackers": param} // This endpoint does not return a response, so we return true here