Chat messages

Returns information about diagram chat messages

Method

GET

URL

https://cacoo.com/api/v1/diagrams/diagramId/chat/messages.format
Example : https://cacoo.com/api/v1/diagrams/00e77f4dc9973517/chat/messages.json

Format

json, xml

Authentication

required

Parameters

Parameter Name Type Content Example
diagramId(Required) String Diagram Id 00e77f4dc9973517

Response

Field Type Description Example
diagramId String Diagram ID 00e77f4dc9973517
result Array Chat message array -
 + user Object User -
  + name String User name 1MUJPfNEEeVUox15
  + nickname String Nick name Yoko
  + type String Account Type
  • cacoo - Manage authentication on Cacoo.
  • other - Manage authentication on other than Cacoo.
  • guest - Users who are not signed in.
cacoo
  + imageUrl String User Icon URL(32x32 pixels) https://cacoo.com/account/1MUJPfNEEeVUox15/image/32x32
 + content String Chat message message 1
 + created Date Date Created(RFC2822) Mon, 10 Aug 2009 17:00:00 +0900

JSON Response Example

{
    "diagramId": "00e77f4dc9973517",
    "result": [
        {
            "user": {
                "name": "1MUJPfNEEeVUox15",
                "nickname": "Yoko",
                "type": "cacoo",
                "imageUrl": "https://cacoo.com/account/1MUJPfNEEeVUox15/image/32x32"
            },
            "content": "message 1",
            "created": "Mon, 10 Aug 2009 17:00:00 +0900"
        },
        {
            ...
        }
    ]
}

XML Response Example

<?xml version="1.0" encoding="utf-8"?>
<messages>
  <diagramId>00e77f4dc9973517</diagramId>
  <result>
    <message>
      <user>
        <name>1MUJPfNEEeVUox15</name>
        <nickname>Yoko</nickname>
        <type>cacoo</type>
        <imageUrl>https://cacoo.com/account/1MUJPfNEEeVUox15/image/32x32</imageUrl>
      </user>
      <content>message 1</content>
      <created>Mon, 10 Aug 2009 17:00:00 +0900</created>
    </message>
    <message>
         ... 
    </message>
  </result>
</messages>