This repository has been archived by the owner on Mar 28, 2023. It is now read-only.
forked from nfolkert/scala-foursquare-api
-
Notifications
You must be signed in to change notification settings - Fork 0
assist-software/scala-foursquare-api
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is a Scala implementation of a caller for the foursquare API. To use, you need to create an HttpCaller object and supply it with your client information (you can get client credentials at https://foursquare.com/oauth). This caller object gets passed into either a UserlessApp (which makes all requests using only your client secret rather than an access token, so only a limited set of endpoints are available) or an AuthApp (which requires a user's access token, thus binding any requests made to that user). To get a user's access token, you need to go through one of the oauth flows described at https://developer.foursquare.com/docs/oauth.html. There is some support for building the various oauth urls and making some calls in OAuthFlow. These apps support multiple request types to interact with the foursquare server. All requests may be made either raw (returning the json formatted string result of the call) or extracted into Scala case classes. Basic call and extraction has been tested for all read-only endpoints and a few mutating ones. Photo endpoints support uploading a photo file via POST. See the test src for examples on how to make various calls. Multi endpoint is also supported. To run the tests, you will need to fill out the information missing in test.default.props file (you should make a test.<username>.props file that will get ignored by git. Please do not submit any credentials in the persisted test.default.props file). Please note that this is an unofficial library. As of now I'm still playing around with it to see if it's useful. EXAMPLE APPLICATION: During the fall 2011 foursquare hackathon I built a little example project that uses the scala library. You can see code for it at https://github.com/nfolkert/foursquare-hackathon-09-2012 -- a little brain fart on the year, there. :) Feel free to contact me if you have any questions. I am nfolkert at foursquare.
About
Scala wrapper for foursquare API - see README for details on how to get started
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published