Skip to content

Commit

Permalink
Update examples to be parameterised
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisguest75 committed Sep 4, 2023
1 parent 4af64f6 commit bbb65c4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
8 changes: 3 additions & 5 deletions 79_hurl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,12 @@ First you'll need to create the `hurl.vars` file from the template.
hurl --very-verbose --test trint-realtime.hurl --variables-file ./hurl.vars



# start
hurl --very-verbose --test trint-realtime-start.hurl --variables-file ./hurl.vars

# find the trintid in the above output
hurl --very-verbose --test trint-realtime-status.hurl --variables-file ./hurl.vars --variable trintid=AIn0AosISr2G3u0gY-eP6Q

# now stop it
hurl --very-verbose --test trint-realtime-stop.hurl --variables-file ./hurl.vars --variable trintid=AIn0AosISr2G3u0gY-eP6Q


```

## Resources
Expand Down
3 changes: 3 additions & 0 deletions 79_hurl/template.vars
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ apikey=xxxxx
webapp=https://app.trint.com/
base_api=https://api.trint.com
base_upload_api=https://upload.trint.com
title=nhkwlive
streamUrl=https://nhkwlive-xjp.akamaized.net/hls/live/2003458/nhkwlive-xjp-en/index_1M.m3u8
language=en
6 changes: 3 additions & 3 deletions 79_hurl/trint-realtime-start.hurl
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ Accept: application/json
Content-Type: application/json
api-key: {{ apikey }}
{
"language": "en",
"streamUrl": "https://nhkwlive-xjp.akamaized.net/hls/live/2003458/nhkwlive-xjp-en/index_1M.m3u8",
"language": "{{ language }}",
"streamUrl": "{{ streamUrl }}",
"transcriptDelay":"5",
"title": "hurl test"
"title": "{{ title }}"
}

HTTP 200
Expand Down
6 changes: 3 additions & 3 deletions 79_hurl/trint-realtime.hurl
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ Accept: application/json
Content-Type: application/json
api-key: {{ apikey }}
{
"language": "en",
"streamUrl": "https://nhkwlive-xjp.akamaized.net/hls/live/2003458/nhkwlive-xjp-en/index_1M.m3u8",
"language": "{{ language }}",
"streamUrl": "{{ streamUrl }}",
"transcriptDelay":"5",
"title": "hurl test"
"title": "{{ title }}"
}

HTTP 200
Expand Down

0 comments on commit bbb65c4

Please sign in to comment.