Documentation ¶
Index ¶
- type Client
- func (c *Client) Callback(cb func(*pb.ShritagramResponse) error) error
- func (c *Client) Close() error
- func (c *Client) DeleteWebhook(apikeys []string) error
- func (c *Client) ListWebhook() ([]*WebhookResponse, error)
- func (c *Client) Posts(shortcodes []string, cachePolicy string, priority string) ([]*pb.ShritagramResponse, error)
- func (c *Client) Profile(usernames []string, cachePolicy string, priority string) ([]*pb.ShritagramResponse, error)
- func (c *Client) SubscribeWebhook(webhookHost string, forceHttps bool) (apikey, secret, host string, err error)
- func (c *Client) TestWebhook() error
- func (c *Client) TopSearch(hashtags []string, priority string) ([]*pb.ShritagramResponse, error)
- func (c *Client) VerifySignature(host, hmackey string, bodydigest string, createdTs *int32) (signStr string, signature string, headers string, err error)
- func (c *Client) Version() (serverVersion string, isVersionCompatible bool, err error)
- type WebhookResponse
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
}
func (*Client) DeleteWebhook ¶
func (*Client) ListWebhook ¶
func (c *Client) ListWebhook() ([]*WebhookResponse, error)
func (*Client) SubscribeWebhook ¶
func (*Client) TestWebhook ¶
func (*Client) VerifySignature ¶
type WebhookResponse ¶
Click to show internal directories.
Click to hide internal directories.