Bees is an Elixir client library for the Foursquare/Swarm API.
Bees currently supports:
- Finding venues by lat/long
Bees.Venue.search/6
- Finding venues by identifier
Bees.Venue.find_by_identifier/2
- Finding venues by recommendations
Bees.Venue.explore/8
- Finding venues by category
Bees.Venue.category/7
- Checking into a venue
Bees.Checkin.with_venue/4
Adding endpoints should be relatively simple, and I'm open to pull requests.
The package can be installed as:
-
Add bees to your list of dependencies in
mix.exs
:def deps do [{:bees, "~> 0.3.0"}] end
-
Ensure bees is started before your application:
def application do [applications: [:bees]] end
client = %Bees.Client{
client_id: "CLIENT_ID_HERE",
client_secret: "CLIENT_SECRET_HERE",
access_token: "ACCESS_TOKEN_FOR_CHECKIN"
}
case Bees.Venue.find_by_identifier(client, "501fea4de4b05e0d96afc368") do
{:ok, venue} ->
IO.inspect venue
{:error, error} ->
IO.inspect error
end