https://github.com/mtchavez/go_papi
AuthorityLabs Partner API Go Package
https://github.com/mtchavez/go_papi
Last synced: 10 months ago
JSON representation
AuthorityLabs Partner API Go Package
- Host: GitHub
- URL: https://github.com/mtchavez/go_papi
- Owner: mtchavez
- Created: 2013-01-01T05:30:43.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-01-02T01:36:11.000Z (over 13 years ago)
- Last Synced: 2025-06-19T19:03:49.668Z (about 1 year ago)
- Language: Go
- Size: 103 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
go-papi
=======
AuthorityLabs Partner API Go Package
* Github: http://github.com/mtchavez/go_papi
* [](http://coderwall.com/mtchavez)
## Install
go get github.com/mtchavez/go_papi
## Configure
Configure a client with your api key.
client := go_papi.Client { "asdf1234ApiKey" }
## Keywords
Keyword endpoint calls.
### POST
Post a keyword which defaults to Google and en-US locale. *TODO: Allow all parameters*
client := go_papi.Client { "6rvrqCVu6GuPKZVQUFAF" }
client.KeywordsPost("my keyword")
### Priority POST
Same as POST but added to a priority queue. *TODO: Allow all parameters*
client := go_papi.Client { "6rvrqCVu6GuPKZVQUFAF" }
client.KeywordsPriorityPost("my keyword")
### GET
Get your SERP results for a keyword with default params. *TODO: Allow all parameters*
Returns a simplejson.Json interface.
client := go_papi.Client { "6rvrqCVu6GuPKZVQUFAF" }
json2, _ := client.KeywordsGet("my keyword")
// Get first ranking in serp
fmt.Println(json2.Get("serp").Get("1"))
## TODO
* Allow all valid parameters to be passed to API
* Implement missing endpoints
* Add tests
## License
Written by Chavez
Released under the MIT License: http://www.opensource.org/licenses/mit-license.php