dubgo

package module
v0.23.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2026 License: MIT Imports: 16 Imported by: 1

README

github.com/dubinc/dub-go

Summary

Dub API: Dub is the modern link attribution platform for short links, conversion tracking, and affiliate programs.

Table of Contents

SDK Installation

To add the SDK as a dependency to your project:

go get github.com/dubinc/dub-go

SDK Example Usage

Example 1
package main

import (
	"context"
	dubgo "github.com/dubinc/dub-go"
	"github.com/dubinc/dub-go/models/operations"
	"log"
)

func main() {
	ctx := context.Background()

	s := dubgo.New(
		dubgo.WithSecurity("DUB_API_KEY"),
	)

	res, err := s.Links.Create(ctx, &operations.CreateLinkRequestBody{
		URL:        "https://google.com",
		ExternalID: dubgo.Pointer("123456"),
		TagIds: dubgo.Pointer(operations.CreateTagIdsArrayOfStr(
			[]string{
				"clux0rgak00011...",
			},
		)),
		TestVariants: []operations.TestVariants{
			operations.TestVariants{
				URL:        "https://example.com/variant-1",
				Percentage: 50.0,
			},
			operations.TestVariants{
				URL:        "https://example.com/variant-2",
				Percentage: 50.0,
			},
		},
	})
	if err != nil {
		log.Fatal(err)
	}
	if res != nil {
		// handle response
	}
}

Example 2
package main

import (
	"context"
	dubgo "github.com/dubinc/dub-go"
	"github.com/dubinc/dub-go/models/operations"
	"log"
)

func main() {
	ctx := context.Background()

	s := dubgo.New(
		dubgo.WithSecurity("DUB_API_KEY"),
	)

	res, err := s.Links.Upsert(ctx, &operations.UpsertLinkRequestBody{
		URL:        "https://google.com",
		ExternalID: dubgo.Pointer("123456"),
		TagIds: dubgo.Pointer(operations.CreateUpsertLinkTagIdsArrayOfStr(
			[]string{
				"clux0rgak00011...",
			},
		)),
		TestVariants: []operations.UpsertLinkTestVariants{
			operations.UpsertLinkTestVariants{
				URL:        "https://example.com/variant-1",
				Percentage: 50.0,
			},
			operations.UpsertLinkTestVariants{
				URL:        "https://example.com/variant-2",
				Percentage: 50.0,
			},
		},
	})
	if err != nil {
		log.Fatal(err)
	}
	if res != nil {
		// handle response
	}
}

Available Resources and Operations

Available methods
Analytics
  • Retrieve - Retrieve analytics for a link, a domain, or the authenticated workspace.
Bounties
Commissions
Customers
  • List - List all customers
  • Get - Retrieve a customer
  • Delete - Delete a customer
  • Update - Update a customer
Domains
EmbedTokens
Events
  • List - List all events
Folders
PartnerApplications
  • List - List all pending partner applications
  • Approve - Approve a partner application
  • Reject - Reject a partner application
Partners
Payouts
  • List - List all payouts
QRCodes
  • Get - Retrieve a QR code
Tags
Track
  • Lead - Track a lead
  • Sale - Track a sale

Error Handling

Handling errors in this SDK should largely match your expectations. All operations return a response object or an error, they will never return both.

By Default, an API error will return sdkerrors.SDKError. When custom error responses are specified for an operation, the SDK may also return their associated error. You can refer to respective Errors tables in SDK docs for more details on possible error types for each operation.

For example, the List function may return the following errors:

