MCPcopy Create free account
hub / github.com/MALSync/MALSync / userRequest

Method userRequest

src/_provider/Kitsu/list.ts:37–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35 }
36
37 private userRequest() {
38 return helper.apiCall('GET', 'https://kitsu.app/api/edge/users?filter[self]=true').then(res => {
39 con.log(res);
40 if (typeof res.data[0] === 'undefined') {
41 throw new NotAutenticatedError('Not Authenticated');
42 }
43 return res.data[0];
44 });
45 }
46
47 deauth() {
48 return api.settings.set('kitsuToken', '').then(() => api.storage.set('kitsuUserId', ''));

Callers 3

getUserObjectMethod · 0.95
getUserIdMethod · 0.95
getUserObjectMethod · 0.80

Calls 1

apiCallMethod · 0.45

Tested by

no test coverage detected