-
-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathfunc.yml
More file actions
30 lines (30 loc) · 607 Bytes
/
func.yml
File metadata and controls
30 lines (30 loc) · 607 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
desc: Built-in function
runners:
req: http://example.com
vars:
namae: runn太郎
username: runn
password: password
steps:
urlEncode:
req:
/users?name={{ urlencode(vars.namae) }}:
get:
body:
application/json: null
bindBasicAuth:
bind:
authToken: toBase64(vars.username + ":" + vars.password)
basicAuthReq:
req:
/basic:
get:
headers:
Authorization: "Basic {{ authToken }}"
body:
application/json: null
prompt:
bind:
otp: input("Enter OTP> ", "")
dumpOTP:
dump: otp