tumblr / jumblr

Tumblr API v2 Java Client
Apache License 2.0
278 stars 105 forks source link

using the Jumblr api to get Note only displays null even though there are notes. #120

Closed walterqmason3 closed 6 years ago

walterqmason3 commented 6 years ago

I have the following code:

  Post p = javaclient.blogPost("theblogname", i);
  List<Note> n = p.getNotes();

When I look at n it returns null but when I look at the notes count from the post it shows 15. There are 12 likes and 2 reblogs plus an emoji note. I want to be able to see who liked and rebloged the post that I reblogged but the code only shows null. Any ideas

walterqmason3 commented 6 years ago

This isn't a problem rather my lack of understanding. All I had to do is set the notes_info flag equal to true. It looks something like this.

  Map<String, Object> params = new HashMap<String, Object>();
  params.put("limit", 19);
  params.put("offset", 0);
  params.put("notes_info", true);

I wish I knew what all the options are though.