Page MenuHomeSealhub

stdin_query.ts
No OneTemporary

stdin_query.ts

import { Strategy } from "../interfaces/strategy";
import getConfig from "../helpers/config";
import axios from "axios";
export class StdinQueryKeyStrategy implements Strategy {
private data: string;
constructor(_data: string) {
this.data = _data;
}
public async readData(): Promise<void> {
const { token, uri } = await getConfig();
let response;
try {
response = await axios.get(`${uri}maniphest.search`, {
data: `api.token=${token}&=queryKey=${this.data}`,
});
} catch (e) {
console.log(e);
return undefined;
}
return response.data.result;
}
}

File Metadata

Mime Type
text/x-java
Expires
Tue, Feb 25, 07:24 (1 d, 6 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
610496
Default Alt Text
stdin_query.ts (584 B)

Event Timeline