Please upgrade here. These earlier versions are no longer being updated and have security issues.

Conversation's messages via json

lifeisfoolifeisfoo Zombie plugins finder ✭✭✭

The http://example.com/messages.json/1 return

{
    "Recipients": [
        {
            "UserID": "1",
            "Name": "admin",
            "Email": "MyEmail",
            "Deleted": "0",
            "Photo": "userpics/456/YPAO206WQOCK.jpg",
            "DateLastActive": "2013-05-04 08:55:13"
        },
        {
            "UserID": "8",
            "Name": "text",
            "Email": "anotheremail",
            "Deleted": "0",
            "Photo": "userpics/207/CP0D2DEW0JHG.png",
            "DateLastActive": null
        }
    ],
    "Conversation": {
        "ConversationID": "1",
        "Subject": null,
        "Contributors": "a:2:{i:0;s:1:\"1\";i:1;s:1:\"8\";}",
        "FirstMessageID": "1",
        "InsertUserID": "1",
        "DateInserted": "2013-05-04 08:55:13",
        "InsertIPAddress": "127.0.0.1",
        "UpdateUserID": "1",
        "DateUpdated": "2013-05-04 08:55:13",
        "UpdateIPAddress": "127.0.0.1",
        "CountMessages": "1",
        "LastMessageID": "1",
        "RegardingID": null,
        "CountNewMessages": 0,
        "CountReadMessages": "1",
        "DateLastViewed": "2013-05-04 08:55:13"
    }
}

This request correspond to http://example.com/messages/1, but the json request doesn't return conversation's messages...

Any advice on how to get conversation's messages (in json)?

Using vanilla 2.1 and conversations application

Best Answer

Answers

Sign In or Register to comment.