repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
partition
stringclasses
1 value
spring-projects/spring-social-facebook
spring-social-facebook/src/main/java/org/springframework/social/facebook/api/FqlResult.java
FqlResult.hasValue
public boolean hasValue(String fieldName) { return resultMap.containsKey(fieldName) && resultMap.get(fieldName) != null; }
java
public boolean hasValue(String fieldName) { return resultMap.containsKey(fieldName) && resultMap.get(fieldName) != null; }
[ "public", "boolean", "hasValue", "(", "String", "fieldName", ")", "{", "return", "resultMap", ".", "containsKey", "(", "fieldName", ")", "&&", "resultMap", ".", "get", "(", "fieldName", ")", "!=", "null", ";", "}" ]
Checks that a field exists and contains a non-null value. @param fieldName the name of the field to check existence/value of. @return true if the field exists in the result set and has a non-null value; false otherwise.
[ "Checks", "that", "a", "field", "exists", "and", "contains", "a", "non", "-", "null", "value", "." ]
ae2234d94367eaa3adbba251ec7790d5ba7ffa41
https://github.com/spring-projects/spring-social-facebook/blob/ae2234d94367eaa3adbba251ec7790d5ba7ffa41/spring-social-facebook/src/main/java/org/springframework/social/facebook/api/FqlResult.java#L188-L190
train
spring-projects/spring-social-facebook
spring-social-facebook/src/main/java/org/springframework/social/facebook/api/impl/FacebookTemplate.java
FacebookTemplate.fetchObject
public <T> T fetchObject(String objectId, Class<T> type) { URI uri = URIBuilder.fromUri(getBaseGraphApiUrl() + objectId).build(); return getRestTemplate().getForObject(uri, type); }
java
public <T> T fetchObject(String objectId, Class<T> type) { URI uri = URIBuilder.fromUri(getBaseGraphApiUrl() + objectId).build(); return getRestTemplate().getForObject(uri, type); }
[ "public", "<", "T", ">", "T", "fetchObject", "(", "String", "objectId", ",", "Class", "<", "T", ">", "type", ")", "{", "URI", "uri", "=", "URIBuilder", ".", "fromUri", "(", "getBaseGraphApiUrl", "(", ")", "+", "objectId", ")", ".", "build", "(", ")",...
low-level Graph API operations
[ "low", "-", "level", "Graph", "API", "operations" ]
ae2234d94367eaa3adbba251ec7790d5ba7ffa41
https://github.com/spring-projects/spring-social-facebook/blob/ae2234d94367eaa3adbba251ec7790d5ba7ffa41/spring-social-facebook/src/main/java/org/springframework/social/facebook/api/impl/FacebookTemplate.java#L204-L207
train
spring-projects/spring-social-facebook
spring-social-facebook-web/src/main/java/org/springframework/social/facebook/web/RealTimeUpdateController.java
RealTimeUpdateController.verifySubscription
@RequestMapping(value="/{subscription}", method=GET, params="hub.mode=subscribe") public @ResponseBody String verifySubscription( @PathVariable("subscription") String subscription, @RequestParam("hub.challenge") String challenge, @RequestParam("hub.verify_token") String verifyToken) { logger.debug("Received...
java
@RequestMapping(value="/{subscription}", method=GET, params="hub.mode=subscribe") public @ResponseBody String verifySubscription( @PathVariable("subscription") String subscription, @RequestParam("hub.challenge") String challenge, @RequestParam("hub.verify_token") String verifyToken) { logger.debug("Received...
[ "@", "RequestMapping", "(", "value", "=", "\"/{subscription}\"", ",", "method", "=", "GET", ",", "params", "=", "\"hub.mode=subscribe\"", ")", "public", "@", "ResponseBody", "String", "verifySubscription", "(", "@", "PathVariable", "(", "\"subscription\"", ")", "S...
Handles subscription verification callback from Facebook. @param subscription The subscription name. @param challenge A challenge that Facebook expects to be returned. @param verifyToken A verification token that must match with the subscription's token given when the controller was created. @return The challenge if th...
[ "Handles", "subscription", "verification", "callback", "from", "Facebook", "." ]
ae2234d94367eaa3adbba251ec7790d5ba7ffa41
https://github.com/spring-projects/spring-social-facebook/blob/ae2234d94367eaa3adbba251ec7790d5ba7ffa41/spring-social-facebook-web/src/main/java/org/springframework/social/facebook/web/RealTimeUpdateController.java#L82-L89
train
spring-projects/spring-social-facebook
spring-social-facebook/src/main/java/org/springframework/social/facebook/api/impl/FacebookErrorHandler.java
FacebookErrorHandler.handleFacebookError
void handleFacebookError(HttpStatus statusCode, FacebookError error) { if (error != null && error.getCode() != null) { int code = error.getCode(); if (code == UNKNOWN) { throw new UncategorizedApiException(FACEBOOK_PROVIDER_ID, error.getMessage(), null); } else if (code == SERVICE) { throw new Se...
java
void handleFacebookError(HttpStatus statusCode, FacebookError error) { if (error != null && error.getCode() != null) { int code = error.getCode(); if (code == UNKNOWN) { throw new UncategorizedApiException(FACEBOOK_PROVIDER_ID, error.getMessage(), null); } else if (code == SERVICE) { throw new Se...
[ "void", "handleFacebookError", "(", "HttpStatus", "statusCode", ",", "FacebookError", "error", ")", "{", "if", "(", "error", "!=", "null", "&&", "error", ".", "getCode", "(", ")", "!=", "null", ")", "{", "int", "code", "=", "error", ".", "getCode", "(", ...
Examines the error data returned from Facebook and throws the most applicable exception. @param errorDetails a Map containing a "type" and a "message" corresponding to the Graph API's error response structure.
[ "Examines", "the", "error", "data", "returned", "from", "Facebook", "and", "throws", "the", "most", "applicable", "exception", "." ]
ae2234d94367eaa3adbba251ec7790d5ba7ffa41
https://github.com/spring-projects/spring-social-facebook/blob/ae2234d94367eaa3adbba251ec7790d5ba7ffa41/spring-social-facebook/src/main/java/org/springframework/social/facebook/api/impl/FacebookErrorHandler.java#L66-L95
train
Manabu-GT/EtsyBlur
sample/src/main/java/com/ms/square/android/etsyblurdemo/ui/fragment/NavigationDrawerFragment.java
NavigationDrawerFragment.showGlobalContextActionBar
private void showGlobalContextActionBar() { ActionBar actionBar = getActionBar(); actionBar.setDisplayShowTitleEnabled(true); actionBar.setTitle(R.string.app_name); }
java
private void showGlobalContextActionBar() { ActionBar actionBar = getActionBar(); actionBar.setDisplayShowTitleEnabled(true); actionBar.setTitle(R.string.app_name); }
[ "private", "void", "showGlobalContextActionBar", "(", ")", "{", "ActionBar", "actionBar", "=", "getActionBar", "(", ")", ";", "actionBar", ".", "setDisplayShowTitleEnabled", "(", "true", ")", ";", "actionBar", ".", "setTitle", "(", "R", ".", "string", ".", "ap...
Per the navigation drawer design guidelines, updates the action bar to show the global app 'context', rather than just what's in the current screen.
[ "Per", "the", "navigation", "drawer", "design", "guidelines", "updates", "the", "action", "bar", "to", "show", "the", "global", "app", "context", "rather", "than", "just", "what", "s", "in", "the", "current", "screen", "." ]
b51c9e80e823fce3590cc061e79e267388b4d8e0
https://github.com/Manabu-GT/EtsyBlur/blob/b51c9e80e823fce3590cc061e79e267388b4d8e0/sample/src/main/java/com/ms/square/android/etsyblurdemo/ui/fragment/NavigationDrawerFragment.java#L266-L270
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/urls/UrlsInterface.java
UrlsInterface.getGroup
public String getGroup(String groupId) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_GROUP); parameters.put("group_id", groupId); Response response = transport.get(transport.getPath(), parameters, apiK...
java
public String getGroup(String groupId) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_GROUP); parameters.put("group_id", groupId); Response response = transport.get(transport.getPath(), parameters, apiK...
[ "public", "String", "getGroup", "(", "String", "groupId", ")", "throws", "FlickrException", "{", "Map", "<", "String", ",", "Object", ">", "parameters", "=", "new", "HashMap", "<", "String", ",", "Object", ">", "(", ")", ";", "parameters", ".", "put", "(...
Get the group URL for the specified group ID @param groupId The group ID @return The group URL @throws FlickrException
[ "Get", "the", "group", "URL", "for", "the", "specified", "group", "ID" ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/urls/UrlsInterface.java#L65-L78
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/urls/UrlsInterface.java
UrlsInterface.getUserProfile
public String getUserProfile(String userId) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_USER_PROFILE); parameters.put("user_id", userId); Response response = transport.get(transport.getPath(), parame...
java
public String getUserProfile(String userId) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_USER_PROFILE); parameters.put("user_id", userId); Response response = transport.get(transport.getPath(), parame...
[ "public", "String", "getUserProfile", "(", "String", "userId", ")", "throws", "FlickrException", "{", "Map", "<", "String", ",", "Object", ">", "parameters", "=", "new", "HashMap", "<", "String", ",", "Object", ">", "(", ")", ";", "parameters", ".", "put",...
Get the URL for the user's profile. @param userId The user ID @return The URL @throws FlickrException
[ "Get", "the", "URL", "for", "the", "user", "s", "profile", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/urls/UrlsInterface.java#L111-L124
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/urls/UrlsInterface.java
UrlsInterface.lookupGroup
public Group lookupGroup(String url) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_LOOKUP_GROUP); parameters.put("url", url); Response response = transport.get(transport.getPath(), parameters, apiKey, shar...
java
public Group lookupGroup(String url) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_LOOKUP_GROUP); parameters.put("url", url); Response response = transport.get(transport.getPath(), parameters, apiKey, shar...
[ "public", "Group", "lookupGroup", "(", "String", "url", ")", "throws", "FlickrException", "{", "Map", "<", "String", ",", "Object", ">", "parameters", "=", "new", "HashMap", "<", "String", ",", "Object", ">", "(", ")", ";", "parameters", ".", "put", "(",...
Lookup the group for the specified URL. @param url The url @return The group @throws FlickrException
[ "Lookup", "the", "group", "for", "the", "specified", "URL", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/urls/UrlsInterface.java#L134-L151
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/urls/UrlsInterface.java
UrlsInterface.lookupUser
public String lookupUser(String url) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_LOOKUP_USER); parameters.put("url", url); Response response = transport.get(transport.getPath(), parameters, apiKey, share...
java
public String lookupUser(String url) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_LOOKUP_USER); parameters.put("url", url); Response response = transport.get(transport.getPath(), parameters, apiKey, share...
[ "public", "String", "lookupUser", "(", "String", "url", ")", "throws", "FlickrException", "{", "Map", "<", "String", ",", "Object", ">", "parameters", "=", "new", "HashMap", "<", "String", ",", "Object", ">", "(", ")", ";", "parameters", ".", "put", "(",...
Lookup the username for the specified User URL. @param url The user profile URL @return The username @throws FlickrException
[ "Lookup", "the", "username", "for", "the", "specified", "User", "URL", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/urls/UrlsInterface.java#L161-L175
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/urls/UrlsInterface.java
UrlsInterface.lookupGallery
public Gallery lookupGallery(String galleryId) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_LOOKUP_GALLERY); parameters.put("url", galleryId); Response response = transport.get(transport.getPath(), parame...
java
public Gallery lookupGallery(String galleryId) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_LOOKUP_GALLERY); parameters.put("url", galleryId); Response response = transport.get(transport.getPath(), parame...
[ "public", "Gallery", "lookupGallery", "(", "String", "galleryId", ")", "throws", "FlickrException", "{", "Map", "<", "String", ",", "Object", ">", "parameters", "=", "new", "HashMap", "<", "String", ",", "Object", ">", "(", ")", ";", "parameters", ".", "pu...
Lookup the Gallery for the specified ID. @param galleryId The user profile URL @return The Gallery @throws FlickrException
[ "Lookup", "the", "Gallery", "for", "the", "specified", "ID", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/urls/UrlsInterface.java#L185-L216
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/favorites/FavoritesInterface.java
FavoritesInterface.add
public void add(String photoId) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_ADD); parameters.put("photo_id", photoId); Response response = transportAPI.post(transportAPI.getPath(), parameters, apiKey, sha...
java
public void add(String photoId) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_ADD); parameters.put("photo_id", photoId); Response response = transportAPI.post(transportAPI.getPath(), parameters, apiKey, sha...
[ "public", "void", "add", "(", "String", "photoId", ")", "throws", "FlickrException", "{", "Map", "<", "String", ",", "Object", ">", "parameters", "=", "new", "HashMap", "<", "String", ",", "Object", ">", "(", ")", ";", "parameters", ".", "put", "(", "\...
Add a photo to the user's favorites. @param photoId The photo ID @throws FlickrException
[ "Add", "a", "photo", "to", "the", "user", "s", "favorites", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/favorites/FavoritesInterface.java#L61-L70
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/favorites/FavoritesInterface.java
FavoritesInterface.getContext
public PhotoContext getContext(String photoId, String userId) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_CONTEXT); parameters.put("photo_id", photoId); parameters.put("user_id", userId); Re...
java
public PhotoContext getContext(String photoId, String userId) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_CONTEXT); parameters.put("photo_id", photoId); parameters.put("user_id", userId); Re...
[ "public", "PhotoContext", "getContext", "(", "String", "photoId", ",", "String", "userId", ")", "throws", "FlickrException", "{", "Map", "<", "String", ",", "Object", ">", "parameters", "=", "new", "HashMap", "<", "String", ",", "Object", ">", "(", ")", ";...
Returns next and previous favorites for a photo in a user's favorites @param photoId The photo id @param userId The user's ID @see <a href="http://www.flickr.com/services/api/flickr.favorites.getContext.html">flickr.favorites.getContext</a>
[ "Returns", "next", "and", "previous", "favorites", "for", "a", "photo", "in", "a", "user", "s", "favorites" ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/favorites/FavoritesInterface.java#L203-L234
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/photos/people/PeopleInterface.java
PeopleInterface.editCoords
public void editCoords(String photoId, String userId, Rectangle bounds) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_EDIT_COORDS); parameters.put("photo_id", photoId); parameters.put("user_id", userId); ...
java
public void editCoords(String photoId, String userId, Rectangle bounds) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_EDIT_COORDS); parameters.put("photo_id", photoId); parameters.put("user_id", userId); ...
[ "public", "void", "editCoords", "(", "String", "photoId", ",", "String", "userId", ",", "Rectangle", "bounds", ")", "throws", "FlickrException", "{", "Map", "<", "String", ",", "Object", ">", "parameters", "=", "new", "HashMap", "<", "String", ",", "Object",...
Edit the co-ordinates that the user shows in @param photoId @param userId @param bounds @throws FlickrException
[ "Edit", "the", "co", "-", "ordinates", "that", "the", "user", "shows", "in" ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/photos/people/PeopleInterface.java#L122-L137
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/Flickr.java
Flickr.getAuthInterface
@Override public AuthInterface getAuthInterface() { if (authInterface == null) { authInterface = new AuthInterface(apiKey, sharedSecret, transport); } return authInterface; }
java
@Override public AuthInterface getAuthInterface() { if (authInterface == null) { authInterface = new AuthInterface(apiKey, sharedSecret, transport); } return authInterface; }
[ "@", "Override", "public", "AuthInterface", "getAuthInterface", "(", ")", "{", "if", "(", "authInterface", "==", "null", ")", "{", "authInterface", "=", "new", "AuthInterface", "(", "apiKey", ",", "sharedSecret", ",", "transport", ")", ";", "}", "return", "a...
Get the AuthInterface. @return The AuthInterface
[ "Get", "the", "AuthInterface", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/Flickr.java#L378-L384
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/Flickr.java
Flickr.getActivityInterface
@Override public ActivityInterface getActivityInterface() { if (activityInterface == null) { activityInterface = new ActivityInterface(apiKey, sharedSecret, transport); } return activityInterface; }
java
@Override public ActivityInterface getActivityInterface() { if (activityInterface == null) { activityInterface = new ActivityInterface(apiKey, sharedSecret, transport); } return activityInterface; }
[ "@", "Override", "public", "ActivityInterface", "getActivityInterface", "(", ")", "{", "if", "(", "activityInterface", "==", "null", ")", "{", "activityInterface", "=", "new", "ActivityInterface", "(", "apiKey", ",", "sharedSecret", ",", "transport", ")", ";", "...
Get the ActivityInterface. @return The ActivityInterface
[ "Get", "the", "ActivityInterface", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/Flickr.java#L391-L397
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/Flickr.java
Flickr.getTagsInterface
@Override public TagsInterface getTagsInterface() { if (tagsInterface == null) { tagsInterface = new TagsInterface(apiKey, sharedSecret, transport); } return tagsInterface; }
java
@Override public TagsInterface getTagsInterface() { if (tagsInterface == null) { tagsInterface = new TagsInterface(apiKey, sharedSecret, transport); } return tagsInterface; }
[ "@", "Override", "public", "TagsInterface", "getTagsInterface", "(", ")", "{", "if", "(", "tagsInterface", "==", "null", ")", "{", "tagsInterface", "=", "new", "TagsInterface", "(", "apiKey", ",", "sharedSecret", ",", "transport", ")", ";", "}", "return", "t...
Get the TagsInterface for working with Flickr Tags. @return The TagsInterface
[ "Get", "the", "TagsInterface", "for", "working", "with", "Flickr", "Tags", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/Flickr.java#L583-L589
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/Flickr.java
Flickr.getSuggestionsInterface
@Override public SuggestionsInterface getSuggestionsInterface() { if (suggestionsInterface == null) { suggestionsInterface = new SuggestionsInterface(apiKey, sharedSecret, transport); } return suggestionsInterface; }
java
@Override public SuggestionsInterface getSuggestionsInterface() { if (suggestionsInterface == null) { suggestionsInterface = new SuggestionsInterface(apiKey, sharedSecret, transport); } return suggestionsInterface; }
[ "@", "Override", "public", "SuggestionsInterface", "getSuggestionsInterface", "(", ")", "{", "if", "(", "suggestionsInterface", "==", "null", ")", "{", "suggestionsInterface", "=", "new", "SuggestionsInterface", "(", "apiKey", ",", "sharedSecret", ",", "transport", ...
Get the SuggestionsInterface. @return The SuggestionsInterface
[ "Get", "the", "SuggestionsInterface", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/Flickr.java#L660-L666
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/Flickr.java
Flickr.getDiscussionInterface
@Override public GroupDiscussInterface getDiscussionInterface() { if (discussionInterface == null) { discussionInterface = new GroupDiscussInterface(apiKey, sharedSecret, transport); } return discussionInterface; }
java
@Override public GroupDiscussInterface getDiscussionInterface() { if (discussionInterface == null) { discussionInterface = new GroupDiscussInterface(apiKey, sharedSecret, transport); } return discussionInterface; }
[ "@", "Override", "public", "GroupDiscussInterface", "getDiscussionInterface", "(", ")", "{", "if", "(", "discussionInterface", "==", "null", ")", "{", "discussionInterface", "=", "new", "GroupDiscussInterface", "(", "apiKey", ",", "sharedSecret", ",", "transport", "...
Get the GroupDiscussInterface. @return The GroupDiscussInterface
[ "Get", "the", "GroupDiscussInterface", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/Flickr.java#L674-L680
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/blogs/BlogsInterface.java
BlogsInterface.getServices
public Collection<Service> getServices() throws FlickrException { List<Service> list = new ArrayList<Service>(); Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_SERVICES); Response response = transportAPI.get(transportAPI.getPath(...
java
public Collection<Service> getServices() throws FlickrException { List<Service> list = new ArrayList<Service>(); Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_SERVICES); Response response = transportAPI.get(transportAPI.getPath(...
[ "public", "Collection", "<", "Service", ">", "getServices", "(", ")", "throws", "FlickrException", "{", "List", "<", "Service", ">", "list", "=", "new", "ArrayList", "<", "Service", ">", "(", ")", ";", "Map", "<", "String", ",", "Object", ">", "parameter...
Return a list of Flickr supported blogging services. This method does not require authentication. @return List of Services @throws FlickrException
[ "Return", "a", "list", "of", "Flickr", "supported", "blogging", "services", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/blogs/BlogsInterface.java#L53-L72
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/blogs/BlogsInterface.java
BlogsInterface.postPhoto
public void postPhoto(Photo photo, String blogId, String blogPassword) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_POST_PHOTO); parameters.put("blog_id", blogId); parameters.put("photo_id", photo.getId());...
java
public void postPhoto(Photo photo, String blogId, String blogPassword) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_POST_PHOTO); parameters.put("blog_id", blogId); parameters.put("photo_id", photo.getId());...
[ "public", "void", "postPhoto", "(", "Photo", "photo", ",", "String", "blogId", ",", "String", "blogPassword", ")", "throws", "FlickrException", "{", "Map", "<", "String", ",", "Object", ">", "parameters", "=", "new", "HashMap", "<", "String", ",", "Object", ...
Post the specified photo to a blog. Note that the Photo.title and Photo.description are used for the blog entry title and body respectively. @param photo The photo metadata @param blogId The blog ID @param blogPassword The blog password @throws FlickrException
[ "Post", "the", "specified", "photo", "to", "a", "blog", ".", "Note", "that", "the", "Photo", ".", "title", "and", "Photo", ".", "description", "are", "used", "for", "the", "blog", "entry", "title", "and", "body", "respectively", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/blogs/BlogsInterface.java#L85-L101
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/blogs/BlogsInterface.java
BlogsInterface.postPhoto
public void postPhoto(Photo photo, String blogId) throws FlickrException { postPhoto(photo, blogId, null); }
java
public void postPhoto(Photo photo, String blogId) throws FlickrException { postPhoto(photo, blogId, null); }
[ "public", "void", "postPhoto", "(", "Photo", "photo", ",", "String", "blogId", ")", "throws", "FlickrException", "{", "postPhoto", "(", "photo", ",", "blogId", ",", "null", ")", ";", "}" ]
Post the specified photo to a blog. @param photo The photo metadata @param blogId The blog ID @throws FlickrException
[ "Post", "the", "specified", "photo", "to", "a", "blog", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/blogs/BlogsInterface.java#L112-L114
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/blogs/BlogsInterface.java
BlogsInterface.getList
public Collection<Blog> getList() throws FlickrException { List<Blog> blogs = new ArrayList<Blog>(); Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_LIST); Response response = transportAPI.post(transportAPI.getPath(), parameters...
java
public Collection<Blog> getList() throws FlickrException { List<Blog> blogs = new ArrayList<Blog>(); Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_LIST); Response response = transportAPI.post(transportAPI.getPath(), parameters...
[ "public", "Collection", "<", "Blog", ">", "getList", "(", ")", "throws", "FlickrException", "{", "List", "<", "Blog", ">", "blogs", "=", "new", "ArrayList", "<", "Blog", ">", "(", ")", ";", "Map", "<", "String", ",", "Object", ">", "parameters", "=", ...
Get the collection of configured blogs for the calling user. @return The Collection of configured blogs
[ "Get", "the", "collection", "of", "configured", "blogs", "for", "the", "calling", "user", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/blogs/BlogsInterface.java#L121-L144
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/photos/PhotoUtils.java
PhotoUtils.getAttribute
private static String getAttribute(String name, Element firstElement, Element secondElement) { String val = firstElement.getAttribute(name); if (val.length() == 0 && secondElement != null) { val = secondElement.getAttribute(name); } return val; }
java
private static String getAttribute(String name, Element firstElement, Element secondElement) { String val = firstElement.getAttribute(name); if (val.length() == 0 && secondElement != null) { val = secondElement.getAttribute(name); } return val; }
[ "private", "static", "String", "getAttribute", "(", "String", "name", ",", "Element", "firstElement", ",", "Element", "secondElement", ")", "{", "String", "val", "=", "firstElement", ".", "getAttribute", "(", "name", ")", ";", "if", "(", "val", ".", "length"...
Try to get an attribute value from two elements. @param firstElement @param secondElement @return attribute value
[ "Try", "to", "get", "an", "attribute", "value", "from", "two", "elements", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/photos/PhotoUtils.java#L33-L39
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/photos/PhotoUtils.java
PhotoUtils.createPhotoList
public static final PhotoList<Photo> createPhotoList(Element photosElement) { PhotoList<Photo> photos = new PhotoList<Photo>(); photos.setPage(photosElement.getAttribute("page")); photos.setPages(photosElement.getAttribute("pages")); photos.setPerPage(photosElement.getAttribute("perp...
java
public static final PhotoList<Photo> createPhotoList(Element photosElement) { PhotoList<Photo> photos = new PhotoList<Photo>(); photos.setPage(photosElement.getAttribute("page")); photos.setPages(photosElement.getAttribute("pages")); photos.setPerPage(photosElement.getAttribute("perp...
[ "public", "static", "final", "PhotoList", "<", "Photo", ">", "createPhotoList", "(", "Element", "photosElement", ")", "{", "PhotoList", "<", "Photo", ">", "photos", "=", "new", "PhotoList", "<", "Photo", ">", "(", ")", ";", "photos", ".", "setPage", "(", ...
Parse a list of Photos from given Element. @param photosElement @return PhotoList
[ "Parse", "a", "list", "of", "Photos", "from", "given", "Element", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/photos/PhotoUtils.java#L502-L515
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/auth/AuthInterface.java
AuthInterface.getRequestToken
public OAuth1RequestToken getRequestToken(String callbackUrl) { String callback = (callbackUrl != null) ? callbackUrl : OUT_OF_BOUND_AUTH_METHOD; OAuth10aService service = new ServiceBuilder(apiKey) .apiSecret(sharedSecret) .callback(callback) .buil...
java
public OAuth1RequestToken getRequestToken(String callbackUrl) { String callback = (callbackUrl != null) ? callbackUrl : OUT_OF_BOUND_AUTH_METHOD; OAuth10aService service = new ServiceBuilder(apiKey) .apiSecret(sharedSecret) .callback(callback) .buil...
[ "public", "OAuth1RequestToken", "getRequestToken", "(", "String", "callbackUrl", ")", "{", "String", "callback", "=", "(", "callbackUrl", "!=", "null", ")", "?", "callbackUrl", ":", "OUT_OF_BOUND_AUTH_METHOD", ";", "OAuth10aService", "service", "=", "new", "ServiceB...
Get the OAuth request token - this is step one of authorization. @param callbackUrl optional callback URL - required for web auth flow, will be set to "oob" if not specified. @return the {@link OAuth1RequestToken}, store this for when the user returns from the Flickr website.
[ "Get", "the", "OAuth", "request", "token", "-", "this", "is", "step", "one", "of", "authorization", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/auth/AuthInterface.java#L88-L101
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/auth/AuthInterface.java
AuthInterface.getAuthorizationUrl
public String getAuthorizationUrl(OAuth1RequestToken oAuthRequestToken, Permission permission) { OAuth10aService service = new ServiceBuilder(apiKey) .apiSecret(sharedSecret) .build(FlickrApi.instance()); String authorizationUrl = service.getAuthorizationUrl(oAuthRe...
java
public String getAuthorizationUrl(OAuth1RequestToken oAuthRequestToken, Permission permission) { OAuth10aService service = new ServiceBuilder(apiKey) .apiSecret(sharedSecret) .build(FlickrApi.instance()); String authorizationUrl = service.getAuthorizationUrl(oAuthRe...
[ "public", "String", "getAuthorizationUrl", "(", "OAuth1RequestToken", "oAuthRequestToken", ",", "Permission", "permission", ")", "{", "OAuth10aService", "service", "=", "new", "ServiceBuilder", "(", "apiKey", ")", ".", "apiSecret", "(", "sharedSecret", ")", ".", "bu...
Get the auth URL, this is step two of authorization. @param oAuthRequestToken the token from a {@link AuthInterface#getRequestToken} call.
[ "Get", "the", "auth", "URL", "this", "is", "step", "two", "of", "authorization", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/auth/AuthInterface.java#L109-L116
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/auth/AuthInterface.java
AuthInterface.getAccessToken
@SuppressWarnings("boxing") public OAuth1Token getAccessToken(OAuth1RequestToken oAuthRequestToken, String verifier) { OAuth10aService service = new ServiceBuilder(apiKey) .apiSecret(sharedSecret) .build(FlickrApi.instance()); // Flickr seems to return invalid ...
java
@SuppressWarnings("boxing") public OAuth1Token getAccessToken(OAuth1RequestToken oAuthRequestToken, String verifier) { OAuth10aService service = new ServiceBuilder(apiKey) .apiSecret(sharedSecret) .build(FlickrApi.instance()); // Flickr seems to return invalid ...
[ "@", "SuppressWarnings", "(", "\"boxing\"", ")", "public", "OAuth1Token", "getAccessToken", "(", "OAuth1RequestToken", "oAuthRequestToken", ",", "String", "verifier", ")", "{", "OAuth10aService", "service", "=", "new", "ServiceBuilder", "(", "apiKey", ")", ".", "api...
Trade the request token for an access token, this is step three of authorization. @param oAuthRequestToken this is the token returned by the {@link AuthInterface#getRequestToken} call. @param verifier
[ "Trade", "the", "request", "token", "for", "an", "access", "token", "this", "is", "step", "three", "of", "authorization", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/auth/AuthInterface.java#L124-L154
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/auth/AuthInterface.java
AuthInterface.exchangeAuthToken
public OAuth1RequestToken exchangeAuthToken(String authToken) throws FlickrException { // Use TreeMap so keys are automatically sorted alphabetically Map<String, String> parameters = new TreeMap<String, String>(); parameters.put("method", METHOD_EXCHANGE_TOKEN); parameters.put(Flic...
java
public OAuth1RequestToken exchangeAuthToken(String authToken) throws FlickrException { // Use TreeMap so keys are automatically sorted alphabetically Map<String, String> parameters = new TreeMap<String, String>(); parameters.put("method", METHOD_EXCHANGE_TOKEN); parameters.put(Flic...
[ "public", "OAuth1RequestToken", "exchangeAuthToken", "(", "String", "authToken", ")", "throws", "FlickrException", "{", "// Use TreeMap so keys are automatically sorted alphabetically\r", "Map", "<", "String", ",", "String", ">", "parameters", "=", "new", "TreeMap", "<", ...
Exchange an auth token from the old Authentication API, to an OAuth access token. Calling this method will delete the auth token used to make the request. @param authToken @throws FlickrException @see "http://www.flickr.com/services/api/flickr.auth.oauth.getAccessToken.html"
[ "Exchange", "an", "auth", "token", "from", "the", "old", "Authentication", "API", "to", "an", "OAuth", "access", "token", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/auth/AuthInterface.java#L205-L222
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/auth/AuthInterface.java
AuthInterface.constructToken
private OAuth1RequestToken constructToken(Response response) { Element authElement = response.getPayload(); String oauthToken = XMLUtilities.getChildValue(authElement, "oauth_token"); String oauthTokenSecret = XMLUtilities.getChildValue(authElement, "oauth_token_secret"); OAuth1Req...
java
private OAuth1RequestToken constructToken(Response response) { Element authElement = response.getPayload(); String oauthToken = XMLUtilities.getChildValue(authElement, "oauth_token"); String oauthTokenSecret = XMLUtilities.getChildValue(authElement, "oauth_token_secret"); OAuth1Req...
[ "private", "OAuth1RequestToken", "constructToken", "(", "Response", "response", ")", "{", "Element", "authElement", "=", "response", ".", "getPayload", "(", ")", ";", "String", "oauthToken", "=", "XMLUtilities", ".", "getChildValue", "(", "authElement", ",", "\"oa...
Construct a Access Token from a Flickr Response. @param response
[ "Construct", "a", "Access", "Token", "from", "a", "Flickr", "Response", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/auth/AuthInterface.java#L251-L258
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/auth/AuthInterface.java
AuthInterface.getSignature
private String getSignature(String sharedSecret, Map<String, String> params) { StringBuffer buffer = new StringBuffer(); buffer.append(sharedSecret); for (Map.Entry<String, String> entry : params.entrySet()) { buffer.append(entry.getKey()); buffer.append(entry.getVal...
java
private String getSignature(String sharedSecret, Map<String, String> params) { StringBuffer buffer = new StringBuffer(); buffer.append(sharedSecret); for (Map.Entry<String, String> entry : params.entrySet()) { buffer.append(entry.getKey()); buffer.append(entry.getVal...
[ "private", "String", "getSignature", "(", "String", "sharedSecret", ",", "Map", "<", "String", ",", "String", ">", "params", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", ")", ";", "buffer", ".", "append", "(", "sharedSecret", ")", "...
Get a signature for a list of parameters using the given shared secret. @param sharedSecret The shared secret @param params The parameters @return The signature String
[ "Get", "a", "signature", "for", "a", "list", "of", "parameters", "using", "the", "given", "shared", "secret", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/auth/AuthInterface.java#L269-L285
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/util/UrlUtilities.java
UrlUtilities.buildUrl
@Deprecated public static URL buildUrl(String host, int port, String path, Map<String, String> parameters) throws MalformedURLException { return buildUrl("http", port, path, parameters); }
java
@Deprecated public static URL buildUrl(String host, int port, String path, Map<String, String> parameters) throws MalformedURLException { return buildUrl("http", port, path, parameters); }
[ "@", "Deprecated", "public", "static", "URL", "buildUrl", "(", "String", "host", ",", "int", "port", ",", "String", "path", ",", "Map", "<", "String", ",", "String", ">", "parameters", ")", "throws", "MalformedURLException", "{", "return", "buildUrl", "(", ...
Build a request URL. @param host The host @param port The port @param path The path @param parameters The parameters @return The URL @throws MalformedURLException @deprecated use {@link #buildSecureUrl(java.lang.String, int, java.lang.String, java.util.Map) }
[ "Build", "a", "request", "URL", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/util/UrlUtilities.java#L34-L37
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/util/UrlUtilities.java
UrlUtilities.buildUrl
public static URL buildUrl(String scheme, String host, int port, String path, Map<String, String> parameters) throws MalformedURLException { checkSchemeAndPort(scheme, port); StringBuilder buffer = new StringBuilder(); if (!host.startsWith(scheme + "://")) { buffer.append(scheme)...
java
public static URL buildUrl(String scheme, String host, int port, String path, Map<String, String> parameters) throws MalformedURLException { checkSchemeAndPort(scheme, port); StringBuilder buffer = new StringBuilder(); if (!host.startsWith(scheme + "://")) { buffer.append(scheme)...
[ "public", "static", "URL", "buildUrl", "(", "String", "scheme", ",", "String", "host", ",", "int", "port", ",", "String", "path", ",", "Map", "<", "String", ",", "String", ">", "parameters", ")", "throws", "MalformedURLException", "{", "checkSchemeAndPort", ...
Build a request URL using a given scheme. @param scheme the scheme, either {@code http} or {@code https} @param host The host @param port The port @param path The path @param parameters The parameters @return The URL @throws MalformedURLException
[ "Build", "a", "request", "URL", "using", "a", "given", "scheme", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/util/UrlUtilities.java#L54-L98
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/uploader/Uploader.java
Uploader.upload
@Override public String upload(byte[] data, UploadMetaData metaData) throws FlickrException { Payload payload = new Payload(data); return sendUploadRequest(metaData, payload); }
java
@Override public String upload(byte[] data, UploadMetaData metaData) throws FlickrException { Payload payload = new Payload(data); return sendUploadRequest(metaData, payload); }
[ "@", "Override", "public", "String", "upload", "(", "byte", "[", "]", "data", ",", "UploadMetaData", "metaData", ")", "throws", "FlickrException", "{", "Payload", "payload", "=", "new", "Payload", "(", "data", ")", ";", "return", "sendUploadRequest", "(", "m...
Upload a photo from a byte-array. @param data The photo data as a byte array @param metaData The meta data @return photoId or ticketId @throws FlickrException
[ "Upload", "a", "photo", "from", "a", "byte", "-", "array", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/uploader/Uploader.java#L74-L78
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/uploader/Uploader.java
Uploader.upload
@Override public String upload(File file, UploadMetaData metaData) throws FlickrException { Payload payload = new Payload(file); return sendUploadRequest(metaData, payload); }
java
@Override public String upload(File file, UploadMetaData metaData) throws FlickrException { Payload payload = new Payload(file); return sendUploadRequest(metaData, payload); }
[ "@", "Override", "public", "String", "upload", "(", "File", "file", ",", "UploadMetaData", "metaData", ")", "throws", "FlickrException", "{", "Payload", "payload", "=", "new", "Payload", "(", "file", ")", ";", "return", "sendUploadRequest", "(", "metaData", ",...
Upload a photo from a File. @param file the photo file @param metaData The meta data @return photoId or ticketId @throws FlickrException
[ "Upload", "a", "photo", "from", "a", "File", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/uploader/Uploader.java#L90-L94
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/uploader/Uploader.java
Uploader.upload
@Override public String upload(InputStream in, UploadMetaData metaData) throws FlickrException { Payload payload = new Payload(in); return sendUploadRequest(metaData, payload); }
java
@Override public String upload(InputStream in, UploadMetaData metaData) throws FlickrException { Payload payload = new Payload(in); return sendUploadRequest(metaData, payload); }
[ "@", "Override", "public", "String", "upload", "(", "InputStream", "in", ",", "UploadMetaData", "metaData", ")", "throws", "FlickrException", "{", "Payload", "payload", "=", "new", "Payload", "(", "in", ")", ";", "return", "sendUploadRequest", "(", "metaData", ...
Upload a photo from an InputStream. @param in @param metaData @return photoId or ticketId @throws FlickrException
[ "Upload", "a", "photo", "from", "an", "InputStream", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/uploader/Uploader.java#L104-L108
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/uploader/Uploader.java
Uploader.replace
@Override public String replace(File file, String flickrId, boolean async) throws FlickrException { Payload payload = new Payload(file, flickrId); return sendReplaceRequest(async, payload); }
java
@Override public String replace(File file, String flickrId, boolean async) throws FlickrException { Payload payload = new Payload(file, flickrId); return sendReplaceRequest(async, payload); }
[ "@", "Override", "public", "String", "replace", "(", "File", "file", ",", "String", "flickrId", ",", "boolean", "async", ")", "throws", "FlickrException", "{", "Payload", "payload", "=", "new", "Payload", "(", "file", ",", "flickrId", ")", ";", "return", "...
Replace a photo from a File. @param file @param flickrId @param async @return photoId or ticketId @throws FlickrException
[ "Replace", "a", "photo", "from", "a", "File", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/uploader/Uploader.java#L147-L151
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/uploader/Uploader.java
Uploader.getResponseString
private String getResponseString(boolean async, UploaderResponse response) { return async ? response.getTicketId() : response.getPhotoId(); }
java
private String getResponseString(boolean async, UploaderResponse response) { return async ? response.getTicketId() : response.getPhotoId(); }
[ "private", "String", "getResponseString", "(", "boolean", "async", ",", "UploaderResponse", "response", ")", "{", "return", "async", "?", "response", ".", "getTicketId", "(", ")", ":", "response", ".", "getPhotoId", "(", ")", ";", "}" ]
Get the photo or ticket id from the response. @param async @param response @return
[ "Get", "the", "photo", "or", "ticket", "id", "from", "the", "response", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/uploader/Uploader.java#L178-L180
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/photos/Photo.java
Photo.setViews
@Deprecated public void setViews(String views) { if (views != null) { try { setViews(Integer.parseInt(views)); } catch (NumberFormatException e) { setViews(-1); } } }
java
@Deprecated public void setViews(String views) { if (views != null) { try { setViews(Integer.parseInt(views)); } catch (NumberFormatException e) { setViews(-1); } } }
[ "@", "Deprecated", "public", "void", "setViews", "(", "String", "views", ")", "{", "if", "(", "views", "!=", "null", ")", "{", "try", "{", "setViews", "(", "Integer", ".", "parseInt", "(", "views", ")", ")", ";", "}", "catch", "(", "NumberFormatExcepti...
Sets the number of views for this Photo. For un-authenticated calls this value is not available and will be set to -1. @param views @deprecated attribute no longer available
[ "Sets", "the", "number", "of", "views", "for", "this", "Photo", ".", "For", "un", "-", "authenticated", "calls", "this", "value", "is", "not", "available", "and", "will", "be", "set", "to", "-", "1", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/photos/Photo.java#L461-L470
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/photos/Photo.java
Photo.setRotation
public void setRotation(String rotation) { if (rotation != null) { try { setRotation(Integer.parseInt(rotation)); } catch (NumberFormatException e) { setRotation(-1); } } }
java
public void setRotation(String rotation) { if (rotation != null) { try { setRotation(Integer.parseInt(rotation)); } catch (NumberFormatException e) { setRotation(-1); } } }
[ "public", "void", "setRotation", "(", "String", "rotation", ")", "{", "if", "(", "rotation", "!=", "null", ")", "{", "try", "{", "setRotation", "(", "Integer", ".", "parseInt", "(", "rotation", ")", ")", ";", "}", "catch", "(", "NumberFormatException", "...
Set the degrees of rotation. Value will be set to -1, if not available. @param rotation
[ "Set", "the", "degrees", "of", "rotation", ".", "Value", "will", "be", "set", "to", "-", "1", "if", "not", "available", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/photos/Photo.java#L498-L506
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/photos/Photo.java
Photo.getOriginalAsStream
@Deprecated public InputStream getOriginalAsStream() throws IOException, FlickrException { if (originalFormat != null) { return getOriginalImageAsStream("_o." + originalFormat); } return getOriginalImageAsStream(DEFAULT_ORIGINAL_IMAGE_SUFFIX); }
java
@Deprecated public InputStream getOriginalAsStream() throws IOException, FlickrException { if (originalFormat != null) { return getOriginalImageAsStream("_o." + originalFormat); } return getOriginalImageAsStream(DEFAULT_ORIGINAL_IMAGE_SUFFIX); }
[ "@", "Deprecated", "public", "InputStream", "getOriginalAsStream", "(", ")", "throws", "IOException", ",", "FlickrException", "{", "if", "(", "originalFormat", "!=", "null", ")", "{", "return", "getOriginalImageAsStream", "(", "\"_o.\"", "+", "originalFormat", ")", ...
Get an InputStream for the original image. Callers must close the stream upon completion. @deprecated @see PhotosInterface#getImageAsStream(Photo, int) @return The InputStream @throws IOException
[ "Get", "an", "InputStream", "for", "the", "original", "image", ".", "Callers", "must", "close", "the", "stream", "upon", "completion", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/photos/Photo.java#L591-L597
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/photos/Photo.java
Photo.getOriginalUrl
public String getOriginalUrl() throws FlickrException { if (originalSize == null) { if (originalFormat != null) { return getOriginalBaseImageUrl() + "_o." + originalFormat; } return getOriginalBaseImageUrl() + DEFAULT_ORIGINAL_IMAGE_SUFFIX; } els...
java
public String getOriginalUrl() throws FlickrException { if (originalSize == null) { if (originalFormat != null) { return getOriginalBaseImageUrl() + "_o." + originalFormat; } return getOriginalBaseImageUrl() + DEFAULT_ORIGINAL_IMAGE_SUFFIX; } els...
[ "public", "String", "getOriginalUrl", "(", ")", "throws", "FlickrException", "{", "if", "(", "originalSize", "==", "null", ")", "{", "if", "(", "originalFormat", "!=", "null", ")", "{", "return", "getOriginalBaseImageUrl", "(", ")", "+", "\"_o.\"", "+", "ori...
Get the original image URL. @return The original image URL
[ "Get", "the", "original", "image", "URL", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/photos/Photo.java#L604-L613
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/photos/Photo.java
Photo.getImage
@Deprecated private BufferedImage getImage(String suffix) throws IOException { StringBuffer buffer = getBaseImageUrl(); buffer.append(suffix); return _getImage(buffer.toString()); }
java
@Deprecated private BufferedImage getImage(String suffix) throws IOException { StringBuffer buffer = getBaseImageUrl(); buffer.append(suffix); return _getImage(buffer.toString()); }
[ "@", "Deprecated", "private", "BufferedImage", "getImage", "(", "String", "suffix", ")", "throws", "IOException", "{", "StringBuffer", "buffer", "=", "getBaseImageUrl", "(", ")", ";", "buffer", ".", "append", "(", "suffix", ")", ";", "return", "_getImage", "("...
Get an image using the specified URL suffix. @deprecated @param suffix The URL suffix, including the .extension @return The BufferedImage object @throws IOException
[ "Get", "an", "image", "using", "the", "specified", "URL", "suffix", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/photos/Photo.java#L865-L870
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/photos/Photo.java
Photo.getOriginalImage
@Deprecated private BufferedImage getOriginalImage(String suffix) throws IOException, FlickrException { StringBuffer buffer = getOriginalBaseImageUrl(); buffer.append(suffix); return _getImage(buffer.toString()); }
java
@Deprecated private BufferedImage getOriginalImage(String suffix) throws IOException, FlickrException { StringBuffer buffer = getOriginalBaseImageUrl(); buffer.append(suffix); return _getImage(buffer.toString()); }
[ "@", "Deprecated", "private", "BufferedImage", "getOriginalImage", "(", "String", "suffix", ")", "throws", "IOException", ",", "FlickrException", "{", "StringBuffer", "buffer", "=", "getOriginalBaseImageUrl", "(", ")", ";", "buffer", ".", "append", "(", "suffix", ...
Get the original-image using the specified URL suffix. @deprecated @see PhotosInterface#getImage(Photo, int) @param suffix The URL suffix, including the .extension @return The BufferedImage object @throws IOException @throws FlickrException
[ "Get", "the", "original", "-", "image", "using", "the", "specified", "URL", "suffix", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/photos/Photo.java#L883-L888
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/photos/Photo.java
Photo.getImageAsStream
@Deprecated private InputStream getImageAsStream(String suffix) throws IOException { StringBuffer buffer = getBaseImageUrl(); buffer.append(suffix); return _getImageAsStream(buffer.toString()); }
java
@Deprecated private InputStream getImageAsStream(String suffix) throws IOException { StringBuffer buffer = getBaseImageUrl(); buffer.append(suffix); return _getImageAsStream(buffer.toString()); }
[ "@", "Deprecated", "private", "InputStream", "getImageAsStream", "(", "String", "suffix", ")", "throws", "IOException", "{", "StringBuffer", "buffer", "=", "getBaseImageUrl", "(", ")", ";", "buffer", ".", "append", "(", "suffix", ")", ";", "return", "_getImageAs...
Get an image as a stream. Callers must be sure to close the stream when they are done with it. @deprecated @see PhotosInterface#getImageAsStream(Photo, int) @param suffix The suffix @return The InputStream @throws IOException
[ "Get", "an", "image", "as", "a", "stream", ".", "Callers", "must", "be", "sure", "to", "close", "the", "stream", "when", "they", "are", "done", "with", "it", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/photos/Photo.java#L920-L925
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/photos/Photo.java
Photo.setSizes
public void setSizes(Collection<Size> sizes) { for (Size size : sizes) { if (size.getLabel() == Size.SMALL) { smallSize = size; } else if (size.getLabel() == Size.SQUARE) { squareSize = size; } else if (size.getLabel() == Size.THUMB) { ...
java
public void setSizes(Collection<Size> sizes) { for (Size size : sizes) { if (size.getLabel() == Size.SMALL) { smallSize = size; } else if (size.getLabel() == Size.SQUARE) { squareSize = size; } else if (size.getLabel() == Size.THUMB) { ...
[ "public", "void", "setSizes", "(", "Collection", "<", "Size", ">", "sizes", ")", "{", "for", "(", "Size", "size", ":", "sizes", ")", "{", "if", "(", "size", ".", "getLabel", "(", ")", "==", "Size", ".", "SMALL", ")", "{", "smallSize", "=", "size", ...
Set sizes to override the generated URLs of the different sizes. @param sizes @see com.flickr4java.flickr.photos.PhotosInterface#getSizes(String)
[ "Set", "sizes", "to", "override", "the", "generated", "URLs", "of", "the", "different", "sizes", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/photos/Photo.java#L1044-L1084
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/photos/transform/TransformInterface.java
TransformInterface.rotate
public void rotate(String photoId, int degrees) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_ROTATE); parameters.put("photo_id", photoId); parameters.put("degrees", String.valueOf(degrees)); Resp...
java
public void rotate(String photoId, int degrees) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_ROTATE); parameters.put("photo_id", photoId); parameters.put("degrees", String.valueOf(degrees)); Resp...
[ "public", "void", "rotate", "(", "String", "photoId", ",", "int", "degrees", ")", "throws", "FlickrException", "{", "Map", "<", "String", ",", "Object", ">", "parameters", "=", "new", "HashMap", "<", "String", ",", "Object", ">", "(", ")", ";", "paramete...
Rotate the specified photo. The only allowed values for degrees are 90, 180 and 270. @param photoId The photo ID @param degrees The degrees to rotate (90, 170 or 270)
[ "Rotate", "the", "specified", "photo", ".", "The", "only", "allowed", "values", "for", "degrees", "are", "90", "180", "and", "270", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/photos/transform/TransformInterface.java#L40-L51
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/uploader/UploadMetaData.java
UploadMetaData.getUploadParameters
public Map<String, String> getUploadParameters() { Map<String, String> parameters = new TreeMap<>(); String title = getTitle(); if (title != null) { parameters.put("title", title); } String description = getDescription(); if (description != null) ...
java
public Map<String, String> getUploadParameters() { Map<String, String> parameters = new TreeMap<>(); String title = getTitle(); if (title != null) { parameters.put("title", title); } String description = getDescription(); if (description != null) ...
[ "public", "Map", "<", "String", ",", "String", ">", "getUploadParameters", "(", ")", "{", "Map", "<", "String", ",", "String", ">", "parameters", "=", "new", "TreeMap", "<>", "(", ")", ";", "String", "title", "=", "getTitle", "(", ")", ";", "if", "("...
Get the upload parameters. @return
[ "Get", "the", "upload", "parameters", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/uploader/UploadMetaData.java#L227-L268
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/photos/comments/CommentsInterface.java
CommentsInterface.deleteComment
public void deleteComment(String commentId) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_DELETE_COMMENT); parameters.put("comment_id", commentId); // Note: This method requires an HTTP POST request. ...
java
public void deleteComment(String commentId) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_DELETE_COMMENT); parameters.put("comment_id", commentId); // Note: This method requires an HTTP POST request. ...
[ "public", "void", "deleteComment", "(", "String", "commentId", ")", "throws", "FlickrException", "{", "Map", "<", "String", ",", "Object", ">", "parameters", "=", "new", "HashMap", "<", "String", ",", "Object", ">", "(", ")", ";", "parameters", ".", "put",...
Delete a comment as the currently authenticated user. This method requires authentication with 'write' permission. @param commentId The id of the comment to delete. @throws FlickrException
[ "Delete", "a", "comment", "as", "the", "currently", "authenticated", "user", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/photos/comments/CommentsInterface.java#L89-L102
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/photos/comments/CommentsInterface.java
CommentsInterface.editComment
public void editComment(String commentId, String commentText) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_EDIT_COMMENT); parameters.put("comment_id", commentId); parameters.put("comment_text", commentText)...
java
public void editComment(String commentId, String commentText) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_EDIT_COMMENT); parameters.put("comment_id", commentId); parameters.put("comment_text", commentText)...
[ "public", "void", "editComment", "(", "String", "commentId", ",", "String", "commentText", ")", "throws", "FlickrException", "{", "Map", "<", "String", ",", "Object", ">", "parameters", "=", "new", "HashMap", "<", "String", ",", "Object", ">", "(", ")", ";...
Edit the text of a comment as the currently authenticated user. This method requires authentication with 'write' permission. @param commentId The id of the comment to edit. @param commentText Update the comment to this text. @throws FlickrException
[ "Edit", "the", "text", "of", "a", "comment", "as", "the", "currently", "authenticated", "user", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/photos/comments/CommentsInterface.java#L115-L129
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/groups/members/MembersInterface.java
MembersInterface.getList
public MembersList<Member> getList(String groupId, Set<String> memberTypes, int perPage, int page) throws FlickrException { MembersList<Member> members = new MembersList<Member>(); Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_LIST); ...
java
public MembersList<Member> getList(String groupId, Set<String> memberTypes, int perPage, int page) throws FlickrException { MembersList<Member> members = new MembersList<Member>(); Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_LIST); ...
[ "public", "MembersList", "<", "Member", ">", "getList", "(", "String", "groupId", ",", "Set", "<", "String", ">", "memberTypes", ",", "int", "perPage", ",", "int", "page", ")", "throws", "FlickrException", "{", "MembersList", "<", "Member", ">", "members", ...
Get a list of the members of a group. The call must be signed on behalf of a Flickr member, and the ability to see the group membership will be determined by the Flickr member's group privileges. @param groupId Return a list of members for this group. The group must be viewable by the Flickr member on whose behalf the...
[ "Get", "a", "list", "of", "the", "members", "of", "a", "group", ".", "The", "call", "must", "be", "signed", "on", "behalf", "of", "a", "Flickr", "member", "and", "the", "ability", "to", "see", "the", "group", "membership", "will", "be", "determined", "...
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/groups/members/MembersInterface.java#L52-L85
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/photos/Size.java
Size.setLabel
public void setLabel(String label) { int ix = lstSizes.indexOf(label); if (ix != -1) { setLabel(ix); } }
java
public void setLabel(String label) { int ix = lstSizes.indexOf(label); if (ix != -1) { setLabel(ix); } }
[ "public", "void", "setLabel", "(", "String", "label", ")", "{", "int", "ix", "=", "lstSizes", ".", "indexOf", "(", "label", ")", ";", "if", "(", "ix", "!=", "-", "1", ")", "{", "setLabel", "(", "ix", ")", ";", "}", "}" ]
Set the String-representation of size. Like: Square, Thumbnail, Small, Medium, Large, Original. @param label
[ "Set", "the", "String", "-", "representation", "of", "size", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/photos/Size.java#L225-L231
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/photosets/PhotosetsInterface.java
PhotosetsInterface.create
public Photoset create(String title, String description, String primaryPhotoId) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_CREATE); parameters.put("title", title); parameters.put("description", descriptio...
java
public Photoset create(String title, String description, String primaryPhotoId) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_CREATE); parameters.put("title", title); parameters.put("description", descriptio...
[ "public", "Photoset", "create", "(", "String", "title", ",", "String", "description", ",", "String", "primaryPhotoId", ")", "throws", "FlickrException", "{", "Map", "<", "String", ",", "Object", ">", "parameters", "=", "new", "HashMap", "<", "String", ",", "...
Create a new photoset. @param title The photoset title @param description The photoset description @param primaryPhotoId The primary photo id @return The new Photset @throws FlickrException
[ "Create", "a", "new", "photoset", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/photosets/PhotosetsInterface.java#L113-L130
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/photosets/PhotosetsInterface.java
PhotosetsInterface.editMeta
public void editMeta(String photosetId, String title, String description) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_EDIT_META); parameters.put("photoset_id", photosetId); parameters.put("title", title); ...
java
public void editMeta(String photosetId, String title, String description) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_EDIT_META); parameters.put("photoset_id", photosetId); parameters.put("title", title); ...
[ "public", "void", "editMeta", "(", "String", "photosetId", ",", "String", "title", ",", "String", "description", ")", "throws", "FlickrException", "{", "Map", "<", "String", ",", "Object", ">", "parameters", "=", "new", "HashMap", "<", "String", ",", "Object...
Modify the meta-data for a photoset. @param photosetId The photoset ID @param title A new title @param description A new description (can be null) @throws FlickrException
[ "Modify", "the", "meta", "-", "data", "for", "a", "photoset", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/photosets/PhotosetsInterface.java#L162-L176
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/photosets/PhotosetsInterface.java
PhotosetsInterface.editPhotos
public void editPhotos(String photosetId, String primaryPhotoId, String[] photoIds) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_EDIT_PHOTOS); parameters.put("photoset_id", photosetId); parameters.put("prim...
java
public void editPhotos(String photosetId, String primaryPhotoId, String[] photoIds) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_EDIT_PHOTOS); parameters.put("photoset_id", photosetId); parameters.put("prim...
[ "public", "void", "editPhotos", "(", "String", "photosetId", ",", "String", "primaryPhotoId", ",", "String", "[", "]", "photoIds", ")", "throws", "FlickrException", "{", "Map", "<", "String", ",", "Object", ">", "parameters", "=", "new", "HashMap", "<", "Str...
Edit which photos are in the photoset. @param photosetId The photoset ID @param primaryPhotoId The primary photo Id @param photoIds The photo IDs for the photos in the set @throws FlickrException
[ "Edit", "which", "photos", "are", "in", "the", "photoset", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/photosets/PhotosetsInterface.java#L189-L201
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/photosets/PhotosetsInterface.java
PhotosetsInterface.getInfo
public Photoset getInfo(String photosetId) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_INFO); parameters.put("photoset_id", photosetId); Response response = transportAPI.get(transportAPI.getPath(), p...
java
public Photoset getInfo(String photosetId) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_INFO); parameters.put("photoset_id", photosetId); Response response = transportAPI.get(transportAPI.getPath(), p...
[ "public", "Photoset", "getInfo", "(", "String", "photosetId", ")", "throws", "FlickrException", "{", "Map", "<", "String", ",", "Object", ">", "parameters", "=", "new", "HashMap", "<", "String", ",", "Object", ">", "(", ")", ";", "parameters", ".", "put", ...
Get the information for a specified photoset. This method does not require authentication. @param photosetId The photoset ID @return The Photoset @throws FlickrException
[ "Get", "the", "information", "for", "a", "specified", "photoset", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/photosets/PhotosetsInterface.java#L257-L301
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/photosets/PhotosetsInterface.java
PhotosetsInterface.getPhotos
public PhotoList<Photo> getPhotos(String photosetId, Set<String> extras, int privacy_filter, int perPage, int page) throws FlickrException { PhotoList<Photo> photos = new PhotoList<Photo>(); Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_PH...
java
public PhotoList<Photo> getPhotos(String photosetId, Set<String> extras, int privacy_filter, int perPage, int page) throws FlickrException { PhotoList<Photo> photos = new PhotoList<Photo>(); Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_PH...
[ "public", "PhotoList", "<", "Photo", ">", "getPhotos", "(", "String", "photosetId", ",", "Set", "<", "String", ">", "extras", ",", "int", "privacy_filter", ",", "int", "perPage", ",", "int", "page", ")", "throws", "FlickrException", "{", "PhotoList", "<", ...
Get a collection of Photo objects for the specified Photoset. This method does not require authentication. @see com.flickr4java.flickr.photos.Extras @see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_NO_FILTER @see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_PUBLIC @see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FRIEN...
[ "Get", "a", "collection", "of", "Photo", "objects", "for", "the", "specified", "Photoset", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/photosets/PhotosetsInterface.java#L486-L527
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/photosets/PhotosetsInterface.java
PhotosetsInterface.orderSets
public void orderSets(String[] photosetIds) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_ORDER_SETS); ; parameters.put("photoset_ids", StringUtilities.join(photosetIds, ",")); Response response =...
java
public void orderSets(String[] photosetIds) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_ORDER_SETS); ; parameters.put("photoset_ids", StringUtilities.join(photosetIds, ",")); Response response =...
[ "public", "void", "orderSets", "(", "String", "[", "]", "photosetIds", ")", "throws", "FlickrException", "{", "Map", "<", "String", ",", "Object", ">", "parameters", "=", "new", "HashMap", "<", "String", ",", "Object", ">", "(", ")", ";", "parameters", "...
Set the order in which sets are returned for the user. This method requires authentication with 'write' permission. @param photosetIds An array of Ids @throws FlickrException
[ "Set", "the", "order", "in", "which", "sets", "are", "returned", "for", "the", "user", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/photosets/PhotosetsInterface.java#L565-L576
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/contacts/ContactsInterface.java
ContactsInterface.getList
public Collection<Contact> getList() throws FlickrException { ContactList<Contact> contacts = new ContactList<Contact>(); Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_LIST); Response response = transportAPI.get(transpor...
java
public Collection<Contact> getList() throws FlickrException { ContactList<Contact> contacts = new ContactList<Contact>(); Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_LIST); Response response = transportAPI.get(transpor...
[ "public", "Collection", "<", "Contact", ">", "getList", "(", ")", "throws", "FlickrException", "{", "ContactList", "<", "Contact", ">", "contacts", "=", "new", "ContactList", "<", "Contact", ">", "(", ")", ";", "Map", "<", "String", ",", "Object", ">", "...
Get the collection of contacts for the calling user. @return The Collection of Contact objects
[ "Get", "the", "collection", "of", "contacts", "for", "the", "calling", "user", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/contacts/ContactsInterface.java#L50-L88
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/contacts/ContactsInterface.java
ContactsInterface.getListRecentlyUploaded
public Collection<Contact> getListRecentlyUploaded(Date lastUpload, String filter) throws FlickrException { List<Contact> contacts = new ArrayList<Contact>(); Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_LIST_RECENTLY_UPLOADED); ...
java
public Collection<Contact> getListRecentlyUploaded(Date lastUpload, String filter) throws FlickrException { List<Contact> contacts = new ArrayList<Contact>(); Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_LIST_RECENTLY_UPLOADED); ...
[ "public", "Collection", "<", "Contact", ">", "getListRecentlyUploaded", "(", "Date", "lastUpload", ",", "String", "filter", ")", "throws", "FlickrException", "{", "List", "<", "Contact", ">", "contacts", "=", "new", "ArrayList", "<", "Contact", ">", "(", ")", ...
Return a list of contacts for a user who have recently uploaded photos along with the total count of photos uploaded. @param lastUpload Limits the resultset to contacts that have uploaded photos since this date. The date should be in the form of a Unix timestamp. The default, and maximum, offset is (1) hour. (Optional...
[ "Return", "a", "list", "of", "contacts", "for", "a", "user", "who", "have", "recently", "uploaded", "photos", "along", "with", "the", "total", "count", "of", "photos", "uploaded", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/contacts/ContactsInterface.java#L103-L142
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/contacts/ContactsInterface.java
ContactsInterface.getPublicList
public Collection<Contact> getPublicList(String userId) throws FlickrException { List<Contact> contacts = new ArrayList<Contact>(); Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_PUBLIC_LIST); parameters.put("user_id", userId); ...
java
public Collection<Contact> getPublicList(String userId) throws FlickrException { List<Contact> contacts = new ArrayList<Contact>(); Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_PUBLIC_LIST); parameters.put("user_id", userId); ...
[ "public", "Collection", "<", "Contact", ">", "getPublicList", "(", "String", "userId", ")", "throws", "FlickrException", "{", "List", "<", "Contact", ">", "contacts", "=", "new", "ArrayList", "<", "Contact", ">", "(", ")", ";", "Map", "<", "String", ",", ...
Get the collection of public contacts for the specified user ID. This method does not require authentication. @param userId The user ID @return The Collection of Contact objects @throws FlickrException
[ "Get", "the", "collection", "of", "public", "contacts", "for", "the", "specified", "user", "ID", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/contacts/ContactsInterface.java#L154-L184
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/reflection/ReflectionInterface.java
ReflectionInterface.getMethods
public Collection<String> getMethods() throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_METHODS); Response response = transport.get(transport.getPath(), parameters, apiKey, sharedSecret); if (response.isErr...
java
public Collection<String> getMethods() throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_METHODS); Response response = transport.get(transport.getPath(), parameters, apiKey, sharedSecret); if (response.isErr...
[ "public", "Collection", "<", "String", ">", "getMethods", "(", ")", "throws", "FlickrException", "{", "Map", "<", "String", ",", "Object", ">", "parameters", "=", "new", "HashMap", "<", "String", ",", "Object", ">", "(", ")", ";", "parameters", ".", "put...
Get a list of all methods. @return The method names @throws FlickrException
[ "Get", "a", "list", "of", "all", "methods", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/reflection/ReflectionInterface.java#L182-L200
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/groups/pools/PoolsInterface.java
PoolsInterface.getContext
public PhotoContext getContext(String photoId, String groupId) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_CONTEXT); parameters.put("photo_id", photoId); parameters.put("group_id", groupId); ...
java
public PhotoContext getContext(String photoId, String groupId) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_CONTEXT); parameters.put("photo_id", photoId); parameters.put("group_id", groupId); ...
[ "public", "PhotoContext", "getContext", "(", "String", "photoId", ",", "String", "groupId", ")", "throws", "FlickrException", "{", "Map", "<", "String", ",", "Object", ">", "parameters", "=", "new", "HashMap", "<", "String", ",", "Object", ">", "(", ")", "...
Get the context for a photo in the group pool. This method does not require authentication. @param photoId The photo ID @param groupId The group ID @return The PhotoContext @throws FlickrException
[ "Get", "the", "context", "for", "a", "photo", "in", "the", "group", "pool", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/groups/pools/PoolsInterface.java#L89-L117
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/groups/pools/PoolsInterface.java
PoolsInterface.getGroups
public Collection<Group> getGroups() throws FlickrException { GroupList<Group> groups = new GroupList<Group>(); Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_GROUPS); Response response = transport.get(transport.getPath(), para...
java
public Collection<Group> getGroups() throws FlickrException { GroupList<Group> groups = new GroupList<Group>(); Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_GROUPS); Response response = transport.get(transport.getPath(), para...
[ "public", "Collection", "<", "Group", ">", "getGroups", "(", ")", "throws", "FlickrException", "{", "GroupList", "<", "Group", ">", "groups", "=", "new", "GroupList", "<", "Group", ">", "(", ")", ";", "Map", "<", "String", ",", "Object", ">", "parameters...
Get a collection of all of the user's groups. @return A Collection of Group objects @throws FlickrException
[ "Get", "a", "collection", "of", "all", "of", "the", "user", "s", "groups", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/groups/pools/PoolsInterface.java#L125-L154
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/groups/pools/PoolsInterface.java
PoolsInterface.getPhotos
public PhotoList<Photo> getPhotos(String groupId, String userId, String[] tags, Set<String> extras, int perPage, int page) throws FlickrException { PhotoList<Photo> photos = new PhotoList<Photo>(); Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METH...
java
public PhotoList<Photo> getPhotos(String groupId, String userId, String[] tags, Set<String> extras, int perPage, int page) throws FlickrException { PhotoList<Photo> photos = new PhotoList<Photo>(); Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METH...
[ "public", "PhotoList", "<", "Photo", ">", "getPhotos", "(", "String", "groupId", ",", "String", "userId", ",", "String", "[", "]", "tags", ",", "Set", "<", "String", ">", "extras", ",", "int", "perPage", ",", "int", "page", ")", "throws", "FlickrExceptio...
Get the photos for the specified group pool, optionally filtering by taf. This method does not require authentication. @see com.flickr4java.flickr.photos.Extras @param groupId The group ID @param userId The user ID (may be null) @param tags The optional tags (may be null) @param extras Set of extra-attributes to incl...
[ "Get", "the", "photos", "for", "the", "specified", "group", "pool", "optionally", "filtering", "by", "taf", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/groups/pools/PoolsInterface.java#L177-L226
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/prefs/PrefsInterface.java
PrefsInterface.getGeoPerms
public int getGeoPerms() throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_GEO_PERMS); Response response = transportAPI.get(transportAPI.getPath(), parameters, apiKey, sharedSecret); if (response.isError()) ...
java
public int getGeoPerms() throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_GEO_PERMS); Response response = transportAPI.get(transportAPI.getPath(), parameters, apiKey, sharedSecret); if (response.isError()) ...
[ "public", "int", "getGeoPerms", "(", ")", "throws", "FlickrException", "{", "Map", "<", "String", ",", "Object", ">", "parameters", "=", "new", "HashMap", "<", "String", ",", "Object", ">", "(", ")", ";", "parameters", ".", "put", "(", "\"method\"", ",",...
Returns the default privacy level for geographic information attached to the user's photos. @return privacy-level @throws FlickrException @see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_NO_FILTER @see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_PUBLIC @see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FRIENDS @see com....
[ "Returns", "the", "default", "privacy", "level", "for", "geographic", "information", "attached", "to", "the", "user", "s", "photos", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/prefs/PrefsInterface.java#L86-L104
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/prefs/PrefsInterface.java
PrefsInterface.getHidden
public boolean getHidden() throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_HIDDEN); Response response = transportAPI.get(transportAPI.getPath(), parameters, apiKey, sharedSecret); if (response.isError()) {...
java
public boolean getHidden() throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_HIDDEN); Response response = transportAPI.get(transportAPI.getPath(), parameters, apiKey, sharedSecret); if (response.isError()) {...
[ "public", "boolean", "getHidden", "(", ")", "throws", "FlickrException", "{", "Map", "<", "String", ",", "Object", ">", "parameters", "=", "new", "HashMap", "<", "String", ",", "Object", ">", "(", ")", ";", "parameters", ".", "put", "(", "\"method\"", ",...
Returns the default hidden preference for the user. @return boolean hidden or not @throws FlickrException
[ "Returns", "the", "default", "hidden", "preference", "for", "the", "user", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/prefs/PrefsInterface.java#L112-L123
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/prefs/PrefsInterface.java
PrefsInterface.getSafetyLevel
public String getSafetyLevel() throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_SAFETY_LEVEL); Response response = transportAPI.get(transportAPI.getPath(), parameters, apiKey, sharedSecret); if (response.is...
java
public String getSafetyLevel() throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_SAFETY_LEVEL); Response response = transportAPI.get(transportAPI.getPath(), parameters, apiKey, sharedSecret); if (response.is...
[ "public", "String", "getSafetyLevel", "(", ")", "throws", "FlickrException", "{", "Map", "<", "String", ",", "Object", ">", "parameters", "=", "new", "HashMap", "<", "String", ",", "Object", ">", "(", ")", ";", "parameters", ".", "put", "(", "\"method\"", ...
Returns the default safety level preference for the user. @see com.flickr4java.flickr.Flickr#SAFETYLEVEL_MODERATE @see com.flickr4java.flickr.Flickr#SAFETYLEVEL_RESTRICTED @see com.flickr4java.flickr.Flickr#SAFETYLEVEL_SAFE @return The current users safety-level @throws FlickrException
[ "Returns", "the", "default", "safety", "level", "preference", "for", "the", "user", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/prefs/PrefsInterface.java#L134-L145
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/prefs/PrefsInterface.java
PrefsInterface.getPrivacy
public int getPrivacy() throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_PRIVACY); Response response = transportAPI.get(transportAPI.getPath(), parameters, apiKey, sharedSecret); if (response.isError()) { ...
java
public int getPrivacy() throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_PRIVACY); Response response = transportAPI.get(transportAPI.getPath(), parameters, apiKey, sharedSecret); if (response.isError()) { ...
[ "public", "int", "getPrivacy", "(", ")", "throws", "FlickrException", "{", "Map", "<", "String", ",", "Object", ">", "parameters", "=", "new", "HashMap", "<", "String", ",", "Object", ">", "(", ")", ";", "parameters", ".", "put", "(", "\"method\"", ",", ...
Returns the default privacy level preference for the user. @see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_NO_FILTER @see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_PUBLIC @see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FRIENDS @see com.flickr4java.flickr.Flickr#PRIVACY_LEVEL_FRIENDS_FAMILY @see com.flickr4java.fli...
[ "Returns", "the", "default", "privacy", "level", "preference", "for", "the", "user", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/prefs/PrefsInterface.java#L159-L170
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/groups/GroupsInterface.java
GroupsInterface.browse
@Deprecated public Category browse(String catId) throws FlickrException { List<Subcategory> subcategories = new ArrayList<Subcategory>(); List<Group> groups = new ArrayList<Group>(); Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHO...
java
@Deprecated public Category browse(String catId) throws FlickrException { List<Subcategory> subcategories = new ArrayList<Subcategory>(); List<Group> groups = new ArrayList<Group>(); Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHO...
[ "@", "Deprecated", "public", "Category", "browse", "(", "String", "catId", ")", "throws", "FlickrException", "{", "List", "<", "Subcategory", ">", "subcategories", "=", "new", "ArrayList", "<", "Subcategory", ">", "(", ")", ";", "List", "<", "Group", ">", ...
Browse groups for the given category ID. If a null value is passed for the category then the root category is used. @param catId The optional category id. Null value will be ignored. @return The Collection of Photo objects @throws FlickrException @deprecated Flickr returns just empty results
[ "Browse", "groups", "for", "the", "given", "category", "ID", ".", "If", "a", "null", "value", "is", "passed", "for", "the", "category", "then", "the", "root", "category", "is", "used", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/groups/GroupsInterface.java#L64-L113
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/groups/GroupsInterface.java
GroupsInterface.search
public Collection<Group> search(String text, int perPage, int page) throws FlickrException { GroupList<Group> groupList = new GroupList<Group>(); Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_SEARCH); parameters.put("text", text); ...
java
public Collection<Group> search(String text, int perPage, int page) throws FlickrException { GroupList<Group> groupList = new GroupList<Group>(); Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_SEARCH); parameters.put("text", text); ...
[ "public", "Collection", "<", "Group", ">", "search", "(", "String", "text", ",", "int", "perPage", ",", "int", "page", ")", "throws", "FlickrException", "{", "GroupList", "<", "Group", ">", "groupList", "=", "new", "GroupList", "<", "Group", ">", "(", ")...
Search for groups. 18+ groups will only be returned for authenticated calls where the authenticated user is over 18. This method does not require authentication. @param text The text to search for. @param perPage Number of groups to return per page. If this argument is 0, it defaults to 100. The maximum allowed value ...
[ "Search", "for", "groups", ".", "18", "+", "groups", "will", "only", "be", "returned", "for", "authenticated", "calls", "where", "the", "authenticated", "user", "is", "over", "18", ".", "This", "method", "does", "not", "require", "authentication", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/groups/GroupsInterface.java#L214-L246
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/groups/GroupsInterface.java
GroupsInterface.join
public void join(String groupId, Boolean acceptRules) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_JOIN); parameters.put("group_id", groupId); if (acceptRules != null) { parameters.put("accept_...
java
public void join(String groupId, Boolean acceptRules) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_JOIN); parameters.put("group_id", groupId); if (acceptRules != null) { parameters.put("accept_...
[ "public", "void", "join", "(", "String", "groupId", ",", "Boolean", "acceptRules", ")", "throws", "FlickrException", "{", "Map", "<", "String", ",", "Object", ">", "parameters", "=", "new", "HashMap", "<", "String", ",", "Object", ">", "(", ")", ";", "pa...
Join a group as a public member. Note: if a group has rules - the client must display the rules to the user and the user must accept them prior to joining the group. The acceptRules parameter indicates that the user has accepted those rules. @param groupId - the id of the group to join @param acceptRules - if a group...
[ "Join", "a", "group", "as", "a", "public", "member", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/groups/GroupsInterface.java#L261-L274
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/groups/GroupsInterface.java
GroupsInterface.joinRequest
public void joinRequest(String groupId, String message, boolean acceptRules) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_JOIN_REQUEST); parameters.put("group_id", groupId); parameters.put("message", message)...
java
public void joinRequest(String groupId, String message, boolean acceptRules) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_JOIN_REQUEST); parameters.put("group_id", groupId); parameters.put("message", message)...
[ "public", "void", "joinRequest", "(", "String", "groupId", ",", "String", "message", ",", "boolean", "acceptRules", ")", "throws", "FlickrException", "{", "Map", "<", "String", ",", "Object", ">", "parameters", "=", "new", "HashMap", "<", "String", ",", "Obj...
Request to join a group. Note: if a group has rules, the client must display the rules to the user and the user must accept them (which is indicated by passing a true value to acceptRules) prior to making the join request. @param groupId - groupId parameter @param message - (required) message to group administrator @...
[ "Request", "to", "join", "a", "group", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/groups/GroupsInterface.java#L289-L300
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/groups/GroupsInterface.java
GroupsInterface.leave
public void leave(String groupId, Boolean deletePhotos) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_LEAVE); parameters.put("group_id", groupId); parameters.put("delete_photos", deletePhotos); Resp...
java
public void leave(String groupId, Boolean deletePhotos) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_LEAVE); parameters.put("group_id", groupId); parameters.put("delete_photos", deletePhotos); Resp...
[ "public", "void", "leave", "(", "String", "groupId", ",", "Boolean", "deletePhotos", ")", "throws", "FlickrException", "{", "Map", "<", "String", ",", "Object", ">", "parameters", "=", "new", "HashMap", "<", "String", ",", "Object", ">", "(", ")", ";", "...
Leave a group. @see <a href="http://www.flickr.com/services/api/flickr.groups.leave.html">lickr.groups.leave</a> for a description of the various behaviors possible when a user leaves a group. @param groupId - the id of the group to leave @param deletePhotos - delete photos by this user from group
[ "Leave", "a", "group", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/groups/GroupsInterface.java#L313-L323
train
boncey/Flickr4Java
src/examples/java/UploadPhoto.java
UploadPhoto.setNsid
private void setNsid() throws FlickrException { if (username != null && !username.equals("")) { Auth auth = null; if (authStore != null) { auth = authStore.retrieve(username); // assuming FileAuthStore is enhanced else need to // keep in user-level files....
java
private void setNsid() throws FlickrException { if (username != null && !username.equals("")) { Auth auth = null; if (authStore != null) { auth = authStore.retrieve(username); // assuming FileAuthStore is enhanced else need to // keep in user-level files....
[ "private", "void", "setNsid", "(", ")", "throws", "FlickrException", "{", "if", "(", "username", "!=", "null", "&&", "!", "username", ".", "equals", "(", "\"\"", ")", ")", "{", "Auth", "auth", "=", "null", ";", "if", "(", "authStore", "!=", "null", "...
Check local saved copy first ??. If Auth by username is available, then we will not need to make the API call. @throws FlickrException
[ "Check", "local", "saved", "copy", "first", "??", ".", "If", "Auth", "by", "username", "is", "available", "then", "we", "will", "not", "need", "to", "make", "the", "API", "call", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/examples/java/UploadPhoto.java#L130-L163
train
boncey/Flickr4Java
src/examples/java/UploadPhoto.java
UploadPhoto.constructAuth
private Auth constructAuth(String authToken, String tokenSecret, String username) throws IOException { Auth auth = new Auth(); auth.setToken(authToken); auth.setTokenSecret(tokenSecret); // Prompt to ask what permission is needed: read, update or delete. auth.setPermission(Perm...
java
private Auth constructAuth(String authToken, String tokenSecret, String username) throws IOException { Auth auth = new Auth(); auth.setToken(authToken); auth.setTokenSecret(tokenSecret); // Prompt to ask what permission is needed: read, update or delete. auth.setPermission(Perm...
[ "private", "Auth", "constructAuth", "(", "String", "authToken", ",", "String", "tokenSecret", ",", "String", "username", ")", "throws", "IOException", "{", "Auth", "auth", "=", "new", "Auth", "(", ")", ";", "auth", ".", "setToken", "(", "authToken", ")", "...
If the Authtoken was already created in a separate program but not saved to file. @param authToken @param tokenSecret @param username @return @throws IOException
[ "If", "the", "Authtoken", "was", "already", "created", "in", "a", "separate", "program", "but", "not", "saved", "to", "file", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/examples/java/UploadPhoto.java#L199-L217
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/places/PlacesInterface.java
PlacesInterface.find
public PlacesList<Place> find(String query) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); PlacesList<Place> placesList = new PlacesList<Place>(); parameters.put("method", METHOD_FIND); parameters.put("query", query); Response re...
java
public PlacesList<Place> find(String query) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); PlacesList<Place> placesList = new PlacesList<Place>(); parameters.put("method", METHOD_FIND); parameters.put("query", query); Response re...
[ "public", "PlacesList", "<", "Place", ">", "find", "(", "String", "query", ")", "throws", "FlickrException", "{", "Map", "<", "String", ",", "Object", ">", "parameters", "=", "new", "HashMap", "<", "String", ",", "Object", ">", "(", ")", ";", "PlacesList...
Return a list of place IDs for a query string. The flickr.places.find method is not a geocoder. It will round "up" to the nearest place type to which place IDs apply. For example, if you pass it a street level address it will return the city that contains the address rather than the street, or building, itself. <p> T...
[ "Return", "a", "list", "of", "place", "IDs", "for", "a", "query", "string", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/places/PlacesInterface.java#L156-L178
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/places/PlacesInterface.java
PlacesInterface.getInfo
public Location getInfo(String placeId, String woeId) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_INFO); if (placeId != null) { parameters.put("place_id", placeId); } if (woeId !=...
java
public Location getInfo(String placeId, String woeId) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_GET_INFO); if (placeId != null) { parameters.put("place_id", placeId); } if (woeId !=...
[ "public", "Location", "getInfo", "(", "String", "placeId", ",", "String", "woeId", ")", "throws", "FlickrException", "{", "Map", "<", "String", ",", "Object", ">", "parameters", "=", "new", "HashMap", "<", "String", ",", "Object", ">", "(", ")", ";", "pa...
Get informations about a place. <p> This method does not require authentication. </p> @param placeId A Flickr Places ID. Optional, can be null. (While optional, you must pass either a valid Places ID or a WOE ID.) @param woeId A Where On Earth (WOE) ID. Optional, can be null. (While optional, you must pass either a v...
[ "Get", "informations", "about", "a", "place", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/places/PlacesInterface.java#L319-L336
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/places/PlacesInterface.java
PlacesInterface.placesForUser
public PlacesList<Place> placesForUser(int placeType, String woeId, String placeId, String threshold, Date minUploadDate, Date maxUploadDate, Date minTakenDate, Date maxTakenDate) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); PlacesList<Place> pl...
java
public PlacesList<Place> placesForUser(int placeType, String woeId, String placeId, String threshold, Date minUploadDate, Date maxUploadDate, Date minTakenDate, Date maxTakenDate) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); PlacesList<Place> pl...
[ "public", "PlacesList", "<", "Place", ">", "placesForUser", "(", "int", "placeType", ",", "String", "woeId", ",", "String", "placeId", ",", "String", "threshold", ",", "Date", "minUploadDate", ",", "Date", "maxUploadDate", ",", "Date", "minTakenDate", ",", "Da...
Return a list of the top 100 unique places clustered by a given placetype for a user. @param placeType Use Type-constants at {@link Place} @param woeId A Where On Earth (WOE) ID. Optional, can be null. @param placeId A Flickr Places ID. Optional, can be null. @param threshold The minimum number of photos that a place ...
[ "Return", "a", "list", "of", "the", "top", "100", "unique", "places", "clustered", "by", "a", "given", "placetype", "for", "a", "user", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/places/PlacesInterface.java#L724-L768
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/places/PlacesInterface.java
PlacesInterface.resolvePlaceId
@Deprecated public Location resolvePlaceId(String placeId) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_RESOLVE_PLACE_ID); parameters.put("place_id", placeId); Response response = transportAPI.get(tr...
java
@Deprecated public Location resolvePlaceId(String placeId) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_RESOLVE_PLACE_ID); parameters.put("place_id", placeId); Response response = transportAPI.get(tr...
[ "@", "Deprecated", "public", "Location", "resolvePlaceId", "(", "String", "placeId", ")", "throws", "FlickrException", "{", "Map", "<", "String", ",", "Object", ">", "parameters", "=", "new", "HashMap", "<", "String", ",", "Object", ">", "(", ")", ";", "pa...
Find Flickr Places information by Place ID. @deprecated This method has been deprecated. It won't be removed but you should use {@link #getInfo(String, String)} instead. @param placeId @return A Location @throws FlickrException
[ "Find", "Flickr", "Places", "information", "by", "Place", "ID", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/places/PlacesInterface.java#L778-L791
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/places/PlacesInterface.java
PlacesInterface.resolvePlaceURL
@Deprecated public Location resolvePlaceURL(String flickrPlacesUrl) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_RESOLVE_PLACE_URL); parameters.put("url", flickrPlacesUrl); Response response = transp...
java
@Deprecated public Location resolvePlaceURL(String flickrPlacesUrl) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_RESOLVE_PLACE_URL); parameters.put("url", flickrPlacesUrl); Response response = transp...
[ "@", "Deprecated", "public", "Location", "resolvePlaceURL", "(", "String", "flickrPlacesUrl", ")", "throws", "FlickrException", "{", "Map", "<", "String", ",", "Object", ">", "parameters", "=", "new", "HashMap", "<", "String", ",", "Object", ">", "(", ")", "...
Find Flickr Places information by Place URL. <p> This method does not require authentication. </p> @deprecated This method has been deprecated. It won't be removed but you should use {@link PlacesInterface#getInfoByUrl(String)} instead. @param flickrPlacesUrl @return A Location @throws FlickrException
[ "Find", "Flickr", "Places", "information", "by", "Place", "URL", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/places/PlacesInterface.java#L805-L818
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/groups/discuss/GroupDiscussInterface.java
GroupDiscussInterface.getTopicsList
public TopicList<Topic> getTopicsList(String groupId, int perPage, int page) throws FlickrException { TopicList<Topic> topicList = new TopicList<Topic>(); Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_TOPICS_GET_LIST); parameters.pu...
java
public TopicList<Topic> getTopicsList(String groupId, int perPage, int page) throws FlickrException { TopicList<Topic> topicList = new TopicList<Topic>(); Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_TOPICS_GET_LIST); parameters.pu...
[ "public", "TopicList", "<", "Topic", ">", "getTopicsList", "(", "String", "groupId", ",", "int", "perPage", ",", "int", "page", ")", "throws", "FlickrException", "{", "TopicList", "<", "Topic", ">", "topicList", "=", "new", "TopicList", "<", "Topic", ">", ...
Get a list of topics from a group. @param groupId Unique identifier of a group returns a list of topics for a given group {@link Group}. @param perPage Number of records per page. @param page Result-section. @return A group topic list @throws FlickrException @see <a href="http://www.flickr.com/services/api/flickr.grou...
[ "Get", "a", "list", "of", "topics", "from", "a", "group", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/groups/discuss/GroupDiscussInterface.java#L54-L93
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/groups/discuss/GroupDiscussInterface.java
GroupDiscussInterface.getTopicInfo
public Topic getTopicInfo(String topicId) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_TOPICS_GET_INFO); parameters.put("topic_id", topicId); Response response = transportAPI.get(transportAPI.getPath(), par...
java
public Topic getTopicInfo(String topicId) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_TOPICS_GET_INFO); parameters.put("topic_id", topicId); Response response = transportAPI.get(transportAPI.getPath(), par...
[ "public", "Topic", "getTopicInfo", "(", "String", "topicId", ")", "throws", "FlickrException", "{", "Map", "<", "String", ",", "Object", ">", "parameters", "=", "new", "HashMap", "<", "String", ",", "Object", ">", "(", ")", ";", "parameters", ".", "put", ...
Get info for a given topic @param topicId Unique identifier of a topic for a given group {@link Topic}. @return A group topic @throws FlickrException @see <a href="http://www.flickr.com/services/api/flickr.groups.discuss.topics.getInfo.html">API Documentation</a>
[ "Get", "info", "for", "a", "given", "topic" ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/groups/discuss/GroupDiscussInterface.java#L104-L117
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/groups/discuss/GroupDiscussInterface.java
GroupDiscussInterface.getReplyList
public ReplyObject getReplyList(String topicId, int perPage, int page) throws FlickrException { ReplyList<Reply> reply = new ReplyList<Reply>(); TopicList<Topic> topic = new TopicList<Topic>(); Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", M...
java
public ReplyObject getReplyList(String topicId, int perPage, int page) throws FlickrException { ReplyList<Reply> reply = new ReplyList<Reply>(); TopicList<Topic> topic = new TopicList<Topic>(); Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", M...
[ "public", "ReplyObject", "getReplyList", "(", "String", "topicId", ",", "int", "perPage", ",", "int", "page", ")", "throws", "FlickrException", "{", "ReplyList", "<", "Reply", ">", "reply", "=", "new", "ReplyList", "<", "Reply", ">", "(", ")", ";", "TopicL...
Get list of replies @param topicId Unique identifier of a topic for a given group {@link Topic}. @return A reply object @throws FlickrException @see <a href="http://www.flickr.com/services/api/flickr.groups.discuss.replies.getList.html">API Documentation</a>
[ "Get", "list", "of", "replies" ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/groups/discuss/GroupDiscussInterface.java#L128-L167
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/groups/discuss/GroupDiscussInterface.java
GroupDiscussInterface.getReplyInfo
public Reply getReplyInfo(String topicId, String replyId) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_REPLIES_GET_INFO); parameters.put("topic_id", topicId); parameters.put("reply_id", replyId); R...
java
public Reply getReplyInfo(String topicId, String replyId) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("method", METHOD_REPLIES_GET_INFO); parameters.put("topic_id", topicId); parameters.put("reply_id", replyId); R...
[ "public", "Reply", "getReplyInfo", "(", "String", "topicId", ",", "String", "replyId", ")", "throws", "FlickrException", "{", "Map", "<", "String", ",", "Object", ">", "parameters", "=", "new", "HashMap", "<", "String", ",", "Object", ">", "(", ")", ";", ...
Get info for a given topic reply @param topicId Unique identifier of a topic for a given group {@link Topic}. @param replyId Unique identifier of a reply for a given topic {@link Reply}. @return A group topic @throws FlickrException @see <a href="http://www.flickr.com/services/api/flickr.groups.discuss.replies.getInfo...
[ "Get", "info", "for", "a", "given", "topic", "reply" ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/groups/discuss/GroupDiscussInterface.java#L180-L194
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/machinetags/MachinetagsInterface.java
MachinetagsInterface.getNamespaces
public NamespacesList<Namespace> getNamespaces(String predicate, int perPage, int page) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); NamespacesList<Namespace> nsList = new NamespacesList<Namespace>(); parameters.put("method", METHOD_GET_NAMESPACES);...
java
public NamespacesList<Namespace> getNamespaces(String predicate, int perPage, int page) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); NamespacesList<Namespace> nsList = new NamespacesList<Namespace>(); parameters.put("method", METHOD_GET_NAMESPACES);...
[ "public", "NamespacesList", "<", "Namespace", ">", "getNamespaces", "(", "String", "predicate", ",", "int", "perPage", ",", "int", "page", ")", "throws", "FlickrException", "{", "Map", "<", "String", ",", "Object", ">", "parameters", "=", "new", "HashMap", "...
Return a list of unique namespaces, optionally limited by a given predicate, in alphabetical order. This method does not require authentication. @param predicate @param perPage @param page @return NamespacesList @throws FlickrException
[ "Return", "a", "list", "of", "unique", "namespaces", "optionally", "limited", "by", "a", "given", "predicate", "in", "alphabetical", "order", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/machinetags/MachinetagsInterface.java#L266-L296
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/machinetags/MachinetagsInterface.java
MachinetagsInterface.getPairs
public NamespacesList<Pair> getPairs(String namespace, String predicate, int perPage, int page) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); NamespacesList<Pair> nsList = new NamespacesList<Pair>(); parameters.put("method", METHOD_GET_PAIRS); ...
java
public NamespacesList<Pair> getPairs(String namespace, String predicate, int perPage, int page) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); NamespacesList<Pair> nsList = new NamespacesList<Pair>(); parameters.put("method", METHOD_GET_PAIRS); ...
[ "public", "NamespacesList", "<", "Pair", ">", "getPairs", "(", "String", "namespace", ",", "String", "predicate", ",", "int", "perPage", ",", "int", "page", ")", "throws", "FlickrException", "{", "Map", "<", "String", ",", "Object", ">", "parameters", "=", ...
Return a list of unique namespace and predicate pairs, optionally limited by predicate or namespace, in alphabetical order. This method does not require authentication. @param namespace optional, can be null @param predicate optional, can be null @param perPage The number of photos to show per page @param page The pa...
[ "Return", "a", "list", "of", "unique", "namespace", "and", "predicate", "pairs", "optionally", "limited", "by", "predicate", "or", "namespace", "in", "alphabetical", "order", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/machinetags/MachinetagsInterface.java#L314-L347
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/machinetags/MachinetagsInterface.java
MachinetagsInterface.getValues
public NamespacesList<Value> getValues(String namespace, String predicate, int perPage, int page) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); NamespacesList<Value> valuesList = new NamespacesList<Value>(); parameters.put("method", METHOD_GET_VALUES...
java
public NamespacesList<Value> getValues(String namespace, String predicate, int perPage, int page) throws FlickrException { Map<String, Object> parameters = new HashMap<String, Object>(); NamespacesList<Value> valuesList = new NamespacesList<Value>(); parameters.put("method", METHOD_GET_VALUES...
[ "public", "NamespacesList", "<", "Value", ">", "getValues", "(", "String", "namespace", ",", "String", "predicate", ",", "int", "perPage", ",", "int", "page", ")", "throws", "FlickrException", "{", "Map", "<", "String", ",", "Object", ">", "parameters", "=",...
Return a list of unique values for a namespace and predicate. This method does not require authentication. @param namespace The namespace that all values should be restricted to. @param predicate The predicate that all values should be restricted to. @param perPage The number of photos to show per page @param page Th...
[ "Return", "a", "list", "of", "unique", "values", "for", "a", "namespace", "and", "predicate", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/machinetags/MachinetagsInterface.java#L411-L447
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/util/StringUtilities.java
StringUtilities.join
public static String join(Collection<String> s, String delimiter, boolean doQuote) { StringBuffer buffer = new StringBuffer(); Iterator<String> iter = s.iterator(); while (iter.hasNext()) { if (doQuote) { buffer.append("\"" + iter.next() + "\""); } e...
java
public static String join(Collection<String> s, String delimiter, boolean doQuote) { StringBuffer buffer = new StringBuffer(); Iterator<String> iter = s.iterator(); while (iter.hasNext()) { if (doQuote) { buffer.append("\"" + iter.next() + "\""); } e...
[ "public", "static", "String", "join", "(", "Collection", "<", "String", ">", "s", ",", "String", "delimiter", ",", "boolean", "doQuote", ")", "{", "StringBuffer", "buffer", "=", "new", "StringBuffer", "(", ")", ";", "Iterator", "<", "String", ">", "iter", ...
Join the Collection of Strings using the specified delimter and optionally quoting each @param s The String collection @param delimiter the delimiter String @param doQuote whether or not to quote the Strings @return The joined String
[ "Join", "the", "Collection", "of", "Strings", "using", "the", "specified", "delimter", "and", "optionally", "quoting", "each" ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/util/StringUtilities.java#L50-L64
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/util/StringUtilities.java
StringUtilities.join
public static String join(Collection<String> s, String delimiter) { return join(s, delimiter, false); }
java
public static String join(Collection<String> s, String delimiter) { return join(s, delimiter, false); }
[ "public", "static", "String", "join", "(", "Collection", "<", "String", ">", "s", ",", "String", "delimiter", ")", "{", "return", "join", "(", "s", ",", "delimiter", ",", "false", ")", ";", "}" ]
Join the Collection of Strings using the specified delimiter. @param s The String collection @param delimiter The delimiter String @return The joined String
[ "Join", "the", "Collection", "of", "Strings", "using", "the", "specified", "delimiter", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/util/StringUtilities.java#L75-L77
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/stats/StatsInterface.java
StatsInterface.getCollectionDomains
public DomainList getCollectionDomains(Date date, String collectionId, int perPage, int page) throws FlickrException { return getDomains(METHOD_GET_COLLECTION_DOMAINS, "collection_id", collectionId, date, perPage, page); }
java
public DomainList getCollectionDomains(Date date, String collectionId, int perPage, int page) throws FlickrException { return getDomains(METHOD_GET_COLLECTION_DOMAINS, "collection_id", collectionId, date, perPage, page); }
[ "public", "DomainList", "getCollectionDomains", "(", "Date", "date", ",", "String", "collectionId", ",", "int", "perPage", ",", "int", "page", ")", "throws", "FlickrException", "{", "return", "getDomains", "(", "METHOD_GET_COLLECTION_DOMAINS", ",", "\"collection_id\""...
Get a list of referring domains for a collection. @param date (Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will automatically be rounded down to the start of the day. @param collectionId (Optional) The id of the collection to get ...
[ "Get", "a", "list", "of", "referring", "domains", "for", "a", "collection", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/stats/StatsInterface.java#L95-L97
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/stats/StatsInterface.java
StatsInterface.getCollectionReferrers
public ReferrerList getCollectionReferrers(Date date, String domain, String collectionId, int perPage, int page) throws FlickrException { return getReferrers(METHOD_GET_COLLECTION_REFERRERS, domain, "collection_id", collectionId, date, perPage, page); }
java
public ReferrerList getCollectionReferrers(Date date, String domain, String collectionId, int perPage, int page) throws FlickrException { return getReferrers(METHOD_GET_COLLECTION_REFERRERS, domain, "collection_id", collectionId, date, perPage, page); }
[ "public", "ReferrerList", "getCollectionReferrers", "(", "Date", "date", ",", "String", "domain", ",", "String", "collectionId", ",", "int", "perPage", ",", "int", "page", ")", "throws", "FlickrException", "{", "return", "getReferrers", "(", "METHOD_GET_COLLECTION_R...
Get a list of referrers from a given domain to a collection. @param date (Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will automatically be rounded down to the start of the day. @param domain (Required) The domain to return referr...
[ "Get", "a", "list", "of", "referrers", "from", "a", "given", "domain", "to", "a", "collection", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/stats/StatsInterface.java#L115-L117
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/stats/StatsInterface.java
StatsInterface.getCollectionStats
public Stats getCollectionStats(String collectionId, Date date) throws FlickrException { return getStats(METHOD_GET_COLLECTION_STATS, "collection_id", collectionId, date); }
java
public Stats getCollectionStats(String collectionId, Date date) throws FlickrException { return getStats(METHOD_GET_COLLECTION_STATS, "collection_id", collectionId, date); }
[ "public", "Stats", "getCollectionStats", "(", "String", "collectionId", ",", "Date", "date", ")", "throws", "FlickrException", "{", "return", "getStats", "(", "METHOD_GET_COLLECTION_STATS", ",", "\"collection_id\"", ",", "collectionId", ",", "date", ")", ";", "}" ]
Get the number of views, comments and favorites on a collection for a given date. @param date (Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will automatically be rounded down to the start of the day. @param collectionId (Required) ...
[ "Get", "the", "number", "of", "views", "comments", "and", "favorites", "on", "a", "collection", "for", "a", "given", "date", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/stats/StatsInterface.java#L129-L131
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/stats/StatsInterface.java
StatsInterface.getPhotoDomains
public DomainList getPhotoDomains(Date date, String photoId, int perPage, int page) throws FlickrException { return getDomains(METHOD_GET_PHOTO_DOMAINS, "photo_id", photoId, date, perPage, page); }
java
public DomainList getPhotoDomains(Date date, String photoId, int perPage, int page) throws FlickrException { return getDomains(METHOD_GET_PHOTO_DOMAINS, "photo_id", photoId, date, perPage, page); }
[ "public", "DomainList", "getPhotoDomains", "(", "Date", "date", ",", "String", "photoId", ",", "int", "perPage", ",", "int", "page", ")", "throws", "FlickrException", "{", "return", "getDomains", "(", "METHOD_GET_PHOTO_DOMAINS", ",", "\"photo_id\"", ",", "photoId"...
Get a list of referring domains for a photo. @param date (Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will automatically be rounded down to the start of the day. @param photoId (Optional) The id of the photo to get stats for. If n...
[ "Get", "a", "list", "of", "referring", "domains", "for", "a", "photo", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/stats/StatsInterface.java#L168-L170
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/stats/StatsInterface.java
StatsInterface.getPhotoReferrers
public ReferrerList getPhotoReferrers(Date date, String domain, String photoId, int perPage, int page) throws FlickrException { return getReferrers(METHOD_GET_PHOTO_REFERRERS, domain, "photo_id", photoId, date, perPage, page); }
java
public ReferrerList getPhotoReferrers(Date date, String domain, String photoId, int perPage, int page) throws FlickrException { return getReferrers(METHOD_GET_PHOTO_REFERRERS, domain, "photo_id", photoId, date, perPage, page); }
[ "public", "ReferrerList", "getPhotoReferrers", "(", "Date", "date", ",", "String", "domain", ",", "String", "photoId", ",", "int", "perPage", ",", "int", "page", ")", "throws", "FlickrException", "{", "return", "getReferrers", "(", "METHOD_GET_PHOTO_REFERRERS", ",...
Get a list of referrers from a given domain to a photo. @param date (Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will automatically be rounded down to the start of the day. @param domain (Required) The domain to return referrers f...
[ "Get", "a", "list", "of", "referrers", "from", "a", "given", "domain", "to", "a", "photo", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/stats/StatsInterface.java#L188-L190
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/stats/StatsInterface.java
StatsInterface.getPhotoStats
public Stats getPhotoStats(String photoId, Date date) throws FlickrException { return getStats(METHOD_GET_PHOTO_STATS, "photo_id", photoId, date); }
java
public Stats getPhotoStats(String photoId, Date date) throws FlickrException { return getStats(METHOD_GET_PHOTO_STATS, "photo_id", photoId, date); }
[ "public", "Stats", "getPhotoStats", "(", "String", "photoId", ",", "Date", "date", ")", "throws", "FlickrException", "{", "return", "getStats", "(", "METHOD_GET_PHOTO_STATS", ",", "\"photo_id\"", ",", "photoId", ",", "date", ")", ";", "}" ]
Get the number of views, comments and favorites on a photo for a given date. @param date (Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will automatically be rounded down to the start of the day. @param photoId (Required) The id of ...
[ "Get", "the", "number", "of", "views", "comments", "and", "favorites", "on", "a", "photo", "for", "a", "given", "date", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/stats/StatsInterface.java#L202-L204
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/stats/StatsInterface.java
StatsInterface.getPhotosetDomains
public DomainList getPhotosetDomains(Date date, String photosetId, int perPage, int page) throws FlickrException { return getDomains(METHOD_GET_PHOTOSET_DOMAINS, "photoset_id", photosetId, date, perPage, page); }
java
public DomainList getPhotosetDomains(Date date, String photosetId, int perPage, int page) throws FlickrException { return getDomains(METHOD_GET_PHOTOSET_DOMAINS, "photoset_id", photosetId, date, perPage, page); }
[ "public", "DomainList", "getPhotosetDomains", "(", "Date", "date", ",", "String", "photosetId", ",", "int", "perPage", ",", "int", "page", ")", "throws", "FlickrException", "{", "return", "getDomains", "(", "METHOD_GET_PHOTOSET_DOMAINS", ",", "\"photoset_id\"", ",",...
Get a list of referring domains for a photoset. @param date (Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will automatically be rounded down to the start of the day. @param photosetId (Optional) The id of the photoset to get stats ...
[ "Get", "a", "list", "of", "referring", "domains", "for", "a", "photoset", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/stats/StatsInterface.java#L220-L222
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/stats/StatsInterface.java
StatsInterface.getPhotosetReferrers
public ReferrerList getPhotosetReferrers(Date date, String domain, String photosetId, int perPage, int page) throws FlickrException { return getReferrers(METHOD_GET_PHOTOSET_REFERRERS, domain, "photoset_id", photosetId, date, perPage, page); }
java
public ReferrerList getPhotosetReferrers(Date date, String domain, String photosetId, int perPage, int page) throws FlickrException { return getReferrers(METHOD_GET_PHOTOSET_REFERRERS, domain, "photoset_id", photosetId, date, perPage, page); }
[ "public", "ReferrerList", "getPhotosetReferrers", "(", "Date", "date", ",", "String", "domain", ",", "String", "photosetId", ",", "int", "perPage", ",", "int", "page", ")", "throws", "FlickrException", "{", "return", "getReferrers", "(", "METHOD_GET_PHOTOSET_REFERRE...
Get a list of referrers from a given domain to a photoset. @param date (Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will automatically be rounded down to the start of the day. @param domain (Required) The domain to return referrer...
[ "Get", "a", "list", "of", "referrers", "from", "a", "given", "domain", "to", "a", "photoset", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/stats/StatsInterface.java#L240-L242
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/stats/StatsInterface.java
StatsInterface.getPhotosetStats
public Stats getPhotosetStats(String photosetId, Date date) throws FlickrException { return getStats(METHOD_GET_PHOTOSET_STATS, "photoset_id", photosetId, date); }
java
public Stats getPhotosetStats(String photosetId, Date date) throws FlickrException { return getStats(METHOD_GET_PHOTOSET_STATS, "photoset_id", photosetId, date); }
[ "public", "Stats", "getPhotosetStats", "(", "String", "photosetId", ",", "Date", "date", ")", "throws", "FlickrException", "{", "return", "getStats", "(", "METHOD_GET_PHOTOSET_STATS", ",", "\"photoset_id\"", ",", "photosetId", ",", "date", ")", ";", "}" ]
Get the number of views, comments and favorites on a photoset for a given date. @param date (Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will automatically be rounded down to the start of the day. @param photosetId (Required) The ...
[ "Get", "the", "number", "of", "views", "comments", "and", "favorites", "on", "a", "photoset", "for", "a", "given", "date", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/stats/StatsInterface.java#L254-L256
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/stats/StatsInterface.java
StatsInterface.getPhotostreamDomains
public DomainList getPhotostreamDomains(Date date, int perPage, int page) throws FlickrException { return getDomains(METHOD_GET_PHOTOSTREAM_DOMAINS, null, null, date, perPage, page); }
java
public DomainList getPhotostreamDomains(Date date, int perPage, int page) throws FlickrException { return getDomains(METHOD_GET_PHOTOSTREAM_DOMAINS, null, null, date, perPage, page); }
[ "public", "DomainList", "getPhotostreamDomains", "(", "Date", "date", ",", "int", "perPage", ",", "int", "page", ")", "throws", "FlickrException", "{", "return", "getDomains", "(", "METHOD_GET_PHOTOSTREAM_DOMAINS", ",", "null", ",", "null", ",", "date", ",", "pe...
Get a list of referring domains for a photostream. @param date (Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will automatically be rounded down to the start of the day. @param perPage (Optional) Number of domains to return per page...
[ "Get", "a", "list", "of", "referring", "domains", "for", "a", "photostream", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/stats/StatsInterface.java#L270-L273
train
boncey/Flickr4Java
src/main/java/com/flickr4java/flickr/stats/StatsInterface.java
StatsInterface.getPhotostreamReferrers
public ReferrerList getPhotostreamReferrers(Date date, String domain, int perPage, int page) throws FlickrException { return getReferrers(METHOD_GET_PHOTOSTREAM_REFERRERS, domain, null, null, date, perPage, page); }
java
public ReferrerList getPhotostreamReferrers(Date date, String domain, int perPage, int page) throws FlickrException { return getReferrers(METHOD_GET_PHOTOSTREAM_REFERRERS, domain, null, null, date, perPage, page); }
[ "public", "ReferrerList", "getPhotostreamReferrers", "(", "Date", "date", ",", "String", "domain", ",", "int", "perPage", ",", "int", "page", ")", "throws", "FlickrException", "{", "return", "getReferrers", "(", "METHOD_GET_PHOTOSTREAM_REFERRERS", ",", "domain", ","...
Get a list of referrers from a given domain to a user's photostream. @param date (Required) Stats will be returned for this date. A day according to Flickr Stats starts at midnight GMT for all users, and timestamps will automatically be rounded down to the start of the day. @param domain (Required) The domain to retur...
[ "Get", "a", "list", "of", "referrers", "from", "a", "given", "domain", "to", "a", "user", "s", "photostream", "." ]
f66987ba0e360e5fb7730efbbb8c51f3d978fc25
https://github.com/boncey/Flickr4Java/blob/f66987ba0e360e5fb7730efbbb8c51f3d978fc25/src/main/java/com/flickr4java/flickr/stats/StatsInterface.java#L289-L291
train