1
0
dust/examples/download.ds

11 lines
206 B
Plaintext
Raw Normal View History

2024-01-30 05:01:16 +00:00
raw_data = download("https://api.sampleapis.com/futurama/cast")
cast_data = from_json(raw_data)
2023-11-16 07:57:50 +00:00
2024-01-30 05:01:16 +00:00
names = []
2023-11-16 07:57:50 +00:00
2024-01-30 05:01:16 +00:00
for cast_member in cast_data {
names += cast_member:name
}
assert_equal("Billy West", names:0)