Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F1374711
stdin_query.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
584 B
Referenced Files
None
Subscribers
None
stdin_query.ts
View Options
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
Details
Attached
Mime Type
text/x-java
Expires
Tue, Feb 25, 07:24 (1 d, 10 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
610496
Default Alt Text
stdin_query.ts (584 B)
Attached To
Mode
rROFI Roficator
Attached
Detach File
Event Timeline
Log In to Comment