Skip to content

Livepost

Borja Gorriz edited this page Sep 23, 2013 · 3 revisions

Base URL: api/dime/rest/{mainSaId}/livepost

Method Path Description
GET @all Returns a collection of all livepost done by all users.
GET /{personId}/@all Returns a collection of all livepost the user has done.
POST /{personId} Creates a new livepost.
GET /{personId}/{Lvpid} Returns a specific livepost.
POST /{personId}/{Lvpid} Updates a specific livepost.
DELETE /{personId}/{Lvpid} Deletes a specific livepost.
GET @me/@all/shared?sharedWithAgent={agentId} Returns all the livepost shared with a specific agent
GET @me/@all/shared?sharedWithService={serviceId} Returns all the databoxes shared with a specific service

Parameters:

  • Lvpid: Id of an specific livepost.
  • personId: Id of an specific person. It includes @me.
  • agentId: Id of a specific agent.
  • serviceId: Id of a specific service.

Examples:

  • Call: api/dime/rest/5b223cde-07e5-4987-b531-231876fa7601/livepost/@me/@all
  • Response:

{
   "response":{
      "meta":{
         "v":"0.9",
         "status":"OK",
         "code":200,
         "timeRef":"2011-08-30T15:01:59+02:00",
         "msg": ""
   },
   "data":{
      "startIndex":0,
      "itemsPerPage":2,
      "totalResults":2,
      "entry": {
        "guid": "urn:juan:statusMessage01",
        "created": 1338824999,
        "lastModified": 1338824999,
        "userId": "<userId>|@me",
        "name": "Friends",
        "imageUrl":"<imageUrl>",
        "text": "Preparing for next week's Congress...",
        "dlpo:timestamp": 1322040360000,
        "nao:creator": "urn:juan:juanPerson01" ,
        "type": "livepost",
        "nao:includes": [
                     {
                       "saidSender":"jdaspojsd39023",
                       "groups": [groupId, ...],
                       "persons": [
                          {"personId":"392a", "saidReceiver":”fweo634ifwo” },
                          {...}
                        ] ,
                        "services": ["serviceId",...]
                          },
                          {
                          ...
                          }               
                        ],
          "nao:excludes": [            
          ]
      }
    }
}

Clone this wiki locally