Skip to content

hekmon/rebrandly

Repository files navigation

Rebrandly

GoDoc Go Report Card

Rebrandly API golang bindings.

Quickstart

// Init
rebapi := rebrandly.New(apiKey)
// rebapi.SetWorkspace("workspace")
// rebapi.SetUserAgent("whatever")

// Create
link, err := rebapi.LinksCreate(rebrandly.LinkCreationPayload{
    Destination: "https://github.com/hekmon/rebrandly",
    SlashTag:    "rebrandly-golang",
    Title:       "Rebrandly Golang bindings library",
    // Domain:      &domain,
})

Each endpoint supports golang contextes, just suffix Ctx to it: rebapi.LinksCreateCtx(ctx, rebrandly.LinkCreationPayload{...

Enpoints

Basic endpoints

Advanced endpoints

not planned, feel free to fork or PR !