3 Replies Latest reply on Dec 14, 2017 6:49 AM by romainpaillas

    How to get content from a share

    laurent.ducamp@ext.adeo.com

      Hi guys,

       

      I developp a tiles that get activities from a place.

       

      I found some entry that refers content from a share (entityType = 2901)

       

      1. c
        1. actor:Object
        2. content:"<a href="https://younity.groupeadeo.com/people/10073719">Gaston GABER</a> created <a href=""></a> in <a href="https://younity.groupeadeo.com/groups/bac-%C3%A0-sable-des-membres-de-younity">Bac à sable des membres de Younity - Place to test members younity</a>"
        3. jive:Object
          1. canComment:false
          2. canLike:false
          3. collection:"2901-57696"
          4. collectionUpdated:"2017-06-19T15:41:55.887+0000"
          5. discovery:Array(0)
          6. iconCss:"jive-icon-doctype-generic"
          7. objectID:57696
          8. objectType:2901
          9. objectViewed:false
          10. jQuery220093902404310592112:Object
          11. jQuery220093902404310592111:Object
          12. __proto__:Object
        4. object:Object
          1. displayName:""
          2. id:"https://younity.groupeadeo.com/api/core/v3/contents/1503292"
          3. objectType:"jive:2901"
          4. published:"2017-06-19T15:41:55.135+0000"
          5. summary:""
          6. updated:"2017-06-19T15:41:55.135+0000"
          7. url:""
          8. __proto__:Object
        5. provider:Object
        6. published:"2017-06-19T15:41:55.887+0000"
        7. target:Object
        8. title:""
        9. type:"activity"
        10. updated:"2017-06-19T15:41:55.135+0000"
        11. url:""
        12. verb:"jive:created"
        13. jQuery220093902404310592112:Object
        14. jQuery220093902404310592111:Object
        15. __proto__:c

       

      How to get content ?

       

      I will try  get content from fields object.id .with a GET https://younity.groupeadeo.com/api/core/v3/contents/1503292

       

      But when I go to get content , I will have the entity :

       

      but the html field is empty :

       

      throw 'allowIllegalResourceCall is false.';

      {

        "entityType" : "2901",

        "id" : "57696",

        "resources" : {

        "entitlements" : {

        "allowed" : [ "GET" ],

        "ref" : "https://younity.groupeadeo.com/api/core/v3/contents/1503292/entitlements"

        },

        "followingIn" : {

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

        "ref" : "https://younity.groupeadeo.com/api/core/v3/contents/1503292/followingIn"

        },

        "followers" : {

        "allowed" : [ "GET" ],

        "ref" : "https://younity.groupeadeo.com/api/core/v3/contents/1503292/followers"

        },

        "self" : {

        "allowed" : [ "GET" ],

        "ref" : "https://younity.groupeadeo.com/api/core/v3/contents/1503292"

        },

        "html" : {

        "allowed" : [ "GET" ],

        "ref" : ""

        }

        },

        "followerCount" : 1,

        "published" : "2017-06-19T15:41:55.135+0000",

        "tags" : [ ],

        "updated" : "2017-06-19T15:41:55.135+0000",

        "iconCss" : "jive-icon-doctype-generic",

        "parentPlace" : {

        "id" : "1124",

        "html" : "https://younity.groupeadeo.com/groups/bac-%C3%A0-sable-des-membres-de-younity",

        "name" : "Bac à sable des membres de Younity - Place to test members younity",

        "type" : "group",

        "uri" : "https://younity.groupeadeo.com/api/core/v3/places/78226"

        },

        "contentID" : "1503292",

        "author" : {

        ..

        },

        "type" : "person"

        },

        "content" : {

        "text" : "<body><!-- [DocumentBodyStart:e5106c17-09c2-4002-8ef5-2935829afb79] --><div class=\"jive-rendered-content\"></div><!-- [DocumentBodyEnd:e5106c17-09c2-4002-8ef5-2935829afb79] --></body>",

        "editable" : false,

        "type" : "text/html"

        },

        "parent" : "https://younity.groupeadeo.com/api/core/v3/places/78226",

        "status" : "published",

        "subject" : "",

        "viewCount" : 0,

        "visibleToExternalContributors" : false,

        "parentVisible" : true,

        "parentContentVisible" : true,

        "lastActivity" : 1497886915135,

        "type" : "2901",

        "lastActivityDate" : "2017-06-19T15:41:55.135+0000"

      }