MCPcopy Create free account
hub / github.com/6dylan6/jdm / getEnvs

Function getEnvs

function/sendNotify.js:2093–2107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2091}
2092
2093async function getEnvs(){
2094 const token = await getToken();
2095 const body = await api({
2096 url: 'api/envs',
2097 searchParams: {
2098 searchValue: 'JD_COOKIE',
2099 t: Date.now(),
2100 },
2101 headers: {
2102 Accept: 'application/json',
2103 authorization: `Bearer ${token}`,
2104 },
2105 }).json();
2106 return body.data;
2107};
2108
2109async function getEnvsCount(){
2110 const data = await getEnvs();

Callers 6

sendNotifyFunction · 0.85
sendNotifyFunction · 0.85
getEnvsCountFunction · 0.85
getstatusFunction · 0.85
getEnvByIdFunction · 0.85
getEnvByPtPinFunction · 0.85

Calls 2

nowMethod · 0.80
getTokenFunction · 0.70

Tested by

no test coverage detected