{ "id": "90621", "key": "AC-3261", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2012-04-21T04:11:34.000+0000", "created": "2012-04-20T07:28:00.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:57:40.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14545", "name": "Documentation" } ], "description": "The new ACS documentation is missing the Messages API: http://docs.appcelerator.com/titanium/2.0/index.html#!/api/Titanium.Cloud\r\n\r\nOld documentation:\r\nSends a message with an optional subject to one or more specified users. The thread_id of the first outgoing message is its own id. Replies to the first or subsequent messages in the thread will all use the id of the first message as their thread_id. The output of this API method is the copy of the message saved to the sender's sent mail.\r\n\r\nURL: POST http://api.cocoafish.com/v1/messages/create.json\r\n\r\n*Required Parameters:*\r\nto_ids\tone or more Ids of users to send the message to\r\nbody\tthe body of the message\r\n\r\n*Optional Parameters:*\r\nsubject\tmessage subject\r\ncustom_data_fields\tuser-defined data. \r\n\r\n\r\n*Example cURL request:*\r\n$ curl -b cookies.txt -c cookies.txt -F \"to_ids=4d71445b6f70951043000006,4d7184f06f70951043000012\" -F \"subject=Sunday Afternoon\" -F \"body=Howabout going to the Academy of Sciences?\" http://api.cocoafish.com/v1/messages/create.json?key=\r\nExample JSON response:\r\n{\r\n \"meta\": {\r\n \"status\":\"ok\",\r\n \"code\":200,\r\n \"method_name\":\"createMessage\"\r\n },\r\n \"response\": {\r\n \"messages\": [\r\n {\r\n \"id\":\"4d85418dd0afbe013e000027\",\r\n \"thread_id\":\"4d85418dd0afbe013e000025\",\r\n \"status\":\"sent\",\r\n \"subject\":\"Sunday Afternoon\",\r\n \"body\":\"Howabout going to the Academy of Sciences?\",\r\n \"created_at\":\"2011-03-19T23:51:41+0000\",\r\n \"updated_at\":\"2011-03-19T23:51:41+0000\",\r\n \"from\": {\r\n \"id\":\"4d7e6493d0afbe01d8000001\",\r\n \"first_name\":\"Michael\",\r\n \"last_name\":\"Goff\",\r\n \"created_at\":\"2011-03-14T18:55:15+0000\",\r\n \"updated_at\":\"2011-03-19T05:05:29+0000\"\r\n },\r\n \"to\": [\r\n {\r\n \"id\":\"4d854129d0afbe013e000022\",\r\n \"first_name\":\"Wei\",\r\n \"last_name\":\"Kong\",\r\n \"created_at\":\"2011-03-19T23:50:01+0000\",\r\n \"updated_at\":\"2011-03-19T23:50:01+0000\"\r\n },\r\n {\r\n \"id\":\"4d85415ad0afbe013e000023\",\r\n \"first_name\":\"George\",\r\n \"last_name\":\"Dy\",\r\n \"created_at\":\"2011-03-19T23:50:50+0000\",\r\n \"updated_at\":\"2011-03-19T23:50:50+0000\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\t\r\n\r\n\r\n*Example Javascript call:*\r\nvar sdk = new Cocoafish(''); // app key\r\nvar data = {\r\n to_ids = '4d71445b6f70951043000006,4d7184f06f70951043000012',\r\n body = 'new message!'\r\n};\r\nsdk.sendRequest('messages/create.json', 'POST', data, false, callback);\r\nSDK Callback:\r\nfunction callback(data) {\r\n if(data) {\r\n if(data.meta)) {\r\n var meta = data.meta;\r\n if(meta.status == 'ok' && meta.code == 200 && meta.method_name == 'createMessage') {\r\n var messages = data.response.messages;\r\n \t...\r\n }\r\n }\r\n }\r\n}\r\n\r\n\r\nSharry\r\n", "attachment": [], "flagged": false, "summary": "ACS Messages API documentation missing", "creator": { "name": "molinto", "key": "molinto", "displayName": "Sharry", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "molinto", "key": "molinto", "displayName": "Sharry", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Appcelerator doc website", "comment": { "comments": [ { "id": "192159", "author": { "name": "molinto", "key": "molinto", "displayName": "Sharry", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "molinto", "key": "molinto", "displayName": "Sharry", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-21T01:56:51.000+0000", "updated": "2012-04-21T01:56:51.000+0000" }, { "id": "192162", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Thank you for raising this, Sharry. As a ticket already exists for this at TIDOC-572, I am going close this one. Don't worry - we have it in our todo lists to resolve very soon.", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2012-04-21T04:11:34.000+0000", "updated": "2012-04-21T04:11:34.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }