Created
July 8, 2018 00:36
-
-
Save MarianoGnu/8867253ba5df00c87a599745d25aa55c to your computer and use it in GitHub Desktop.
this is how to use https://gist.github.com/MarianoGnu/19dc48a94715ae2cb5a36d78aa6d2d26
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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