instagramclient

package
v0.0.0-...-44abded Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2022 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

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 NewClient

func NewClient(serverAddr string, apiKey string, timeout time.Duration, callOptions ...grpc.CallOption) (*Client, error)

func (*Client) Callback

func (c *Client) Callback(cb func(*pb.ShritagramResponse) error) error

func (*Client) Close

func (c *Client) Close() error

func (*Client) DeleteWebhook

func (c *Client) DeleteWebhook(apikeys []string) error

func (*Client) ListWebhook

func (c *Client) ListWebhook() ([]*WebhookResponse, error)

func (*Client) Posts

func (c *Client) Posts(shortcodes []string, cachePolicy string, priority string) ([]*pb.ShritagramResponse, error)

func (*Client) Profile

func (c *Client) Profile(usernames []string, cachePolicy string, priority string) ([]*pb.ShritagramResponse, error)

func (*Client) SubscribeWebhook

func (c *Client) SubscribeWebhook(webhookHost string, forceHttps bool) (apikey, secret, host string, err error)

func (*Client) TestWebhook

func (c *Client) TestWebhook() error

func (*Client) TopSearch

func (c *Client) TopSearch(hashtags []string, priority string) ([]*pb.ShritagramResponse, error)

func (*Client) VerifySignature

func (c *Client) VerifySignature(host, hmackey string, bodydigest string, createdTs *int32) (signStr string, signature string, headers string, err error)

func (*Client) Version

func (c *Client) Version() (serverVersion string, isVersionCompatible bool, err error)

type WebhookResponse

type WebhookResponse struct {
	ApiKey         string
	ApiSecret      string
	WebhookAddress string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL