Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F1374526
stdin_query.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
596 B
Referenced Files
None
Subscribers
None
stdin_query.ts
View Options
import
{
Strategy
}
from
"../interfaces/strategy"
;
import
getConfig
from
"../helpers/get_config"
;
import
axios
from
"axios"
;
export
class
StdinQueryKeyStrategy
implements
Strategy
{
private
data
:
string
;
constructor
(
_data
:
string
)
{
this
.
data
=
_data
;
}
public
async
readData
()
:
Promise
<
any
>
{
const
config
=
await
getConfig
();
let
response
;
try
{
response
=
await
axios
.
get
(
`
${
config
.
uri
}
/api/maniphest.search`
,
{
data
:
`api.token=
${
config
.
token
}
&=queryKey=
${
this
.
data
}
`
,
});
}
catch
(
_
)
{
throw
new
Error
(
"Request failed"
);
}
return
response
.
data
.
result
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Tue, Feb 25, 00:08 (1 d, 6 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
610140
Default Alt Text
stdin_query.ts (596 B)
Attached To
Mode
rROFI Roficator
Attached
Detach File
Event Timeline
Log In to Comment