java code to get all posts from Tumblr using the tag name -
i have tried posts tumblr using tag.
http://api.tumblr.com/v2/tagged?tag=hadoop&api_key=*****
i can write http client , can json , parse accordingly. want know information supported tumblr java api access this.
i tried com.tumblr.jumblr.jumblrclient
didnot found method supports requirement. can 1 suggest me in this.
if @ jumblrclient.java in github can see method:
/** * tagged posts * @param tag tag search * @param options options call (or null) * @return list of posts */ public list<post> tagged(string tag, map<string, ?> options) { if (options == null) { options = collections.emptymap(); } map<string, object> soptions = jumblrclient.safeoptionmap(options); soptions.put("api_key", apikey); soptions.put("tag", tag); return requestbuilder.get("/tagged", soptions).gettaggedposts(); }
https://github.com/tumblr/jumblr/blob/master/src/main/java/com/tumblr/jumblr/jumblrclient.java
https://github.com/tumblr/jumblr#tagged
based on documentation should need. builds same request have mentioned in question.
edit: based on tumblr api documentation not possible ask more 20 posts.
limit - number of results return: 1–20, inclusive
Comments
Post a Comment