index-api.js
435 Bytes
/**
* Created by TaoHuang on 2016/6/21.
*/
'use strict';
const library = '../../../library';
var ServiceAPI = require(library + "/api").ServiceAPI;
const sign = require(`${library}/sign`);
const _ = require('lodash');
var serviceAPI = new ServiceAPI();
module.exports.getResourceAsync = (resourceCode) => {
return serviceAPI.get('/operations/api/v5/resource/get', sign.apiSign({
content_code: resourceCode
}));
};