Documentation
¶
Index ¶
Constants ¶
View Source
const ( BaseAuthorizationURL = "https://login.afosto.io/authorize" BaseApiUrl = "https://api.afosto.io" OauthClientID = "51403354ded11942d7195c66b9e81f71b74f56cd8adc539277823e179da8" RedirectURL = "http://localhost:8888/return" )
Variables ¶
This section is empty.
Functions ¶
func GetAuthorizationURL ¶
func GetAuthorizationURL() string
Types ¶
type AfostoClient ¶
type AfostoClient struct {
// contains filtered or unexported fields
}
func GetClient ¶
func GetClient(tenantID string, accessToken string) *AfostoClient
func (*AfostoClient) Query ¶
func (ac *AfostoClient) Query(query string, parameters interface{}) (*QueryResult, error)
type QueryError ¶
type QueryResult ¶
type QueryResult struct {
Data map[string]interface{} `json:"data"`
Errors []QueryError `json:"errors"`
}
Click to show internal directories.
Click to hide internal directories.