Documentation
¶
Index ¶
Constants ¶
View Source
const (
// BitlyBaseURL is the base URL for the Bitly v4 API
BitlyBaseURL = "https://api-ssl.bitly.com/v4/"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { // Many of Bitly's API methods require an OAuth access token for authentication. // You can generate a generic access token by confirming your password on https://bitly.is/accesstoken. AccessToken string }
Client contains all the functions to communicate between Bitly and your app.
func NewClient ¶
func NewClient() *Client
NewClient returns a new Client pointer that can be chained with builder methods to set multiple configuration values inline without using pointers.
func (*Client) WithAccessToken ¶
WithAccessToken sets a config AccessToken value returning a Client pointer for chaining.
Directories
¶
Path | Synopsis |
---|---|
Package bitlinks contains the methods to interact with the Bitlinks in Bitly Package bitlinks contains the methods to interact with the Bitlinks in Bitly
|
Package bitlinks contains the methods to interact with the Bitlinks in Bitly Package bitlinks contains the methods to interact with the Bitlinks in Bitly |
Package bsds contains the methods to interact with the Branded Short Domains in Bitly Package bsds contains the methods to interact with the Branded Short Domains in Bitly
|
Package bsds contains the methods to interact with the Branded Short Domains in Bitly Package bsds contains the methods to interact with the Branded Short Domains in Bitly |
Package groups contains the methods to interact with the Groups in Bitly Package groups contains the methods to interact with the Groups in Bitly
|
Package groups contains the methods to interact with the Groups in Bitly Package groups contains the methods to interact with the Groups in Bitly |
Package organizations contains the methods to interact with the Organizations in Bitly Package organizations contains the methods to interact with the Organizations in Bitly
|
Package organizations contains the methods to interact with the Organizations in Bitly Package organizations contains the methods to interact with the Organizations in Bitly |
Package users contains the methods to interact with the Users in Bitly Package users contains the methods to interact with the Users in Bitly
|
Package users contains the methods to interact with the Users in Bitly Package users contains the methods to interact with the Users in Bitly |
Click to show internal directories.
Click to hide internal directories.