Documentation
¶
Index ¶
- type APIManager
- type Account
- type IProvider
- type NewProviderFunc
- type Post
- type RapidAPIInstagramSimple
- func (i *RapidAPIInstagramSimple) APIHost() string
- func (i *RapidAPIInstagramSimple) APIKey() string
- func (i *RapidAPIInstagramSimple) GetAccount(account string) (*Account, error)
- func (i *RapidAPIInstagramSimple) GetFeed(accountID int64, nextPageToken string) ([]*Post, string, error)
- func (i *RapidAPIInstagramSimple) GetName() string
- func (i *RapidAPIInstagramSimple) HTTPClient() *http.Client
- type RapidAPIInstagramSimplePost
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIManager ¶
func NewAPIManager ¶
func NewAPIManager(configService config.IConfig, newProviderFunctions ...NewProviderFunc) (*APIManager, error)
func (*APIManager) GetProvider ¶
func (a *APIManager) GetProvider() IProvider
func (*APIManager) GetRandomProvider ¶
func (a *APIManager) GetRandomProvider() IProvider
type IProvider ¶
type RapidAPIInstagramSimple ¶
type RapidAPIInstagramSimple struct {
// contains filtered or unexported fields
}
RapidAPIInstagramSimple https://rapidapi.com/premium-apis-premium-apis-default/api/instagram85/
func (*RapidAPIInstagramSimple) APIHost ¶
func (i *RapidAPIInstagramSimple) APIHost() string
func (*RapidAPIInstagramSimple) APIKey ¶
func (i *RapidAPIInstagramSimple) APIKey() string
func (*RapidAPIInstagramSimple) GetAccount ¶
func (i *RapidAPIInstagramSimple) GetAccount(account string) (*Account, error)
func (*RapidAPIInstagramSimple) GetName ¶
func (i *RapidAPIInstagramSimple) GetName() string
func (*RapidAPIInstagramSimple) HTTPClient ¶
func (i *RapidAPIInstagramSimple) HTTPClient() *http.Client
type RapidAPIInstagramSimplePost ¶
type RapidAPIInstagramSimplePost struct { ID string `json:"id"` CreatedTime struct { Unix int64 `json:"unix"` } `json:"created_time"` Caption string `json:"caption"` Type string `json:"type"` Images struct { Original struct { High string `json:"high"` } `json:"original"` } `json:"images"` Videos struct { Standard string `json:"standard"` } `json:"videos"` Sidecar []RapidAPIInstagramSimplePost `json:"sidecar"` }
func (RapidAPIInstagramSimplePost) ToPost ¶
func (p RapidAPIInstagramSimplePost) ToPost() *Post
Click to show internal directories.
Click to hide internal directories.