/foursquarego

Foursquare API client written in golang

Primary LanguageGoMIT LicenseMIT

Foursquarego Build Status GoDoc Go Report Card Azure DevOps coverage

Foursquarego is a simple Go package for accessing theFoursquare API.

If you find any errors please create an issue, the foursquare API has different types even for things with the same name.

Install

go get -u github.com/peppage/foursquarego

Usage

    httpClient := http.DefaultClient
    // When creating the client you can specify either clientSecret or the accesstoken
    client := foursquarego.NewClient(httpClient, "foursquare", "clientId", "clientSecret", "")

    // Get venue details
    venue, resp, err := client.Venues.Details("57d1efb5498e018d15de8ba3")
    
    // Search Venues
    venues, resp, err := client.Venues.Search(&VenueSearchParams{
		LatLong: "40.7,-74",
		Query:   "singlecut",
	})

License

MIT License