Documentation ¶
Index ¶
Constants ¶
View Source
const APPLE_LOOKUP_API string = "https://itunes.apple.com/lookup?"
View Source
const APPLE_SEARCH_API string = "https://itunes.apple.com/search?"
Variables ¶
This section is empty.
Functions ¶
func LookupApp ¶
func LookupApp(resChan chan []AppleSearchAppInfo, id string)
func SearchApp ¶
func SearchApp(resChan chan []AppleSearchAppInfo, criteria string)
Types ¶
type AppleSearchAppInfo ¶
type AppleSearchAppInfo struct { IosId int64 `json:"trackId"` Name string `json:"trackName"` Icon string `json:"artworkUrl100"` Banner []string `json:"screenshotUrls"` IosScore float32 `json:"averageUserRating"` IosFileSize string `json:"fileSizeBytes"` ContentRating string `json:"contentAdvisoryRating"` IosMinOs string `json:"minimumOsVersion"` Publisher string `json:"sellerName"` IosPrice float32 `json:"price"` Desc string `json:"description"` IosBundleName string `json:"bundleId"` Category string `json:"primaryGenreName"` ReleaseDate string `json:"releaseDate"` IosUrl string `json:"trackViewUrl"` }
This type is entry representation of apple api result
type AppleSearchResponse ¶
type AppleSearchResponse struct { ResultCount int `json:"resultCount"` Results []AppleSearchAppInfo `json:"results"` }
This type is main representation of apple api result
Click to show internal directories.
Click to hide internal directories.