spee.ch/client/api/channelApi.js
2018-03-16 10:34:26 -07:00

13 lines
376 B
JavaScript

import Request from 'utils/request';
export function getChannelData (host, id, name) {
if (!id) id = 'none';
const url = `${host}/api/channel/data/${name}/${id}`;
return Request(url);
};
export function getChannelClaims (host, longId, name, page) {
if (!page) page = 1;
const url = `${host}/api/channel/claims/${name}/${longId}/${page}`;
return Request(url);
};