|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PlacesOperations
Defines the operations for interacting with a user's Facebook checkins.
Method Summary | |
---|---|
String |
checkin(String placeId,
double latitude,
double longitude)
Checks the authenticated user into the specified location. |
String |
checkin(String placeId,
double latitude,
double longitude,
String message,
String... tags)
Checks the authenticated user into the specified location. |
Checkin |
getCheckin(String checkinId)
Retrieves details for a single checkin. |
PagedList<Checkin> |
getCheckins()
Retrieves a list of up to 25 recent checkins for the authenticated user. |
PagedList<Checkin> |
getCheckins(int offset,
int limit)
Deprecated. Use getCheckins(PagingParameters) instead. |
PagedList<Checkin> |
getCheckins(PagingParameters pagedListParameters)
Retrieves a list of checkins for the authenticated user. |
PagedList<Checkin> |
getCheckins(String objectId)
Retrieves a list of up to 25 recent checkins for the specified object. |
PagedList<Checkin> |
getCheckins(String objectId,
int offset,
int limit)
Deprecated. Use getCheckins(String, PagingParameters) instead. |
PagedList<Checkin> |
getCheckins(String objectId,
PagingParameters pagedListParameters)
Retrieves a list of checkins for the specified object. |
PagedList<Page> |
search(String query,
double latitude,
double longitude,
long distance)
Searches for places near a given coordinate. |
Method Detail |
---|
PagedList<Checkin> getCheckins()
Checkin
s for the user, or an empty list if not available.
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_checkins" or "friends_checkins" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.@Deprecated PagedList<Checkin> getCheckins(int offset, int limit)
getCheckins(PagingParameters)
instead.
offset
- the offset into the list of checkinslimit
- the maximum number of checkins to return
Checkin
s for the user, or an empty list if not available.
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_checkins" or "friends_checkins" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.PagedList<Checkin> getCheckins(PagingParameters pagedListParameters)
pagedListParameters
- the parameters defining the bounds of the list to return.
Checkin
s for the user, or an empty list if not available.
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_checkins" or "friends_checkins" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.PagedList<Checkin> getCheckins(String objectId)
objectId
- either a Facebook user ID or page ID
Checkin
s, or an empty list if not available.
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_checkins" or "friends_checkins" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.@Deprecated PagedList<Checkin> getCheckins(String objectId, int offset, int limit)
getCheckins(String, PagingParameters)
instead.
objectId
- either a Facebook user ID or page IDoffset
- the offset into the list of checkinslimit
- the maximum number of checkins to return
Checkin
s, or an empty list if not available.
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_checkins" or "friends_checkins" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.PagedList<Checkin> getCheckins(String objectId, PagingParameters pagedListParameters)
objectId
- either a Facebook user ID or page IDpagedListParameters
- the parameters defining the bounds of the list to return.
Checkin
s, or an empty list if not available.
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "user_checkins" or "friends_checkins" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.Checkin getCheckin(String checkinId)
checkinId
- the checkin ID
Checkin
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.String checkin(String placeId, double latitude, double longitude)
placeId
- the ID of the place to check into.latitude
- the latitude of the place.longitude
- the longitude of the place.
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "publish_checkins" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.String checkin(String placeId, double latitude, double longitude, String message, String... tags)
placeId
- the ID of the place to check into.latitude
- the latitude of the place.longitude
- the longitude of the place.message
- a message to post along with the checkin.tags
- a varargs list of user IDs to tag on the checkin.
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.InsufficientPermissionException
- if the user has not granted "publish_checkins" permission.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.PagedList<Page> search(String query, double latitude, double longitude, long distance)
query
- the search query (e.g., "Burritos")latitude
- the latitude of the point to search nearlongitude
- the longitude of the point to search neardistance
- the radius to search within (in feet)
Page
s matching the search
org.springframework.social.ApiException
- if there is an error while communicating with Facebook.
org.springframework.social.MissingAuthorizationException
- if FacebookTemplate was not created with an access token.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |