0 Replies Latest reply on May 11, 2015 1:24 AM by dpuscau

    How can I find image id?

    dpuscau

      Hello,

       

      I'm trying to download pictures from people profile via cURL.

       

      for example, to find user's images I do this:

       

      curl -v -email:password 'https://example.jiveon.com/api/core/v3/people/2025/images'

       

      I received this array:

       

      "list" : [ {

          "id" : "2046",

          "resources" : {

            "self" : {

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

              "ref" : "https://example.jiveon.com/api/core/v3/people/2025/images/1"

            }

          },

          "published" : "2015-01-29T16:28:37.286+0000",

          "updated" : "2015-01-29T16:28:37.286+0000",

          "contentType" : "image/png",

          "index" : 1,

          "ref" : "https://example.jiveon.com/api/core/v3/people/2025/images/1/data",

          "status" : "published",

          "type" : "profileImage"

        }, {

          "id" : "3411",

          "resources" : {

            "self" : {

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

              "ref" : "https://example.jiveon.com/api/core/v3/people/2025/images/2"

            }

          },

          "published" : "2015-04-23T15:53:03.034+0000",

          "updated" : "2015-04-23T15:53:03.034+0000",

          "contentType" : "image/png",

          "index" : 2,

          "ref" : "https://example.jiveon.com/api/core/v3/people/2025/images/2/data",

          "status" : "published",

          "type" : "profileImage"

        },

      ....

      Here I see an 'id', but it's not the 'image id'. I see I could be able to download an image via curl with this command:

       

      curl -v -u email:password 'https://example.jiveon.com/api/core/v3/images/2046'

       

      In this case with the 'id' of the image, I received another image, so the id from here it's something else.

       

      2046.png

       

      Is it possible or the images are protected? is it another way to do this?

       

      Regards,

      Diana