1
0
dust/examples/fetch.ds

11 lines
206 B
Plaintext
Raw Normal View History

2023-12-30 02:15:03 +00:00
raw_data = download("https://api.sampleapis.com/futurama/cast")
cast_data = from_json(raw_data)
2023-10-06 12:17:37 +00:00
2023-11-16 07:57:50 +00:00
names = []
for cast_member in cast_data {
names += cast_member:name
2023-10-23 19:25:22 +00:00
}
2023-12-30 02:15:03 +00:00
assert_equal("Billy West", names:0)