VictorB
5/24/2018 - 6:27 PM

Lime Commands

Set ticket status:
{
  "id": "1",
  "method": "set",
  "to": "postmaster@desk.msging.net",
  "uri": "/tickets/change-status",
  "type": "application/vnd.iris.ticket+json",
  "resource": {
    "id": "39b07666-3f11-4e85-b523-9928017c56c6",
    "status": "ClosedClient"
   }
}

Get tickets:
{
  "id": "1",
  "method": "get",
  "to": "postmaster@desk.msging.net",
  "uri": "/tickets/"
}

Get active tickets:
{
  "id": "1",
  "method": "get",
  "to": "postmaster@desk.msging.net",
  "uri": "/tickets/active"
}

Get waiting tickets:
{
  "id": "1",
  "method": "get",
  "to": "postmaster@desk.msging.net",
  "uri": "/tickets/waiting"
}

Set tickets:
{
  "id": "%newGuid",
  "method": "set",
  "to": "postmaster@desk.msging.net",
  "uri": "/tickets/be1f41c2-7375-4ffb-8724-3a453260b4c6.balboatende@0mn.io",
  "type": "text/plain",
  "resource": "hello"
}

Transfer:
{
  "id": "%newGuid",
  "method": "set",
  "to": "postmaster@desk.msging.net",
  "uri": "/tickets/a1e7cee9-b9ea-49de-a453-afecdd77ac3e/transfer",
  "type": "application/vnd.iris.ticket+json",
  "resource": {
    "team": "Default"
  }
}

Claim:
{
  "id": "70856810-b1a6-4ad5-8f29-733eb419508b",
  "method": "get",
  "to": "postmaster@desk.msging.net",
  "uri": "/tickets/claim"
}

{
  "method": "set",
  "to": "postmaster@desk.msging.net",
  "uri": "/attendance-history/send-by-email",
  "type": "application/json",
  "resource": {
    "email": "victorb%40take.net",
    "filter": "storageDate%20ge%20datetimeoffset'2018-10-04T15%3A00%3A00.000Z'%20and%20storageDate%20le%20datetimeoffset'2018-10-18T18%3A00%3A00.000Z'%20and%20status%20ne%20'Open'%20and%20status%20ne%20'Waiting'"
  },
  "id": "81aa8832-77ba-417f-892d-c4fce5939e9c",
  "metadata": {
    "blip_portal.email": "testecargadesk@gmail.com"
  }
}
{
    "id": "%commandId",
    "method": "set",
    "type": "application/vnd.iris.desk.attendant+json",
    "to": "postmaster@desk.msging.net",
    "uri": "/attendants/change-status",
    "resource": {
        "status": "Offline"
    }
}
Set attendant:
{
  "id": "%commandId",
  "method": "set",
  "to": "postmaster@desk.msging.net",
  "type": "application/vnd.iris.desk.attendant+json",
  "uri": "/attendants",
  "resource": {
    "identity": "victorb%40take.net@blip.ai",
    "teams": [
      "Default"
    ]
  }
}
Get attendant:
{
  "id": "%commandId",
  "method": "get",
  "to": "postmaster@desk.msging.net",
  "uri": "/attendants"
}
{
    "id": "%commandId",
    "method": "set",
    "type": "application/vnd.iris.eventTrack+json",
    "to": "postmaster@msging.net",
    "uri": "/event-track",
    "resource": {
        "identity": "victorb@msging.net",
        "category": "Balbo",
        "action": "Teste - "
    }
}
Set new Distribution:
{
  "method": "set",
  "uri": "lime://postmaster@desk.msging.net/configuration",
  "type": "application/json",
  "resource": {
    "DistributionType": "Redis"
  },
  "id": "4eb19812-1da1-4b44-be68-27eac45e0f66",
  "metadata": {
    "blip_portal.email": "victorb@take.net"
  }
}
{
  "method": "get",
  "to": "postmaster@desk.msging.net",
  "uri": "/analytics/attendants",
  "id": "%newGuid"
}

{
  "method": "get",
  "to": "postmaster@desk.msging.net",
  "uri": "/analytics/teams",
  "id": "%newGuid"
}

{
  "method": "get",
  "to": "postmaster@desk.msging.net",
  "uri": "/analytics/reports/tags?beginDate=2018-07-09&endDate=2018-07-09",
  "id": "%newGuid"
}
{
  "method": "get",
  "to": "postmaster@desk.msging.net",
  "uri": "/analytics/reports/openTickets",
  "id": "%newGuid"
}
{
  "id": "1",
  "method": "get",
  "to": "postmaster@crm.msging.net",
  "uri": "/contacts/%from/comments/"
}

{
  "id": "1",
  "method": "set",
  "to": "postmaster@crm.msging.net",
  "uri": "/contacts/%from/comments/",
  "type": "application/vnd.iris.crm.comment+json",
  "resource": {
    "authorIdentity": "%from",
    "content": "%text"
   }
}

{
  "id": "1",
  "method": "delete",
  "to": "postmaster@crm.msging.net",
  "uri": "/contacts/%from/comments/1"
}
{
    "type": "text/plain",
    "content": "%text",
    "metadata": {
        "#blip.hiddenMessage": true
    }
}
{
  "method": "set",
  "type": "application/vnd.iris.ai.intention+json",
  "to": "postmaster@ai.msging.net",
  "uri": "/intentions",
  "resource": {
    "id": undefined,
    "name": "aaaaaaaa",
    "tooltip": "<i class='icon-false mr2'></i><span>Acima de 10 exemplos</span><br><i class='icon-false mr2'></i><span>Próximo de 10 exemplos<br></span>"
  }
}

{
  "method": "get",
  "to": "postmaster@ai.msging.net",
  "uri": "/intentions",
}