Skip to content

Commit

Permalink
chore: deprecate create_list function
Browse files Browse the repository at this point in the history
  • Loading branch information
Justintime50 committed Jun 14, 2024
1 parent 6e2387c commit f10b7e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
// {
Expand All @@ -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
Expand Down

0 comments on commit f10b7e7

Please sign in to comment.