Viewing 1 replies (of 1 total)
  • I couldn`t do it directly, but to do that you need to install this plugin
    then get your Json Object:
    1. JSONObject json = getJSONFromUrl(loginParam);

    get the User id
    2. JSONObject userObject = json.getJSONObject(“user”);
    String sId = userObject.getString(“id”);

    get avatar bu user id
    3. String userAvatar = blogUrl + “api/user/get_avatar/?user_id=” + sId + “&type=full” + “&username” + userNameString + “&password=” + passWordString;
    JSONObject objectAvatar = getJSONFromUrl(userAvatar);
    String sAvatar = objectAvatar.getString(“avatar”);

    hope it helped!

Viewing 1 replies (of 1 total)
  • The topic ‘how to retrieve author avatar’ is closed to new replies.