I can move or delete one message at a time just fine.
auth.callWebService({ url: 'http://mail.yahooapis.com/ws/mail/v1.1/jsonrpc', method: 'POST', headers: ['Content-Type:application/json'], parameters: {}, body: JSON.stringify({ method: 'MoveMessages', params: [{ sourceFid: folderId, destinationFid: 'Trash', mid: messageId }] })}, onDeleted);
But putting in an array of messages (all of which are in the same source folder) doesn't work.
auth.callWebService({ url: 'http://mail.yahooapis.com/ws/mail/v1.1/jsonrpc', method: 'POST', headers: ['Content-Type:application/json'], parameters: {}, body: JSON.stringify({ method: 'MoveMessages', params: [{ sourceFid: folderId, destinationFid: 'Trash', mid: [messageId1, messageId2, ...] }] })}, onDeleted);
The docs say that the mid parameter is repeatable, so I'm probably just not doing it right. Anyone know the correct way?
Thanks!