- 授权协议: MIT
- 开发语言: Google Go
- 操作系统: 跨平台
- 软件首页: https://github.com/pkmngo-odi/pogo
- 软件文档: https://github.com/pkmngo-odi/pogo/blob/master/README.md
- 官方下载: https://github.com/pkmngo-odi/pogo/archive/master.zip
软件介绍
pogo 采用开发的Pokémon Go API 工具。
安装:
$ go get -u github.com/pkmngo-odi/pogo
使用:
获取玩家profile(轮廓)
$ pogo -u <username> -p <Secret1234> --lat 0.0 --lon 0.0 player
配置环境变量:
export POGO_ACCOUNT_USERNAME=MyUserAccount export POGO_ACCOUNT_USERNAME=PasswordThatIsSecret $ pogo --lat 0.0 --lon 0.0 player
示例(检索玩家数据,并以JSON数据形式打印出来):
package main
import (
"encoding/json"
"fmt"
"github.com/pkmngo-odi/pogo/api"
"github.com/pkmngo-odi/pogo/auth"
)
func main() {
// Initialize a new authentication provider to retrieve an access token
provider, err := auth.NewProvider("ptc", "MyUser", "Pass1!!")
if err != nil {
fmt.Println(err)
return
}
// Set the coordinates from where you're connecting
location := &api.Location{
Lon: 0.0,
Lat: 0.0,
Alt: 0.0,
}
// Start new session and connect
session := api.NewSession(provider, location, false)
session.Init()
// Start querying the API
player, err := session.GetPlayer()
if err != nil {
fmt.Println(err)
return
}
out, err := json.Marshal(player)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(out))
}
Just My Type
Simon Garfield / Profile Books / 2010-10-21 / GBP 14.99
What's your type? Suddenly everyone's obsessed with fonts. Whether you're enraged by Ikea's Verdanagate, want to know what the Beach Boys have in common with easy Jet or why it's okay to like Comic Sa......一起来看看 《Just My Type》 这本书的介绍吧!
