tumblr / jumblr

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

Get avatar Blog #119

Open pedromanjarresserrano opened 6 years ago

pedromanjarresserrano commented 6 years ago

When i try to get the avatar of a blog throw a JumblrException "Found", debugging i notice that the getRedirectUrl() get a response code 302 and with the response is the avartar, but there is a if condition that only is good with 301

sorry for my english.

jasonpenny commented 6 years ago

I think you are using an old version of jumblr, this should have been fixed by https://github.com/tumblr/jumblr/pull/116

byteinsight commented 6 years ago

Hi, I'm also getting issues with retrieving the avatars and I believe it relates to

Requests that are not signed using OAuth1 will receive the requested avatar in PNG format, while requests that are signed will receive a response of the following form:

where the following form is a URL/String. As the maven 0.0.11 libs expect a string/url and a PNG is being returned it is causing me some issues.

pedromanjarresserrano commented 6 years ago

Hi, the problem is the version in maven central repo, fix it by downloading the source code in the last commit, put it as if it were 0.0.11 then compiled it and put it in the local maven repo, if you are using gradle you have to put it in local gradle repo

Sorry for my english.

byteinsight commented 6 years ago

Hi Pedrioko, Thanks for the help. Excuse my ignorance but whats the easiest way to compile the source files into the single jar I see in the current Maven?

PS: Your english is great!