Skip to content

deet/go4square

 
 

Repository files navigation

go4squareGoDoc Build Status

Go wrapper for the foursquare v2 API

Example

package main

import (
        "github.com/rfsbraz/go4square"
)

func main() {
	values := url.Values{}

	api := go4square.New("ID_HERE", "SECRET_HERE", "VERSION_HERE")
	resp, err := api.Explore(url.Values{"ll": {"44.3,37.2"}})
	if err != nil {
		// Handle the error
	} else {
		// Enjoy the venues
	}

	categoryResp, err := api.Categories()
	if err != nil {
		// Handle the error
	} else {
		// Enjoy the categories
	}
}

Implemented

  • Nothing just yet, but the venue endpoint will be the first to be complete.
  • Categories response, excluding URLs to icons.
  • Categories from Venues response may not have sub categories populated.

TODO

  • Every foursquare endpoint

About

Go wrapper for the foursquare v2 API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%