Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Card ¶ added in v0.2.0
type Card struct { Code string `json:"code"` Name string `json:"name"` Rarity string `json:"rarity"` Stars string `json:"stars"` Type string `json:"type"` Category string `json:"category"` Brand string `json:"brand"` DressAppeal string `json:"dress_appeal"` AppealPoint int `json:"appeal_point"` Owner Idol `json:"-"` OwnerID string `json:"owner_id"` Owned bool `json:"owned"` SeriesID int `json:"series_id"` URL string `json:"url"` ImageURL string `json:"image_url"` // contains filtered or unexported fields }
Card represents a card. Any card would be fetched with user id, so Card has user's ID as "OwnerID".
type DigitalBinder ¶ added in v0.2.0
type DigitalBinder struct { SeriesID int `json:"series_id"` SeriesName string `json:"series_name"` Cards []Card `json:"cards"` // Owner Idol `json:"-"` OwnerID string `json:"owner_id"` URL string `json:"url"` DataGetDate time.Time `json:"data_get_date"` }
DigitalBinder holds acquisition status of series of cards. Series means binder's season.
func FetchDigitalBinder ¶ added in v0.2.0
func FetchDigitalBinder(ownerID string, seriesID int) (DigitalBinder, error)
FetchDigitalBinder returns parsed DigitalBinder data. This data will be fetched from http://mypage.aikatsu.com/mypages/digital_binders/<ownerID>/<seriesID> .
Note: Card's detail won't be fetchedf, Because each of them requires one HTTP request per card. Use Card.Detail() for more information.
type Idol ¶
type Idol struct { ID string `json:"id"` URL string `json:"url"` // Basic Info Name string `json:"name"` AvatarURL string `json:"avatar_url"` LastPlayLocation string `json:"last_play_location"` // Levels for each type CuteLevel int `json:"cute_level"` CoolLevel int `json:"cool_level"` SexyLevel int `json:"sexy_level"` PopLevel int `json:"pop_level"` // Misc IdolRank int `json:"idol_rank"` IdolRankLabel string `json:"idol_rank_level"` FanCount int `json:"fan_count"` PlayedCardsCount int `json:"played_cards_count"` // DataGetDate is not , but upstream api called time DataGetDate time.Time `json:"data_get_date"` }
Idol hold information for Aikatsu! idol.
Click to show internal directories.
Click to hide internal directories.