An open API service indexing awesome lists of open source software.

https://github.com/softprops/dispatch-foursquare

databinder dispatch interface for foursquare api
https://github.com/softprops/dispatch-foursquare

Last synced: 8 months ago
JSON representation

databinder dispatch interface for foursquare api

Awesome Lists containing this project

README

          

# dispatch-foursquare

A scala [dispatch](http://databinder.net/dispatch/) interface for the [foursquare.com](http://foursquare.com/) api.

No fancy pants phone? No problem.

Check in from everywhere anywhere.

## usage

import dispatch.foursquare._
import dispatch.liftjson.Js._
import dispatch.oauth._
import dispatch._

val fs = OAuthClient(
Consumer("C0nSum3rK3y","C0nsuM3rS3cr3t"),
Token("aCcessK3y","Acc3sSS3cr3t")
)

implicit val http = Http

fs.call(
Checkins checkIn at("Times Square") shouting("hello!") withTweet
)

val checkinHistory = fs.call(Checkins history)

val venues = fs.call(Venues at(40.759011,-73.984472))

val friendsByName fs.call(Friends named("ryu"))

val friendsOf = fs.call(Friends of(12345))

val user = fs.call(Users get(12345) withBadges withoutMayorships)

2009-2010 doug tangren [softprops]