Created
September 1, 2023 14:47
-
-
Save rocketbop/0af1b06f27d3d042bfd4f3698d1565d8 to your computer and use it in GitHub Desktop.
You should try JSON
This file contains hidden or 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
url = "ourlittlesecreturl.com" | |
while url do | |
res = RestClient.get(url, { accept: :json }) | |
body = JSON.parse(res.body); | |
url = body["follow"] | |
message = body["message"] | |
puts message, url | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment