Documentation
¶
Index ¶
- type Curl
- func (a *Curl) Delete(path string, withAuth bool) (responseBody []byte, statusCode int)
- func (a *Curl) Get(path string, withAuth bool) (responseBody []byte, statusCode int)
- func (a *Curl) GetAuthKey() string
- func (a *Curl) Post(path string, body interface{}, authenticated bool) (responseBody []byte, statusCode int)
- func (a *Curl) Put(path string, body interface{}, authenticated bool) (responseBody []byte, statusCode int)
- func (a *Curl) SetAuthKey(authKey string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Curl ¶
type Curl struct {
// contains filtered or unexported fields
}
Curl handles network requests
func (*Curl) GetAuthKey ¶
GetAuthKey returns the authentication key
func (*Curl) Post ¶
func (a *Curl) Post(path string, body interface{}, authenticated bool) (responseBody []byte, statusCode int)
Post does a post request
Click to show internal directories.
Click to hide internal directories.