Error Type Status Code Content Type
sdkerrors.BadRequest 400 application/json
sdkerrors.Unauthorized 401 application/json
sdkerrors.Forbidden 403 application/json
sdkerrors.NotFound 404 application/json
sdkerrors.Conflict 409 application/json
sdkerrors.InviteExpired 410 application/json
sdkerrors.UnprocessableEntity 422 application/json
sdkerrors.RateLimitExceeded 429 application/json
sdkerrors.InternalServerError 500 application/json
sdkerrors.SDKError 4XX, 5XX */*
Example
package main

import (
	"context"
	"errors"
	dubgo "github.com/dubinc/dub-go"
	"github.com/dubinc/dub-go/models/operations"
	"github.com/dubinc/dub-go/models/sdkerrors"
	"log"
)

func main() {
	ctx := context.Background()

	s := dubgo.New(
		dubgo.WithSecurity("DUB_API_KEY"),
	)

	res, err := s.Links.List(ctx, operations.GetLinksRequest{
		EndingBefore:  dubgo.Pointer("link_1KAP4CDPBSVMMBMH9XX3YZZ0Z..."),
		StartingAfter: dubgo.Pointer("link_1KAP4CDPBSVMMBMH9XX3YZZ0Z..."),
		Page:          dubgo.Pointer[float64](1.0),
		PageSize:      dubgo.Pointer[float64](50.0),
	})
	if err != nil {

		var e *sdkerrors.BadRequest
		if errors.As(err, &e) {
			// handle error
			log.Fatal(e.Error())
		}

		var e *sdkerrors.Unauthorized
		if errors.As(err, &e) {
			// handle error
			log.Fatal(e.Error())
		}

		var e *sdkerrors.Forbidden
		if errors.As(err, &e) {
			// handle error
			log.Fatal(e.Error())
		}

		var e *sdkerrors.NotFound
		if errors.As(err, &e) {
			// handle error
			log.Fatal(e.Error())
		}

		var e *sdkerrors.Conflict
		if errors.As(err, &e) {
			// handle error
			log.Fatal(e.Error())
		}

		var e *sdkerrors.InviteExpired
		if errors.As(err, &e) {
			// handle error
			log.Fatal(e.Error())
		}

		var e *sdkerrors.UnprocessableEntity
		if errors.As(err, &e) {
			// handle error
			log.Fatal(e.Error())
		}

		var e *sdkerrors.RateLimitExceeded
		if errors.As(err, &e) {
			// handle error
			log.Fatal(e.Error())
		}

		var e *sdkerrors.InternalServerError
		if errors.As(err, &e) {
			// handle error
			log.Fatal(e.Error())
		}

		var e *sdkerrors.SDKError
		if errors.As(err, &e) {
			// handle error
			log.Fatal(e.Error())
		}
	}
}

Server Selection

Override Server URL Per-Client

The default server can be overridden globally using the WithServerURL(serverURL string) option when initializing the SDK client instance. For example:

package main

import (
	"context"
	dubgo "github.com/dubinc/dub-go"
	"github.com/dubinc/dub-go/models/operations"
	"log"
)

func main() {
	ctx := context.Background()

	s := dubgo.New(
		dubgo.WithServerURL("https://api.dub.co"),
		dubgo.WithSecurity("DUB_API_KEY"),
	)

	res, err := s.Links.List(ctx, operations.GetLinksRequest{
		EndingBefore:  dubgo.Pointer("link_1KAP4CDPBSVMMBMH9XX3YZZ0Z..."),
		StartingAfter: dubgo.Pointer("link_1KAP4CDPBSVMMBMH9XX3YZZ0Z..."),
		Page:          dubgo.Pointer[float64](1.0),
		PageSize:      dubgo.Pointer[float64](50.0),
	})
	if err != nil {
		log.Fatal(err)
	}
	if res != nil {
		for {
			// handle items

			res, err = res.Next()

			if err != nil {
				// handle error
			}

			if res == nil {
				break
			}
		}
	}
}

Custom HTTP Client

The Go SDK makes API calls that wrap an internal HTTP client. The requirements for the HTTP client are very simple. It must match this interface:

type HTTPClient interface {
	Do(req *http.Request) (*http.Response, error)
}

The built-in net/http client satisfies this interface and a default client based on the built-in is provided by default. To replace this default with a client of your own, you can implement this interface yourself or provide your own client configured as desired. Here's a simple example, which adds a client with a 30 second timeout.

import (
	"net/http"
	"time"

	"github.com/dubinc/dub-go"
)

var (
	httpClient = &http.Client{Timeout: 30 * time.Second}
	sdkClient  = dubgo.New(dubgo.WithClient(httpClient))
)

This can be a convenient way to configure timeouts, cookies, proxies, custom headers, and other low-level configuration.

Authentication

Per-Client Security Schemes

This SDK supports the following security scheme globally:

Name Type Scheme
Token http HTTP Bearer

You can configure it using the WithSecurity option when initializing the SDK client instance. For example:

package main

import (
	"context"
	dubgo "github.com/dubinc/dub-go"
	"github.com/dubinc/dub-go/models/operations"
	"log"
)

func main() {
	ctx := context.Background()

	s := dubgo.New(
		dubgo.WithSecurity("DUB_API_KEY"),
	)

	res, err := s.Links.List(ctx, operations.GetLinksRequest{
		EndingBefore:  dubgo.Pointer("link_1KAP4CDPBSVMMBMH9XX3YZZ0Z..."),
		StartingAfter: dubgo.Pointer("link_1KAP4CDPBSVMMBMH9XX3YZZ0Z..."),
		Page:          dubgo.Pointer[float64](1.0),
		PageSize:      dubgo.Pointer[float64](50.0),
	})
	if err != nil {
		log.Fatal(err)
	}
	if res != nil {
		for {
			// handle items

			res, err = res.Next()

			if err != nil {
				// handle error
			}

			if res == nil {
				break
			}
		}
	}
}

Retries

Some of the endpoints in this SDK support retries. If you use the SDK without any configuration, it will fall back to the default retry strategy provided by the API. However, the default retry strategy can be overridden on a per-operation basis, or across the entire SDK.

To change the default retry strategy for a single API call, simply provide a retry.Config object to the call by using the WithRetries option:

package main

import (
	"context"
	dubgo "github.com/dubinc/dub-go"
	"github.com/dubinc/dub-go/models/operations"
	"github.com/dubinc/dub-go/retry"
	"log"
	"models/operations"
)

func main() {
	ctx := context.Background()

	s := dubgo.New(
		dubgo.WithSecurity("DUB_API_KEY"),
	)

	res, err := s.Links.List(ctx, operations.GetLinksRequest{
		EndingBefore:  dubgo.Pointer("link_1KAP4CDPBSVMMBMH9XX3YZZ0Z..."),
		StartingAfter: dubgo.Pointer("link_1KAP4CDPBSVMMBMH9XX3YZZ0Z..."),
		Page:          dubgo.Pointer[float64](1.0),
		PageSize:      dubgo.Pointer[float64](50.0),
	}, operations.WithRetries(
		retry.Config{
			Strategy: "backoff",
			Backoff: &retry.BackoffStrategy{
				InitialInterval: 1,
				MaxInterval:     50,
				Exponent:        1.1,
				MaxElapsedTime:  100,
			},
			RetryConnectionErrors: false,
		}))
	if err != nil {
		log.Fatal(err)
	}
	if res != nil {
		for {
			// handle items

			res, err = res.Next()

			if err != nil {
				// handle error
			}

			if res == nil {
				break
			}
		}
	}
}

If you'd like to override the default retry strategy for all operations that support retries, you can use the WithRetryConfig option at SDK initialization:

package main

import (
	"context"
	dubgo "github.com/dubinc/dub-go"
	"github.com/dubinc/dub-go/models/operations"
	"github.com/dubinc/dub-go/retry"
	"log"
)

func main() {
	ctx := context.Background()

	s := dubgo.New(
		dubgo.WithRetryConfig(
			retry.Config{
				Strategy: "backoff",
				Backoff: &retry.BackoffStrategy{
					InitialInterval: 1,
					MaxInterval:     50,
					Exponent:        1.1,
					MaxElapsedTime:  100,
				},
				RetryConnectionErrors: false,
			}),
		dubgo.WithSecurity("DUB_API_KEY"),
	)

	res, err := s.Links.List(ctx, operations.GetLinksRequest{
		EndingBefore:  dubgo.Pointer("link_1KAP4CDPBSVMMBMH9XX3YZZ0Z..."),
		StartingAfter: dubgo.Pointer("link_1KAP4CDPBSVMMBMH9XX3YZZ0Z..."),
		Page:          dubgo.Pointer[float64](1.0),
		PageSize:      dubgo.Pointer[float64](50.0),
	})
	if err != nil {
		log.Fatal(err)
	}
	if res != nil {
		for {
			// handle items

			res, err = res.Next()

			if err != nil {
				// handle error
			}

			if res == nil {
				break
			}
		}
	}
}

Pagination

Some of the endpoints in this SDK support pagination. To use pagination, you make your SDK calls as usual, but the returned response object will have a Next method that can be called to pull down the next group of results. If the return value of Next is nil, then there are no more pages to be fetched.

Here's an example of one such pagination call:

package main

import (
	"context"
	dubgo "github.com/dubinc/dub-go"
	"github.com/dubinc/dub-go/models/operations"
	"log"
)

func main() {
	ctx := context.Background()

	s := dubgo.New(
		dubgo.WithSecurity("DUB_API_KEY"),
	)

	res, err := s.Links.List(ctx, operations.GetLinksRequest{
		EndingBefore:  dubgo.Pointer("link_1KAP4CDPBSVMMBMH9XX3YZZ0Z..."),
		StartingAfter: dubgo.Pointer("link_1KAP4CDPBSVMMBMH9XX3YZZ0Z..."),
		Page:          dubgo.Pointer[float64](1.0),
		PageSize:      dubgo.Pointer[float64](50.0),
	})
	if err != nil {
		log.Fatal(err)
	}
	if res != nil {
		for {
			// handle items

			res, err = res.Next()

			if err != nil {
				// handle error
			}

			if res == nil {
				break
			}
		}
	}
}

Development

Contributions

While we value open-source contributions to this SDK, this library is generated programmatically. Feel free to open a PR or a Github issue as a proof of concept and we'll do our best to include it in a future release!

SDK Created by Speakeasy

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ServerList = []string{

	"https://api.dub.co",
}

ServerList contains the list of servers available to the SDK

Functions

func Bool

func Bool(b bool) *bool

Bool provides a helper function to return a pointer to a bool

func Float32

func Float32(f float32) *float32

Float32 provides a helper function to return a pointer to a float32

func Float64

func Float64(f float64) *float64

Float64 provides a helper function to return a pointer to a float64

func Int

func Int(i int) *int

Int provides a helper function to return a pointer to an int

func Int64

func Int64(i int64) *int64

Int64 provides a helper function to return a pointer to an int64

func Pointer added in v0.9.1

func Pointer[T any](v T) *T

Pointer provides a helper function to return a pointer to a type

func String

func String(s string) *string

String provides a helper function to return a pointer to a string

Types

type Analytics

type Analytics struct {
	// contains filtered or unexported fields
}

func (*Analytics) Retrieve

Retrieve analytics for a link, a domain, or the authenticated workspace. Retrieve analytics for a link, a domain, or the authenticated workspace. The response type depends on the `event` and `type` query parameters.

type Bounties added in v0.23.1

type Bounties struct {
	// contains filtered or unexported fields
}

func (*Bounties) ApproveSubmission added in v0.23.1

ApproveSubmission - Approve a bounty submission Approve a bounty submission. Optionally specify a custom reward amount.

func (*Bounties) ListSubmissions added in v0.23.1

ListSubmissions - List bounty submissions List all submissions for a specific bounty in your partner program.

func (*Bounties) RejectSubmission added in v0.23.1

RejectSubmission - Reject a bounty submission Reject a bounty submission with a specified reason and optional note.

type Commissions added in v0.14.31

type Commissions struct {
	// contains filtered or unexported fields
}

func (*Commissions) Create added in v0.23.10

Create commission Create one or more commissions (custom, lead or sale) for a partner. Commission creation is processed asynchronously. Use the List Commissions endpoint or webhooks to be notified when the commission is created.

func (*Commissions) List added in v0.14.31

List all commissions Retrieve a paginated list of commissions for your partner program.

func (*Commissions) Update added in v0.14.31

Update a commission Update an existing commission amount. This is useful for handling refunds (partial or full) or fraudulent sales.

func (*Commissions) UpdateMany added in v0.23.8

UpdateMany - Bulk update commissions Bulk update up to 100 commissions with the same status.

type Customers added in v0.11.1

type Customers struct {
	// contains filtered or unexported fields
}

func (*Customers) Delete added in v0.11.1

Delete a customer Delete a customer from a workspace.

func (*Customers) Get added in v0.11.1

Get - Retrieve a customer Retrieve a customer by ID for the authenticated workspace. To retrieve a customer by external ID, prefix the ID with `ext_`.

func (*Customers) List added in v0.11.1

List all customers Retrieve a paginated list of customers for the authenticated workspace.

func (*Customers) Update added in v0.11.1

Update a customer Update a customer for the authenticated workspace.

type Domains

type Domains struct {
	// contains filtered or unexported fields
}

func (*Domains) CheckStatus added in v0.15.1

CheckStatus - Check the availability of one or more domains Check if a domain name is available for purchase. You can check multiple domains at once.

func (*Domains) Create added in v0.1.14

Create a domain Create a domain for the authenticated workspace.

func (*Domains) Delete

Delete a domain Delete a domain from a workspace. It cannot be undone. This will also delete all the links associated with the domain.

func (*Domains) List

List all domains Retrieve a paginated list of domains for the authenticated workspace.

func (*Domains) Register added in v0.15.1

Register a domain Register a domain for the authenticated workspace. Only available for Enterprise Plans.

func (*Domains) Update

Update a domain Update a domain for the authenticated workspace.

type Dub

type Dub struct {
	SDKVersion          string
	Links               *Links
	Analytics           *Analytics
	Events              *Events
	Tags                *Tags
	Folders             *Folders
	Domains             *Domains
	Track               *Track
	Customers           *Customers
	Partners            *Partners
	PartnerApplications *PartnerApplications
	Commissions         *Commissions
	Payouts             *Payouts
	EmbedTokens         *EmbedTokens
	QRCodes             *QRCodes
	Bounties            *Bounties
	// contains filtered or unexported fields
}

Dub API: Dub is the modern link attribution platform for short links, conversion tracking, and affiliate programs.

func New

func New(opts ...SDKOption) *Dub

New creates a new instance of the SDK with the provided options

type EmbedTokens added in v0.12.1

type EmbedTokens struct {
	// contains filtered or unexported fields
}

func (*EmbedTokens) Referrals added in v0.14.13

Referrals - Create a referrals embed token Create a referrals embed token for the given partner/tenant. The endpoint first attempts to locate an existing enrollment using the provided tenantId. If no enrollment is found, it resolves the partner by email and creates a new enrollment as needed. This results in an upsert-style flow that guarantees a valid enrollment and returns a usable embed token.

type Events added in v0.8.0

type Events struct {
	// contains filtered or unexported fields
}

func (*Events) List added in v0.8.0

List all events Retrieve a paginated list of events for the authenticated workspace.

type Folders added in v0.14.1

type Folders struct {
	// contains filtered or unexported fields
}

func (*Folders) Create added in v0.14.1

Create a folder Create a folder for the authenticated workspace.

func (*Folders) Delete added in v0.14.1

Delete a folder Delete a folder from the workspace. All existing links will still work, but they will no longer be associated with this folder.

func (*Folders) List added in v0.14.1

List all folders Retrieve a paginated list of folders for the authenticated workspace.

func (*Folders) Update added in v0.14.1

Update a folder Update a folder in the workspace.

type HTTPClient

type HTTPClient interface {
	Do(req *http.Request) (*http.Response, error)
}

HTTPClient provides an interface for supplying the SDK with a custom HTTP client

type Links struct {
	// contains filtered or unexported fields
}

func (*Links) Count

func (s *Links) Count(ctx context.Context, request operations.GetLinksCountRequest, opts ...operations.Option) (*float64, error)

Count - Retrieve links count Retrieve the number of links for the authenticated workspace.

func (*Links) Create

Create a link Create a link for the authenticated workspace.

func (*Links) CreateMany

func (s *Links) CreateMany(ctx context.Context, request []operations.RequestBody, opts ...operations.Option) ([]operations.ResponseBody, error)

CreateMany - Bulk create links Bulk create up to 100 links for the authenticated workspace.

func (*Links) Delete

func (s *Links) Delete(ctx context.Context, linkID string, opts ...operations.Option) (*operations.DeleteLinkResponseBody, error)

Delete a link Delete a link for the authenticated workspace.

func (*Links) DeleteMany added in v0.8.4

DeleteMany - Bulk delete links Bulk delete up to 100 links for the authenticated workspace.

func (*Links) Get

Get - Retrieve a link Retrieve the info for a link.

func (*Links) List

List all links Retrieve a paginated list of links for the authenticated workspace.

func (*Links) Update

func (s *Links) Update(ctx context.Context, linkID string, requestBody *operations.UpdateLinkRequestBody, opts ...operations.Option) (*components.LinkSchema, error)

Update a link Update a link for the authenticated workspace. If there's no change, returns it as it is.

func (*Links) UpdateMany added in v0.1.14

UpdateMany - Bulk update links Bulk update up to 100 links with the same data for the authenticated workspace.

func (*Links) Upsert

Upsert a link Upsert a link for the authenticated workspace by its URL. If a link with the same URL already exists, return it (or update it if there are any changes). Otherwise, a new link will be created.

type PartnerApplications added in v0.23.9

type PartnerApplications struct {
	// contains filtered or unexported fields
}

func (*PartnerApplications) Approve added in v0.23.9

Approve a partner application Approve a pending partner application to your program. The partner will be enrolled in the specified group and notified of the approval.

func (*PartnerApplications) List added in v0.23.9

List all pending partner applications Retrieve a paginated list of pending applications for your partner program.

func (*PartnerApplications) Reject added in v0.23.9

Reject a partner application Reject a pending partner application to your program. The partner will be notified via email that their application was not approved.

type Partners added in v0.13.11

type Partners struct {
	// contains filtered or unexported fields
}

func (*Partners) Analytics added in v0.14.1

Analytics - Retrieve analytics for a partner Retrieve analytics for a partner within a program. The response type vary based on the `groupBy` query parameter.

func (*Partners) Ban added in v0.22.0

Ban a partner Ban a partner from your program. This will disable all links and mark all commissions as canceled.

func (*Partners) Create added in v0.13.11

Create or update a partner Creates or updates a partner record (upsert behavior). If a partner with the same email already exists, their program enrollment will be updated with the provided tenantId. If no existing partner is found, a new partner will be created using the supplied information.

CreateLink - Create a link for a partner Create a link for a partner that is enrolled in your program.

func (*Partners) Deactivate added in v0.23.2

Deactivate a partner This will deactivate the partner from your program and disable all their active links. Their commissions and payouts will remain intact. You can reactivate them later if needed.

func (*Partners) List added in v0.16.9

List all partners List all partners for a partner program.

RetrieveLinks - Retrieve a partner's links. Retrieve a partner's links by their partner ID or tenant ID.

UpsertLink - Upsert a link for a partner Upsert a link for a partner that is enrolled in your program. If a link with the same URL already exists, return it (or update it if there are any changes). Otherwise, a new link will be created.

type Payouts added in v0.23.3

type Payouts struct {
	// contains filtered or unexported fields
}

func (*Payouts) List added in v0.23.3

List all payouts Retrieve a paginated list of payouts for your partner program.

type QRCodes

type QRCodes struct {
	// contains filtered or unexported fields
}

func (*QRCodes) Get

func (s *QRCodes) Get(ctx context.Context, request operations.GetQRCodeRequest, opts ...operations.Option) (*string, error)

Get - Retrieve a QR code Retrieve a QR code for a link.

type SDKOption

type SDKOption func(*Dub)

func WithClient

func WithClient(client HTTPClient) SDKOption

WithClient allows the overriding of the default HTTP client used by the SDK

func WithRetryConfig

func WithRetryConfig(retryConfig retry.Config) SDKOption

func WithSecurity

func WithSecurity(token string) SDKOption

WithSecurity configures the SDK to use the provided security details

func WithSecuritySource

func WithSecuritySource(security func(context.Context) (components.Security, error)) SDKOption

WithSecuritySource configures the SDK to invoke the Security Source function on each method call to determine authentication

func WithServerIndex

func WithServerIndex(serverIndex int) SDKOption

WithServerIndex allows the overriding of the default server by index

func WithServerURL

func WithServerURL(serverURL string) SDKOption

WithServerURL allows providing an alternative server URL

func WithTemplatedServerURL

func WithTemplatedServerURL(serverURL string, params map[string]string) SDKOption

WithTemplatedServerURL allows the overriding of the default server URL with a templated URL populated with the provided parameters

func WithTimeout added in v0.4.0

func WithTimeout(timeout time.Duration) SDKOption

WithTimeout Optional request timeout applied to each operation

type Tags

type Tags struct {
	// contains filtered or unexported fields
}

func (*Tags) Create

Create a tag Create a tag for the authenticated workspace.

func (*Tags) Delete added in v0.8.6

Delete a tag Delete a tag from the workspace. All existing links will still work, but they will no longer be associated with this tag.

func (*Tags) List

List all tags Retrieve a paginated list of tags for the authenticated workspace.

func (*Tags) Update added in v0.1.14

Update a tag Update a tag in the workspace.

type Track

type Track struct {
	// contains filtered or unexported fields
}

func (*Track) Lead

Lead - Track a lead Track a lead for a short link.

func (*Track) Sale

Sale - Track a sale Track a sale for a short link.

Directories

Path Synopsis
internal
models

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL