Documentation ¶
Index ¶
Constants ¶
View Source
const ( APIEndpoint = "https://api2.branch.io/v1/url" EnvBranchKey = "BRANCH_KEY" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a client that allows to interact with Branch.io APIs
func NewClientFromEnvVariables ¶
NewClientFromEnvVariables allows to build a new Client instance from the environment variables
func (*Client) CreateDynamicLink ¶
CreateDynamicLink allows to create a new dynamic link using the given link and request configurations
type Config ¶
type Config struct {
ApiKey string
}
Config contains the data used to build a new Client instance
func NewConfigFromEnvVariables ¶
NewConfigFromEnvVariables allows to build a new Config instance from the environment variables
type CreateLinkConfig ¶
type CreateLinkConfig struct {
*types.LinkConfig
}
func NewCreateLinkConfig ¶
func NewCreateLinkConfig(linkConfig *types.LinkConfig) CreateLinkConfig
func (CreateLinkConfig) MarshalJSON ¶
func (c CreateLinkConfig) MarshalJSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.