Skip to content

Instantly share code, notes, and snippets.

@MarianoGnu
Created July 8, 2018 00:36
Show Gist options
  • Save MarianoGnu/8867253ba5df00c87a599745d25aa55c to your computer and use it in GitHub Desktop.
Save MarianoGnu/8867253ba5df00c87a599745d25aa55c to your computer and use it in GitHub Desktop.
extends Node
func _ready():
var url = "http://zerosploit-api.herokuapp.com/servers.json"
var response = yield($HTTPRequest.request_url(url), "completed")
# execution will pause until request finishes
# response is now a dictionary or array, depending on the API result
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment