How to make a Fly API call from Ruby
04-Aug-2023 827
Fly has a graphql API available. You can find ways to use it by looking through their CLI's source code.I recently wanted to automate a Fly API call from a ruby script. And I was not in an environment where I wanted to install the fly CLI.Here's some code you can steal, it uses Faraday to make a request to Fly's graphql API.This specific example shows how to delete an existing application.
How to make a Fly API call from Ruby #ruby #rubydeveloper #rubyonrails #- #api https://rubyonrails.ba/link/how-to-make-a-fly-api-call-from-ruby