public class FoursquareApi extends Object
| Constructor and Description |
|---|
FoursquareApi(String clientId,
String clientSecret,
String redirectUrl)
Constructor.
|
FoursquareApi(String clientId,
String clientSecret,
String redirectUrl,
IOHandler ioHandler)
Constructor.
|
FoursquareApi(String clientId,
String clientSecret,
String redirectUrl,
String oAuthToken,
IOHandler ioHandler)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
authenticateCode(String code)
Exchanges code for oAuthToken
|
Result<Checkin> |
checkin(String checkinId,
String signature)
Get details of a checkin.
|
Result<Checkin> |
checkinsAdd(String venueId,
String venue,
String shout,
String broadcast,
String ll,
Double llAcc,
Double alt,
Double altAcc)
Allows you to check in to a place.
|
Result<Comment> |
checkinsAddComment(String checkinId,
String text)
Comment on a checkin-in
|
Result<Checkin> |
checkinsDeleteComment(String checkinId,
String commentId)
Remove a comment from a checkin, if the acting user is the author or the owner of the checkin.
|
Result<Checkin[]> |
checkinsRecent(String ll,
Integer limit,
Long afterTimestamp)
Returns a list of recent checkins from friends.
|
String |
getAuthenticationUrl()
Returns user authentication URL
|
IOHandler |
getIOHandler()
Returns current IOHandler
|
String |
getOAuthToken()
Returns OAuthToken
|
boolean |
getUseCallback()
Returns if JSON request mode is callback
|
Result<Photo> |
photo(String id)
Get details of a photo.
|
Result<Photo> |
photosAdd(String checkinId,
String tipId,
String venueId,
String broadcast,
String ll,
Double llAcc,
Double alt,
Double altAcc,
byte[] data)
Allows user to add a new photo to a checkin, tip, or a venue in general.
|
void |
setoAuthToken(String oAuthToken)
Sets OAuthToken
|
void |
setSkipNonExistingFields(boolean skipNonExistingFields)
Sets debugging flag what ever parser should disregard non-existing fields
|
Result<Setting> |
settingsAll()
Returns the settings of the acting user.
|
Result<Setting> |
settingSet(String settingId,
Boolean value)
Change a setting for the given user.
|
void |
setUseCallback(boolean useCallback)
Change JSON request mode to callback or normal
|
void |
setVersion(String version)
Sets Foursquare API version
|
Result<CompleteSpecial> |
special(String id,
String venueId)
Gives details about a special, including text and whether it is unlocked for the current user.
|
Result<SpecialGroup> |
specialsSearch(String ll,
Double llAcc,
Double alt,
Double altAcc,
Integer limit)
Returns a list of specials near the current location.
|
Result<CompleteTip> |
tip(String id)
Gives details about a tip, including which users (especially friends) have marked the tip to-do or done.
|
Result<CompleteTip> |
tipsAdd(String venueId,
String text,
String url)
Allows user to add a new tip at a venue.
|
Result<CompleteTip> |
tipsMarkDone(String tipId)
Allows the acting user to mark a tip done.
|
Result<Todo> |
tipsMarkTodo(String tipId)
Allows you to mark a tip to-do.
|
Result<CompleteTip[]> |
tipsSearch(String ll,
Integer limit,
Integer offset,
String filter,
String query)
Returns a list of tips near the area specified.
|
Result<CompleteTip> |
tipsUnmark(String tipId)
Allows user to remove a tip from your to-do list or done list.
|
Result<CompleteUser> |
user(String userId)
Returns profile information for a given user, including selected badges and mayorships.
|
Result<CompleteUser> |
usersApprove(String userId)
Approves a pending friend request from another user.
|
Result<Badges> |
usersBadges(String userId)
Returns badges for a given user.
|
Result<CheckinGroup> |
usersCheckins(String userId,
Integer limit,
Integer offset,
Long afterTimestamp,
Long beforeTimestamp)
Returns a history of checkins for the authenticated user.
|
Result<CompleteUser> |
usersDeny(String userId)
Denies a pending friend request
|
Result<UserGroup> |
usersFriends(String userId)
Returns user's friends.
|
Result<LeaderboardItemGroup> |
usersLeaderboard(Integer neighbors)
Returns the user's leaderboard.
|
Result<CompleteUser> |
usersRequest(String id)
Sends a friend request to another user.
|
Result<CompactUser[]> |
usersRequests()
Returns a list of users with whom they have a pending friend requests.
|
Result<CompactUser[]> |
usersSearch(String phone,
String email,
String twitter,
String twitterSource,
String fbid,
String name)
Find users
|
Result<CompleteUser> |
usersSetPings(String userId,
String value)
Changes whether the acting user will receive pings (phone notifications) when the specified user checks in.
|
Result<TipGroup> |
usersTips(String userId,
String sort,
String ll,
Integer limit,
Integer offset)
Returns tips from a user.
|
Result<TodoGroup> |
usersTodos(String userId,
String sort,
String ll)
Returns todos from a user.
|
Result<CompleteUser> |
usersUnfriend(String userId)
Cancels any relationship between the acting user and the specified user.
|
Result<VenueHistoryGroup> |
usersVenueHistory(String userId,
Long beforeTimestamp,
Long afterTimestamp)
Returns a list of all venues visited by the specified user, along with how many visits and when they were last there.
|
Result<CompleteVenue> |
venue(String venueId)
Gives details about a venue, including location, mayorship, tags, tips, specials, and category.
|
Result<CompleteVenue> |
venuesAdd(String name,
String address,
String crossStreet,
String city,
String state,
String zip,
String phone,
String ll,
String primaryCategoryId)
Allows user to add a new venue.
|
Result<Category[]> |
venuesCategories()
Returns a hierarchical list of categories applied to venues.
|
Result<Object> |
venuesEdit(String id,
String name,
String address,
String crossStreet,
String city,
String state,
String zip,
String phone,
String ll,
String categoryId,
String twitter,
String description,
String url)
Allows you to make changes to a venue (acting user must be a superuser or venue manager).
|
Result<Recommended> |
venuesExplore(String ll,
Double llAcc,
Double alt,
Double altAcc,
Integer radius,
String section,
String query,
Integer limit,
String basis)
Returns a list of recommended venues near the specified location.
|
Result<Object> |
venuesFlag(String id,
String problem,
String venueId)
Allows users to indicate a venue is incorrect in some way.
|
Result<CheckinGroup> |
venuesHereNow(String venueId,
Integer limit,
Integer offset,
Long afterTimestamp)
Provides a count of how many people are at a given venue.
|
Result<LinkGroup> |
venuesLinks(String id)
Returns URLs or identifiers from third parties that have been applied to this venue
|
Result<Todo> |
venuesMarkTodo(String venuesId,
String text)
Allows you to mark a venue to-do, with optional text.
|
Result<PhotoGroup> |
venuesPhotos(String venueId,
String group,
Integer limit,
Integer offset)
Returns photos for a venue.
|
Result<Object> |
venuesProposeEdit(String id,
String name,
String address,
String crossStreet,
String city,
String state,
String zip,
String phone,
String ll,
String primaryCategoryId)
Allows user to propose a change to a venue.
|
Result<VenuesSearchResult> |
venuesSearch(Map<String,String> params)
Generic search which takes a map of parameters
The map is converted into parameters for the search API call with key/value pairs matching
https://developer.foursquare.com/docs/venues/search
For example:
public Response foursquareSearchNamed(@QueryParam("place") String place, @QueryParam("term") String searchTerm) {
Map
|
Result<VenuesSearchResult> |
venuesSearch(String ll,
Double llAcc,
Double alt,
Double altAcc,
String query,
Integer limit,
String intent,
String categoryId,
String url,
String providerId,
String linkedId,
Integer radius,
String near)
Returns a list of venues near the current location, optionally matching the search term.
|
Result<VenuesSearchResult> |
venuesSearch(String near,
String query,
Integer limit,
String intent,
String categoryId,
String url,
String providerId,
String linkedId)
Returns a list of venues near the current location identified by place (i.e.
|
Result<VenuesAutocompleteResult> |
venuesSuggestCompletion(String ll,
Double llAcc,
Double alt,
Double altAcc,
String query,
int limit)
Venues Autocomplete
https://developer.foursquare.com/docs/venues/suggestcompletion
|
Result<TipGroup> |
venuesTips(String venueId,
String sort,
Integer limit,
Integer offset)
Returns tips for a venue.
|
Result<CompactVenue[]> |
venuesTrending(String ll,
Integer limit,
Integer radius)
Returns a list of venues near the current location with the most people currently checked in.
|
public FoursquareApi(String clientId, String clientSecret, String redirectUrl)
clientId - Foursquare Client idclientSecret - Foursquare Client secretredirectUrl - Foursquare Redirect URLpublic FoursquareApi(String clientId, String clientSecret, String redirectUrl, IOHandler ioHandler)
clientId - Foursquare Client idclientSecret - Foursquare Client secretredirectUrl - Foursquare Redirect URLioHandler - IOHandlerpublic FoursquareApi(String clientId, String clientSecret, String redirectUrl, String oAuthToken, IOHandler ioHandler)
clientId - Foursquare Client idclientSecret - Foursquare Client secretredirectUrl - Foursquare Redirect URLoAuthToken - Previously retrieved OAuthTokenioHandler - IOHandlerpublic String getOAuthToken()
public void setoAuthToken(String oAuthToken)
oAuthToken - OAuthTokenpublic void setSkipNonExistingFields(boolean skipNonExistingFields)
skipNonExistingFields - debugging flag what ever parser should disregard non-existing fieldspublic void setVersion(String version)
version - Foursquare API versionpublic void setUseCallback(boolean useCallback)
useCallback - set false to enable normal modepublic boolean getUseCallback()
public Result<CompleteUser> user(String userId) throws FoursquareApiException
userId - User id (can be 'self' in case of the current user, assumed 'self' if null)FoursquareApiException - when something unexpected happenspublic Result<LeaderboardItemGroup> usersLeaderboard(Integer neighbors) throws FoursquareApiException
neighbors - number of friends' scores to return that are adjacent to user's scoreFoursquareApiException - when something unexpected happenspublic Result<Badges> usersBadges(String userId) throws FoursquareApiException
userId - User id (can be 'self' in case of the current user, assumed 'self' if null)FoursquareApiException - when something unexpected happenspublic Result<CheckinGroup> usersCheckins(String userId, Integer limit, Integer offset, Long afterTimestamp, Long beforeTimestamp) throws FoursquareApiException
userId - User id (For now, only 'self' is supported, 'self' assumed if null)limit - number of results to returnoffset - used to page through results.afterTimestamp - retrieve the first results to follow these seconds since epoch.beforeTimestamp - retrieve the first results prior to these seconds since epoch.FoursquareApiException - when something unexpected happenspublic Result<TipGroup> usersTips(String userId, String sort, String ll, Integer limit, Integer offset) throws FoursquareApiException
userId - User id (can be 'self' in case of the current user, assumed 'self' if null)sort - one of recent, nearby, or popular. Nearby requires ll to be provided.ll - latitude and longitude of the user's location.limit - number of results to return, up to 500.offset - used to page through results.FoursquareApiException - when something unexpected happenspublic Result<TodoGroup> usersTodos(String userId, String sort, String ll) throws FoursquareApiException
userId - User id (can be 'self' in case of the current user, assumed 'self' if null)sort - one of recent or popular. Nearby requires ll to be provided.ll - latitude and longitude of the user's locationFoursquareApiException - when something unexpected happenspublic Result<VenueHistoryGroup> usersVenueHistory(String userId, Long beforeTimestamp, Long afterTimestamp) throws FoursquareApiException
userId - User id (For now, only 'self' is supported, 'self' assumed if null)beforeTimestamp - seconds since epoch.afterTimestamp - seconds after epoch.FoursquareApiException - when something unexpected happenspublic Result<CompleteUser> usersRequest(String id) throws FoursquareApiException
id - user id to which a request will be sent.FoursquareApiException - when something unexpected happenspublic Result<CompleteUser> usersUnfriend(String userId) throws FoursquareApiException
userId - user id of the user to be unfriended.FoursquareApiException - when something unexpected happenspublic Result<CompleteUser> usersApprove(String userId) throws FoursquareApiException
userId - the user id of a pending friend.FoursquareApiException - when something unexpected happenspublic Result<CompleteUser> usersDeny(String userId) throws FoursquareApiException
userId - the user id of a pending friend.FoursquareApiException - when something unexpected happenspublic Result<CompleteUser> usersSetPings(String userId, String value) throws FoursquareApiException
userId - the user id of a friend.value - true or false.FoursquareApiException - when something unexpected happenspublic Result<CompactUser[]> usersSearch(String phone, String email, String twitter, String twitterSource, String fbid, String name) throws FoursquareApiException
phone - a comma-delimited list of phone numbers to look for.email - a comma-delimited list of email addresses to look for.twitter - a comma-delimited list of Twitter handles to look for.twitterSource - a single Twitter handle. Results will be friends of this user who use Foursquare.fbid - a comma-delimited list of Facebook id's to look for.name - a single string to search for in users' names.FoursquareApiException - when something unexpected happenspublic Result<CompactUser[]> usersRequests() throws FoursquareApiException
FoursquareApiException - when something unexpected happenspublic Result<UserGroup> usersFriends(String userId) throws FoursquareApiException
userId - User id (can be 'self' in case of the current user, assumed 'self' if null)FoursquareApiException - when something unexpected happenspublic Result<CompleteVenue> venue(String venueId) throws FoursquareApiException
venueId - id of venue to retrieveFoursquareApiException - when something unexpected happenspublic Result<Recommended> venuesExplore(String ll, Double llAcc, Double alt, Double altAcc, Integer radius, String section, String query, Integer limit, String basis) throws FoursquareApiException
ll - latitude and longitude of the location in question, so response can include distance.llAcc - accuracy of latitude and longitude, in meters.alt - altitude of the user's location, in meters.altAcc - accuracy of the user's altitude, in meters.radius - radius to search within, in meters.section - one of food, drinks, coffee, shops, or arts. Choosing one of these limits results to venues with categories matching these terms.query - a search term to be applied against tips, category, tips, etc. at a venue.limit - number of results to return, up to 50.basis - if present and set to friends or me, limits results to only places where friends have visited or user has visited, respectively.FoursquareApiException - when something unexpected happenspublic Result<CheckinGroup> venuesHereNow(String venueId, Integer limit, Integer offset, Long afterTimestamp) throws FoursquareApiException
venueId - id of venue to retrievelimit - number of results to return, up to 500.offset - used to page through results.afterTimestamp - retrieve the first results to follow these seconds since epochFoursquareApiException - when something unexpected happenspublic Result<TipGroup> venuesTips(String venueId, String sort, Integer limit, Integer offset) throws FoursquareApiException
venueId - id of venuesort - one of recent or popularlimit - number of results to return, up to 500.offset - used to page through results.FoursquareApiException - when something unexpected happenspublic Result<PhotoGroup> venuesPhotos(String venueId, String group, Integer limit, Integer offset) throws FoursquareApiException
venueId - the venue you want photos for.group - pass checkin for photos added by friends on their recent checkins. Pass venue for public photos added to the venue by anyone. Use multi to fetch both.limit - number of results to return, up to 500.offset - used to page through results.FoursquareApiException - when something unexpected happenspublic Result<LinkGroup> venuesLinks(String id) throws FoursquareApiException
id - id of the venueFoursquareApiException - when something unexpected happenspublic Result<Todo> venuesMarkTodo(String venuesId, String text) throws FoursquareApiException
venuesId - the venue idtext - The text of the tip.FoursquareApiException - when something unexpected happenspublic Result<Object> venuesFlag(String id, String problem, String venueId) throws FoursquareApiException
id - the venue id for which an edit is being proposed.problem - one of mislocated, closed, duplicate.venueId - of a duplicate, only valid for problem = duplicateFoursquareApiException - when something unexpected happenspublic Result<Object> venuesProposeEdit(String id, String name, String address, String crossStreet, String city, String state, String zip, String phone, String ll, String primaryCategoryId) throws FoursquareApiException
id - the venue id for which an edit is being proposed.name - the name of the venue.address - the address of the venue.crossStreet - the nearest intersecting street or streets.city - the city name where this venue is.state - the nearest state or province to the venue.zip - the nearest state or province to the venue.phone - the phone number of the venue.ll - latitude and longitude of the user's location, as accurate as is known.primaryCategoryId - the ID of the category to which you want to assign this venue.FoursquareApiException - when something unexpected happenspublic Result<Object> venuesEdit(String id, String name, String address, String crossStreet, String city, String state, String zip, String phone, String ll, String categoryId, String twitter, String description, String url) throws FoursquareApiException
id - the venue id for which an edit is being proposed.name - the name of the venue.address - the address of the venue.crossStreet - the nearest intersecting street or streets.city - the city name where this venue is.state - the nearest state or province to the venue.zip - the nearest state or province to the venue.phone - the phone number of the venue.ll - latitude and longitude of the user's location, as accurate as is known.categoryId - the ID of the category to which you want to assign this venue.twitter - The twitter handle of the venue.description - A freeform description of the venue, up to 300 characters.url - The url of the homepage of the venue.FoursquareApiException - when something unexpected happenspublic Result<CompleteVenue> venuesAdd(String name, String address, String crossStreet, String city, String state, String zip, String phone, String ll, String primaryCategoryId) throws FoursquareApiException
name - the name of the venueaddress - the address of the venue.crossStreet - the nearest intersecting street or streets.city - the city name where this venue is.state - the nearest state or province to the venue.zip - the zip or postal code for the venue.phone - the phone number of the venue.ll - latitude and longitude of the venue, as accurate as is known.primaryCategoryId - the ID of the category to which you want to assign this venue.FoursquareApiException - when something unexpected happenspublic Result<Category[]> venuesCategories() throws FoursquareApiException
FoursquareApiException - when something unexpected happenspublic Result<VenuesSearchResult> venuesSearch(String ll, Double llAcc, Double alt, Double altAcc, String query, Integer limit, String intent, String categoryId, String url, String providerId, String linkedId, Integer radius, String near) throws FoursquareApiException
ll - latitude and longitude of the user's location. (Required for query searches)llAcc - accuracy of latitude and longitude, in meters. (Does not currently affect search results.)alt - altitude of the user's location, in meters. (Does not currently affect search results.)altAcc - accuracy of the user's altitude, in meters. (Does not currently affect search results.)query - a search term to be applied against titles.limit - number of results to return, up to 50.intent - one of checkin, match or specialscategoryId - a category to limit results tourl - a third-party URLproviderId - identifier for a known third partylinkedId - identifier used by third party specifed in providerId parameterradius - Limit results to venues within this many meters of the specified location. Maximum is 100 000 meters.near - Required if ll is not provided. A string naming a place in the world. Will be geocodd. (required for query searches)FoursquareApiException - when something unexpected happenspublic Result<VenuesSearchResult> venuesSearch(Map<String,String> params) throws FoursquareApiException
FoursquareApiExceptionpublic Result<VenuesSearchResult> venuesSearch(String near, String query, Integer limit, String intent, String categoryId, String url, String providerId, String linkedId) throws FoursquareApiException
near - the name of a city or town which can be geocoded by foursquarequery - a search term to be applied against titles.limit - number of results to return, up to 50.intent - one of checkin, match or specialscategoryId - a category to limit results tourl - a third-party URLproviderId - identifier for a known third partylinkedId - identifier used by third party specifed in providerId parameterFoursquareApiException - when something unexpected happenspublic Result<VenuesAutocompleteResult> venuesSuggestCompletion(String ll, Double llAcc, Double alt, Double altAcc, String query, int limit) throws FoursquareApiException
ll - llAcc - alt - altAcc - query - limit - FoursquareApiExceptionpublic Result<CompactVenue[]> venuesTrending(String ll, Integer limit, Integer radius) throws FoursquareApiException
ll - latitude and longitude of the user's location.limit - number of results to return, up to 50.radius - radius in meters, up to approximately 2000 meters.FoursquareApiException - when something unexpected happenspublic Result<Checkin> checkin(String checkinId, String signature) throws FoursquareApiException
checkinId - the ID of the checkin to retrieve additional information for.signature - when checkins are sent to public feeds such as Twitter, Foursquare appends a signature (s=XXXXXX) allowing users to bypass the friends-only access check on checkins. The same value can be used here for programmatic access to otherwise inaccessible checkins.FoursquareApiException - when something unexpected happenspublic Result<Checkin> checkinsAdd(String venueId, String venue, String shout, String broadcast, String ll, Double llAcc, Double alt, Double altAcc) throws FoursquareApiException
venueId - the venue where the user is checking in. No venueid is needed if shouting or just providing a venue name. Find venue IDs by searching or from historical APIs.venue - if are not shouting, but you don't have a venue ID or would rather prefer a 'venueless' checkin, pass the venue name as a string using this parametershout - a message about your check-in. The maximum length of this field is 140 characters.broadcast - how much to broadcast this check-in, ranging from private (off-the-grid) to public,facebook,twitter. Can also be just public or public,facebook, for example. If no valid value is found, the default is public. Shouts cannot be private.ll - latitude and longitude of the user's location.llAcc - accuracy of the user's latitude and longitude, in meters.alt - altitude of the user's location, in meters.altAcc - vertical accuracy of the user's location, in meters.FoursquareApiException - when something unexpected happenspublic Result<Checkin[]> checkinsRecent(String ll, Integer limit, Long afterTimestamp) throws FoursquareApiException
ll - latitude and longitude of the user's location, so response can include distance.limit - number of results to return, up to 100.afterTimestamp - seconds after which to look for checkinsFoursquareApiException - when something unexpected happenspublic Result<Comment> checkinsAddComment(String checkinId, String text) throws FoursquareApiException
checkinId - the ID of the checkin to add a comment totext - the text of the comment, up to 200 characters.FoursquareApiException - when something unexpected happenspublic Result<Checkin> checkinsDeleteComment(String checkinId, String commentId) throws FoursquareApiException
checkinId - the ID of the checkin to remove a comment from.commentId - the id of the comment to remove.FoursquareApiException - when something unexpected happenspublic Result<CompleteTip> tip(String id) throws FoursquareApiException
id - id of tip to retrieveFoursquareApiException - when something unexpected happenspublic Result<CompleteTip> tipsAdd(String venueId, String text, String url) throws FoursquareApiException
venueId - the venue where you want to add this tip.text - the text of the tip.url - a URL related to this tip.FoursquareApiException - when something unexpected happenspublic Result<CompleteTip[]> tipsSearch(String ll, Integer limit, Integer offset, String filter, String query) throws FoursquareApiException
ll - latitude and longitude of the user's location.limit - number of results to return, up to 500.offset - used to page through results.filter - if set to friends, only show nearby tips from friends.query - only find tips matching the given term, cannot be used in conjunction with friends filter.FoursquareApiException - when something unexpected happenspublic Result<Todo> tipsMarkTodo(String tipId) throws FoursquareApiException
tipId - the tip you want to mark to-do.FoursquareApiException - when something unexpected happenspublic Result<CompleteTip> tipsMarkDone(String tipId) throws FoursquareApiException
tipId - the tip you want to mark doneFoursquareApiException - when something unexpected happenspublic Result<CompleteTip> tipsUnmark(String tipId) throws FoursquareApiException
tipId - the tip you want to unmark.FoursquareApiException - when something unexpected happenspublic Result<Photo> photo(String id) throws FoursquareApiException
id - the id of the photo to retrieve additional information for.FoursquareApiException - when something unexpected happenspublic Result<Photo> photosAdd(String checkinId, String tipId, String venueId, String broadcast, String ll, Double llAcc, Double alt, Double altAcc, byte[] data) throws FoursquareApiException
checkinId - the id of a checkin owned by the usertipId - the id of a tip owned by the uservenueId - the id of a venue, provided only when adding a public photo of the venuebroadcast - twitter, facebook or twitter,facebook if you want to send to both.ll - latitude and longitude of the user's location.llAcc - accuracy of the user's latitude and longitude, in meters.alt - altitude of the user's location, in meters.altAcc - vertical accuracy of the user's location, in meters.data - data of the image. Image should be "image/jpeg"FoursquareApiException - when something unexpected happenspublic Result<Setting> settingSet(String settingId, Boolean value) throws FoursquareApiException
settingId - one of sendToTwitter, sendMayorshipsToTwitter, sendBadgesToTwitter, sendToFacebook, sendMayorshipsToFacebook, sendBadgesToFacebook, receivePings, receiveCommentPings.value - true or falseFoursquareApiException - when something unexpected happenspublic Result<Setting> settingsAll() throws FoursquareApiException
FoursquareApiException - when something unexpected happenspublic Result<CompleteSpecial> special(String id, String venueId) throws FoursquareApiException
id - id of special to retrievevenueId - id of a venue the special is running atFoursquareApiException - when something unexpected happenspublic Result<SpecialGroup> specialsSearch(String ll, Double llAcc, Double alt, Double altAcc, Integer limit) throws FoursquareApiException
ll - latitude and longitude to search near.llAcc - accuracy of latitude and longitude, in meters.alt - altitude of the user's location, in meters.altAcc - accuracy of the user's altitude, in meters.limit - number of results to return, up to 50FoursquareApiException - when something unexpected happenspublic String getAuthenticationUrl()
public void authenticateCode(String code) throws FoursquareApiException
code - codeFoursquareApiException - when something unexpected happenspublic IOHandler getIOHandler()
Copyright © 2014 Foyt. All Rights Reserved.