Rebrandly API golang bindings.
// 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{...
- GET account - binding doc | api doc
- GET links - binding doc | api doc
- GET links/:id - binding doc | api doc
- GET links/count - binding doc | api doc
- GET links/new (god no)
- POST links - binding doc | api doc
- POST links/:id - binding doc | api doc
- DELETE links/:id - binding doc | api doc
- GET domains - binding doc | api doc
- GET domains/:id - binding doc | api doc
- GET domains/count - binding doc | api doc
- GET workspaces - binding doc | api doc
not planned, feel free to fork or PR !