searchApi

package
v0.0.0-...-8256d0a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2019 License: MIT Imports: 5 Imported by: 1

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL