UNPKG
servertap-js
Version:
latest (0.0.1-dev)
0.0.1
0.0.1-dev
A TypeScript library for working with the ServerTap API
servertap-js
/
src
/
placeholder
/
index.ts
7 lines
(6 loc)
•
302 B
text/typescript
View Raw
1
2
3
4
5
6
7
import
{
Base
}
from
"../base"
;
export
class
PlaceHolderApi
extends
Base
{
replace
(
message
:
string
,
uuid
:
string
):
Promise
<
string
> {
return
this
.
request
(
`/placeholder/replace`
, {
method
:
"POST"
,
body
:
`message=
${message}
,uuid=
${uuid}
`
},
"application/x-www-form-urlencoded"
); } }