How to make a Fly API call from Ruby

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/single/how-to-make-a-fly-api-call-from-ruby

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles