Simple Go wrapper around 4square venue endpoint
Go
Pull request Compare This branch is 1 commit ahead of elbuo8:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
venues.go
venues_test.go

README.md

4squre-venues GO

This is a simple wrapper for Go on top of the 4^2 venues endpoint.

Installation

go get github.com/elbuo8/4square-venues

Examples

import (
  "fmt"
  "github.com/elbuo8/4square-venues"
)

func main() {
  fs := NewFSVenuesClient(os.Getenv("FOURSQUARE_ID"), os.Getenv("FOURSQUARE_SECRET"))
  params := make(map[string]string)
  params["ll"] = "40.7,-74"
  if v, e := fs.GetVenue(params); e == nil {
    fmt.Println(v)
  } else {
    fmt.Println(e)
  }
}

Contributing

Feel free to make pull requests. Before summitting them, please run:

go test

TODO

  • Unit tests

MIT License