spee.ch/react/api/channelApi.js

14 lines
376 B
JavaScript
Raw Normal View History

2018-02-23 09:01:25 +01:00
import Request from 'utils/request';
2018-02-07 22:26:07 +01:00
export function getChannelData (host, id, name) {
2018-02-08 07:22:17 +01:00
if (!id) id = 'none';
const url = `${host}/api/channel/data/${name}/${id}`;
2018-02-23 09:01:25 +01:00
return Request(url);
};
export function getChannelClaims (host, longId, name, page) {
if (!page) page = 1;
2018-02-23 20:00:46 +01:00
const url = `${host}/api/channel/claims/${name}/${longId}/${page}`;
return Request(url);
};