https://github.com/itsubaki/appstore-api
AppStore Review Search API Server with GAE
https://github.com/itsubaki/appstore-api
appstore golang google-appengine
Last synced: 4 months ago
JSON representation
AppStore Review Search API Server with GAE
- Host: GitHub
- URL: https://github.com/itsubaki/appstore-api
- Owner: itsubaki
- Archived: true
- Created: 2017-04-29T15:10:23.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-03-17T11:35:17.000Z (about 5 years ago)
- Last Synced: 2024-11-08T11:51:38.529Z (over 1 year ago)
- Topics: appstore, golang, google-appengine
- Language: Go
- Homepage:
- Size: 50.8 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# appstore-api
- AppStore Review Search API Server with GAE
## Required
- go 1.8
# How to Build
## Install
```console
$ go get github.com/itsubaki/appstore-api
```
## Make GAE Application
```go
package main
import api "github.com/itsubaki/appstore-api"
func init() {
api.Init()
}
```
```yaml
# app.yaml
runtime: go
api_version: go1
handlers:
- url: /.*
script: _go_app
```
```yaml
# cron.yaml
- description: "Capture Review"
url: /review/capture?id=${IOS_APP_ID}&name=${APP_NAME}
schedule: every 1 hours
- description: "Capture Ranking"
url: /ranking/capture
schedule: every 24 hours
```
## Deploy
```console
$ ls
app.yaml cron.yaml main.go
$ gcloud app deploy app.yaml --project ${PROJECT_ID}
$ gcloud app deploy cron.yaml --project ${PROJECT_ID}
```
## API Example
### AppInfo
```console
$ curl "https://${PROJECT_ID}.appspot.com/app"
```
### Ranking
```console
$ curl "https://${PROJECT_ID}.appspot.com/ranking"
$ curl "https://${PROJECT_ID}.appspot.com/ranking/search?id=${IOS_APP_ID}"
$ curl "https://${PROJECT_ID}.appspot.com/ranking/search?query=${IOS_APP_ARTIST}"
```
### Review
```console
$ curl "https://${PROJECT_ID}.appspot.com/review"
$ curl "https://${PROJECT_ID}.appspot.com/review/search?id=${IOS_APP_ID}&query=Rating:5"
```