| Package | Description |
|---|---|
| fi.foyt.foursquare.api |
Package containing basic API functionality
|
| fi.foyt.foursquare.example |
| Modifier and Type | Method and Description |
|---|---|
void |
FoursquareApi.authenticateCode(String code)
Exchanges code for oAuthToken
|
Result<Checkin> |
FoursquareApi.checkin(String checkinId,
String signature)
Get details of a checkin.
|
Result<Checkin> |
FoursquareApi.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> |
FoursquareApi.checkinsAddComment(String checkinId,
String text)
Comment on a checkin-in
|
Result<Checkin> |
FoursquareApi.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[]> |
FoursquareApi.checkinsRecent(String ll,
Integer limit,
Long afterTimestamp)
Returns a list of recent checkins from friends.
|
static FoursquareEntity[] |
JSONFieldParser.parseEntities(Class<?> clazz,
org.json.JSONArray jsonArray,
boolean skipNonExistingFields)
Static method that parses JSON array into array of FoursquareEntities
|
static FoursquareEntity[] |
JSONFieldParser.parseEntitiesHash(Class<?> clazz,
org.json.JSONObject jsonHashList,
boolean skipNonExistingFields)
Static method that parses JSON "named array" into array of FoursquareEntities
|
static FoursquareEntity |
JSONFieldParser.parseEntity(Class<?> clazz,
org.json.JSONObject jsonObject,
boolean skipNonExistingFields)
Static method that parses single JSON Object into FoursquareEntity
|
static List<Notification<?>> |
NotificationsParser.parseNotifications(org.json.JSONArray notifications,
boolean skipNonExistingFields)
Static method that parses JSON array into list of notifications
|
Result<Photo> |
FoursquareApi.photo(String id)
Get details of a photo.
|
Result<Photo> |
FoursquareApi.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.
|
Result<Setting> |
FoursquareApi.settingsAll()
Returns the settings of the acting user.
|
Result<Setting> |
FoursquareApi.settingSet(String settingId,
Boolean value)
Change a setting for the given user.
|
Result<CompleteSpecial> |
FoursquareApi.special(String id,
String venueId)
Gives details about a special, including text and whether it is unlocked for the current user.
|
Result<SpecialGroup> |
FoursquareApi.specialsSearch(String ll,
Double llAcc,
Double alt,
Double altAcc,
Integer limit)
Returns a list of specials near the current location.
|
Result<CompleteTip> |
FoursquareApi.tip(String id)
Gives details about a tip, including which users (especially friends) have marked the tip to-do or done.
|
Result<CompleteTip> |
FoursquareApi.tipsAdd(String venueId,
String text,
String url)
Allows user to add a new tip at a venue.
|
Result<CompleteTip> |
FoursquareApi.tipsMarkDone(String tipId)
Allows the acting user to mark a tip done.
|
Result<Todo> |
FoursquareApi.tipsMarkTodo(String tipId)
Allows you to mark a tip to-do.
|
Result<CompleteTip[]> |
FoursquareApi.tipsSearch(String ll,
Integer limit,
Integer offset,
String filter,
String query)
Returns a list of tips near the area specified.
|
Result<CompleteTip> |
FoursquareApi.tipsUnmark(String tipId)
Allows user to remove a tip from your to-do list or done list.
|
Result<CompleteUser> |
FoursquareApi.user(String userId)
Returns profile information for a given user, including selected badges and mayorships.
|
Result<CompleteUser> |
FoursquareApi.usersApprove(String userId)
Approves a pending friend request from another user.
|
Result<Badges> |
FoursquareApi.usersBadges(String userId)
Returns badges for a given user.
|
Result<CheckinGroup> |
FoursquareApi.usersCheckins(String userId,
Integer limit,
Integer offset,
Long afterTimestamp,
Long beforeTimestamp)
Returns a history of checkins for the authenticated user.
|
Result<CompleteUser> |
FoursquareApi.usersDeny(String userId)
Denies a pending friend request
|
Result<UserGroup> |
FoursquareApi.usersFriends(String userId)
Returns user's friends.
|
Result<LeaderboardItemGroup> |
FoursquareApi.usersLeaderboard(Integer neighbors)
Returns the user's leaderboard.
|
Result<CompleteUser> |
FoursquareApi.usersRequest(String id)
Sends a friend request to another user.
|
Result<CompactUser[]> |
FoursquareApi.usersRequests()
Returns a list of users with whom they have a pending friend requests.
|
Result<CompactUser[]> |
FoursquareApi.usersSearch(String phone,
String email,
String twitter,
String twitterSource,
String fbid,
String name)
Find users
|
Result<CompleteUser> |
FoursquareApi.usersSetPings(String userId,
String value)
Changes whether the acting user will receive pings (phone notifications) when the specified user checks in.
|
Result<TipGroup> |
FoursquareApi.usersTips(String userId,
String sort,
String ll,
Integer limit,
Integer offset)
Returns tips from a user.
|
Result<TodoGroup> |
FoursquareApi.usersTodos(String userId,
String sort,
String ll)
Returns todos from a user.
|
Result<CompleteUser> |
FoursquareApi.usersUnfriend(String userId)
Cancels any relationship between the acting user and the specified user.
|
Result<VenueHistoryGroup> |
FoursquareApi.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> |
FoursquareApi.venue(String venueId)
Gives details about a venue, including location, mayorship, tags, tips, specials, and category.
|
Result<CompleteVenue> |
FoursquareApi.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[]> |
FoursquareApi.venuesCategories()
Returns a hierarchical list of categories applied to venues.
|
Result<Object> |
FoursquareApi.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> |
FoursquareApi.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> |
FoursquareApi.venuesFlag(String id,
String problem,
String venueId)
Allows users to indicate a venue is incorrect in some way.
|
Result<CheckinGroup> |
FoursquareApi.venuesHereNow(String venueId,
Integer limit,
Integer offset,
Long afterTimestamp)
Provides a count of how many people are at a given venue.
|
Result<LinkGroup> |
FoursquareApi.venuesLinks(String id)
Returns URLs or identifiers from third parties that have been applied to this venue
|
Result<Todo> |
FoursquareApi.venuesMarkTodo(String venuesId,
String text)
Allows you to mark a venue to-do, with optional text.
|
Result<PhotoGroup> |
FoursquareApi.venuesPhotos(String venueId,
String group,
Integer limit,
Integer offset)
Returns photos for a venue.
|
Result<Object> |
FoursquareApi.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> |
FoursquareApi.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> |
FoursquareApi.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> |
FoursquareApi.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> |
FoursquareApi.venuesSuggestCompletion(String ll,
Double llAcc,
Double alt,
Double altAcc,
String query,
int limit)
Venues Autocomplete
https://developer.foursquare.com/docs/venues/suggestcompletion
|
Result<TipGroup> |
FoursquareApi.venuesTips(String venueId,
String sort,
Integer limit,
Integer offset)
Returns tips for a venue.
|
Result<CompactVenue[]> |
FoursquareApi.venuesTrending(String ll,
Integer limit,
Integer radius)
Returns a list of venues near the current location with the most people currently checked in.
|
| Modifier and Type | Method and Description |
|---|---|
void |
BasicExample.searchVenues(String ll) |
Copyright © 2014 Foyt. All Rights Reserved.