0 Replies Latest reply on Feb 12, 2015 12:11 PM by baronzemm

    Using the rest api to get UPDATED avatars?

    baronzemm

      I noticed from the JSON that comes back from a user request:

       

       

      "avatar" : {

        "allowed" : [ "GET" ],

        "ref" : "https://jiveinstance/api/core/v3/people/2021/avatar?a=26760"

        },

       

      ....

       

      "images" : {

        "allowed" : [ "POST", "GET" ],

        "ref" : "https://jiveinstance/api/core/v3/people/2021/images"

        },

       

      The avatar call pulls back the avatar.

       

      The images call pulls back the profile photos with alot more info.

      "list" : [ {

        "id" : "18370",

        "resources" : {

        "self" : {

        "allowed" : [ "POST", "GET", "DELETE" ],

        "ref" : "https://jiveinstance/api/core/v3/people/2021/images/1"

        }

        },

        "published" : "2013-11-05T15:17:31.821+0000",

        "updated" : "2013-11-05T15:17:31.821+0000",

        "contentType" : "image/png",

        "index" : 1,

        "ref" : "https://jiveinstance/api/core/v3/people/2021/images/1/data",

        "status" : "published",

        "type" : "profileImage"

        },

      The published and updated date seems interesting.

       

      We are looking at pulling the images out of jive for avatars and loading them into other systems.

      Problem is we want to do deltas instead of a dump of 100k images every night.

       

      Top of my head thoughts:

      - Compare dates somehow

      - Keep a checksum of the file somewhere and compare the checksums

      - I need to also filter out the default avatars so ill probably have to do a checksum there as well?

       

      Anyone have any other thoughts on this?