Documentation
¶
Index ¶
- type APIManager
- type Account
- type BioLink
- type IAPIManager
- type IProvider
- type NewProviderFunc
- type Post
- type RapidAPIInstagram28
- func (i *RapidAPIInstagram28) APIHost() string
- func (i *RapidAPIInstagram28) APIKey() string
- func (i *RapidAPIInstagram28) GetAccount(account string) (*Account, error)
- func (i *RapidAPIInstagram28) GetFeed(accountID int64, nextPageToken string) ([]*Post, string, error)
- func (i *RapidAPIInstagram28) GetName() string
- func (i *RapidAPIInstagram28) HTTPClient() *http.Client
- type RapidAPIInstagram85
- func (i *RapidAPIInstagram85) APIHost() string
- func (i *RapidAPIInstagram85) APIKey() string
- func (i *RapidAPIInstagram85) GetAccount(account string) (*Account, error)
- func (i *RapidAPIInstagram85) GetFeed(accountID int64, nextPageToken string) ([]*Post, string, error)
- func (i *RapidAPIInstagram85) GetName() string
- func (i *RapidAPIInstagram85) HTTPClient() *http.Client
- type RapidAPIInstagram85Post
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIManager ¶
func (*APIManager) GetProvider ¶
func (a *APIManager) GetProvider(name string) IProvider
func (*APIManager) GetRandomProvider ¶
func (a *APIManager) GetRandomProvider() IProvider
type IAPIManager ¶ added in v1.0.72
func NewAPIManager ¶
func NewAPIManager(configService config.IConfig, newProviderFunctions ...NewProviderFunc) (IAPIManager, error)
type IProvider ¶
type IProvider interface { GetName() string GetAccount(account string) (*Account, error) GetFeed(accountID int64, nextPageToken string) ([]*Post, string, error) }
func NewRapidAPIInstagram28 ¶ added in v1.1.22
type RapidAPIInstagram28 ¶ added in v1.1.22
type RapidAPIInstagram28 struct {
// contains filtered or unexported fields
}
RapidAPIInstagram28 https://rapidapi.com/yuananf/api/instagram28/
func (*RapidAPIInstagram28) APIHost ¶ added in v1.1.22
func (i *RapidAPIInstagram28) APIHost() string
func (*RapidAPIInstagram28) APIKey ¶ added in v1.1.22
func (i *RapidAPIInstagram28) APIKey() string
func (*RapidAPIInstagram28) GetAccount ¶ added in v1.1.22
func (i *RapidAPIInstagram28) GetAccount(account string) (*Account, error)
func (*RapidAPIInstagram28) GetName ¶ added in v1.1.22
func (i *RapidAPIInstagram28) GetName() string
func (*RapidAPIInstagram28) HTTPClient ¶ added in v1.1.22
func (i *RapidAPIInstagram28) HTTPClient() *http.Client
type RapidAPIInstagram85 ¶ added in v1.1.22
type RapidAPIInstagram85 struct {
// contains filtered or unexported fields
}
RapidAPIInstagram85 https://rapidapi.com/premium-apis-premium-apis-default/api/instagram85/
func (*RapidAPIInstagram85) APIHost ¶ added in v1.1.22
func (i *RapidAPIInstagram85) APIHost() string
func (*RapidAPIInstagram85) APIKey ¶ added in v1.1.22
func (i *RapidAPIInstagram85) APIKey() string
func (*RapidAPIInstagram85) GetAccount ¶ added in v1.1.22
func (i *RapidAPIInstagram85) GetAccount(account string) (*Account, error)
func (*RapidAPIInstagram85) GetName ¶ added in v1.1.22
func (i *RapidAPIInstagram85) GetName() string
func (*RapidAPIInstagram85) HTTPClient ¶ added in v1.1.22
func (i *RapidAPIInstagram85) HTTPClient() *http.Client
type RapidAPIInstagram85Post ¶ added in v1.1.22
type RapidAPIInstagram85Post 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 []RapidAPIInstagram85Post `json:"sidecar"` }
func (RapidAPIInstagram85Post) ToPost ¶ added in v1.1.22
func (p RapidAPIInstagram85Post) ToPost() *Post
Click to show internal directories.
Click to hide internal directories.