{"size": 621, "ext": "js", "max_stars_repo_path": "example/promise/message/history.js", "max_stars_repo_name": "rongcloud/server-sdk-nodejs", "max_stars_repo_stars_event_min_datetime": "2015-04-02T06:45:23.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-10T08:53:26.000Z", "max_issues_repo_path": "example/promise/message/history.js", "max_issues_repo_name": "rongcloud/server-sdk-nodejs", "max_issues_repo_issues_event_min_datetime": "2015-06-03T07:00:40.000Z", "max_issues_repo_issues_event_max_datetime": "2020-02-29T11:14:30.000Z", "max_forks_repo_path": "example/promise/message/history.js", "max_forks_repo_name": "rongcloud/server-sdk-nodejs", "max_forks_repo_forks_event_min_datetime": "2015-04-02T02:51:02.000Z", "max_forks_repo_forks_event_max_datetime": "2022-01-25T07:07:59.000Z"}
{"max_stars_count": 83, "max_issues_count": 22, "max_forks_count": 49, "avg_line_length": 21.4137931034, "max_line_length": 79, "alphanum_fraction": 0.6859903382}
'use strict';

var RongSDK = require('rongcloud-sdk')({
    appkey: '8luwapkvucoil',
    secret: 'y0icysjl4h3LWz'
});

var Message = RongSDK.Message;
var History = Message.History;

// API 文档: http://www.rongcloud.cn/docs/server_sdk_api/message/history.html#get
var message = {
	date: '2018030613'
};
History.get(message).then(result => {
	console.log(result);
}, error => {
	console.log(error);
});

// API 文档: http://www.rongcloud.cn/docs/server_sdk_api/message/history.html#get
var message = {
	date: '2018030613'
};
History.remove(message).then(result => {
	console.log(result);
}, error => {
	console.log(error);
});