Documentation
¶
Overview ¶
Package http provides HTTP client functionality.
Index ¶
- type Client
- func (c *Client) APIVersion() string
- func (c *Client) BaseURL() string
- func (c *Client) Delete(ctx context.Context, path string) ([]byte, error)
- func (c *Client) Get(ctx context.Context, path string) ([]byte, error)
- func (c *Client) Patch(ctx context.Context, path string, body interface{}) ([]byte, error)
- func (c *Client) Post(ctx context.Context, path string, body interface{}) ([]byte, error)
- func (c *Client) Put(ctx context.Context, path string, body interface{}) ([]byte, error)
- func (c *Client) SetAccessToken(token string)
- func (c *Client) SetBaseURL(url string)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides HTTP operations for Salesforce API.
func (*Client) APIVersion ¶
APIVersion returns the API version.
func (*Client) SetAccessToken ¶
SetAccessToken sets the access token.
Click to show internal directories.
Click to hide internal directories.