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
- Host: GitHub
- URL: https://github.com/softprops/dispatch-foursquare
- Owner: softprops
- License: mit
- Created: 2009-12-30T04:23:09.000Z (over 16 years ago)
- Default Branch: master
- Last Pushed: 2010-07-23T03:09:22.000Z (almost 16 years ago)
- Last Synced: 2024-05-09T09:44:20.694Z (about 2 years ago)
- Language: Scala
- Homepage:
- Size: 109 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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]