Api client for VKontakte with login/pass authorization (hack) on Go (golang).
###Plus: masking client_id to the iPhone, Android, iPad, Windows Phone clients.
go (golang) api client for vk.com
###Get
go get github.com/yanple/vk_api
// and dependence
go get github.com/PuerkitoBio/goquery
###Import
@import "github.com/yanple/vk_api"
##How to use
###Login/pass auth
var api vk_api.Api
err := api.LoginAuth(
"email/phone",
"pass",
"3087104",
"wall,offline",
)
if err != nil {
panic(err)
}
###OAuth (click "allow" on special vk page)
See martini based example
###Make query to API
params := make(map[string]string)
params["domain"] = "yanple"
params["count"] = "1"
strResp, err := api.Request("wall.get", params)
if err != nil {
panic(err)
}
log.Println(strResp)
See example
All api methods on https://vk.com/dev/methods
###Client ids (Masking only for login/pass auth)
License
Vk_api by Yanple is BSD licensed