Documentation ¶
Index ¶
- func CreateShikimoriByToken(conf *oauth2.Config, tok *oauth2.Token, appName, version string) *goshikimori.Shikimori
- func GetAppName() string
- func GetConfig() (*oauth2.Config, error)
- func GetShikimori(version string) (*goshikimori.Shikimori, error)
- func GetToken(conf *oauth2.Config) (*oauth2.Token, error)
- func SaveToken(shiki *goshikimori.Shikimori)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateShikimoriByToken ¶
func CreateShikimoriByToken(conf *oauth2.Config, tok *oauth2.Token, appName, version string) *goshikimori.Shikimori
CreateShikimoriByToken returns Shikimori based on http.DefaultClient
func GetShikimori ¶
func GetShikimori(version string) (*goshikimori.Shikimori, error)
GetShikimori returns goshikimori.Shikimori by config and token from files (using loadOAuth). If loadOAuth returns error, try create config/token from env-vars
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.