1
0
dust/examples/fetch.ds

11 lines
209 B
Plaintext
Raw Permalink Normal View History

raw_data = (download "https://api.sampleapis.com/futurama/cast")
2023-10-23 19:25:22 +00:00
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-11-16 07:57:50 +00:00
(assert_equal "Billy West", names:0)