Documentation ¶
Index ¶
- Constants
- func NewDefaultTwilio() *twilio
- func NewTwilio(sid, token, from string) *twilio
- type Auth0Client
- func (a *Auth0Client) AssignRoles(userid string, roles ...string)
- func (a *Auth0Client) CreateUser(u *User) (err error)
- func (a *Auth0Client) DeleteUser(userid string)
- func (a *Auth0Client) GetRole(role string) *Role
- func (a *Auth0Client) GetRoles(roles ...string) []*Role
- func (a *Auth0Client) GetUserByID(userid string) *User
- func (a *Auth0Client) GetUsers(query string) []*User
- func (a *Auth0Client) GetUsersByRole(role string) []*User
- func (a *Auth0Client) ResetPassword(userid string, passwd string)
- func (a *Auth0Client) SendRequest(req *http.Request) (*http.Response, error)
- type Client
- func (c *Client) CaptureOrder(id string) (*http.Response, error)
- func (c *Client) GetCheckoutOrder(id string) ([]byte, error)
- func (c *Client) GetPaymentCapture(id string) ([]byte, error)
- func (c *Client) IssueRefund(id string, email string) ([]byte, error)
- func (c *Client) SendWithAuth(req *http.Request) (*http.Response, error)
- func (c *Client) VerifyWebHookSig(req *http.Request, webhookID string) bool
- type Env
- type Role
- type TokenResponse
- type User
Constants ¶
View Source
const Audience = "https://tmszero.auth0.com/api/v2/"
View Source
const ClientID = "zKvMNhqDmWPU5zNLXRxOSh5VFN4ZSiZk"
View Source
const ClientSecret = "eLv1jal9u4fIU79auoUwJeu-Hzg6RGDPqIoQ38imKAKHntFKOf2zjoT0CUCfH_L4"
View Source
const LIVE_URI = "https://api.paypal.com"
View Source
const OAuthURL = "https://tmszero.auth0.com/oauth/token"
View Source
const SANDBOX_URI = "https://api.sandbox.paypal.com"
Variables ¶
This section is empty.
Functions ¶
func NewDefaultTwilio ¶
func NewDefaultTwilio() *twilio
Types ¶
type Auth0Client ¶
type Auth0Client struct {
// contains filtered or unexported fields
}
func NewAuth0Client ¶
func NewAuth0Client() *Auth0Client
func (*Auth0Client) AssignRoles ¶
func (a *Auth0Client) AssignRoles(userid string, roles ...string)
func (*Auth0Client) CreateUser ¶
func (a *Auth0Client) CreateUser(u *User) (err error)
func (*Auth0Client) DeleteUser ¶
func (a *Auth0Client) DeleteUser(userid string)
func (*Auth0Client) GetRole ¶
func (a *Auth0Client) GetRole(role string) *Role
func (*Auth0Client) GetRoles ¶
func (a *Auth0Client) GetRoles(roles ...string) []*Role
func (*Auth0Client) GetUserByID ¶
func (a *Auth0Client) GetUserByID(userid string) *User
func (*Auth0Client) GetUsers ¶
func (a *Auth0Client) GetUsers(query string) []*User
func (*Auth0Client) GetUsersByRole ¶
func (a *Auth0Client) GetUsersByRole(role string) []*User
func (*Auth0Client) ResetPassword ¶
func (a *Auth0Client) ResetPassword(userid string, passwd string)
func (*Auth0Client) SendRequest ¶
type Client ¶
type Client struct { Client *http.Client ClientID string Secret string APIBase string Token *TokenResponse // contains filtered or unexported fields }
func (*Client) SendWithAuth ¶
type TokenResponse ¶
type User ¶
type User struct { Email string `json:"email"` UserID string `json:"user_id,omitempty"` Name string `json:"name"` AppMetadata map[string]json.RawMessage `json:"app_metadata"` Password string `json:"password,omitempty"` Connection string `json:"connection,omitempty"` Username string `json:"username"` }
Click to show internal directories.
Click to hide internal directories.