You'll need any supported version of Ruby and Bundler
bundle install
utils/graphql_client.rb
This file has a common function that you can use to make an API call with LoadUp authentication
queries/schedule_requests.rb
This file uses the client to make a query, or request for data, for your current schedule requests with pagination.
mutations/create_priced_schedule_request.rb
This file uses the client to make a mutation, or a change to data, to submit a new schedule request. This will be the most common kind of order you'll make.
mutations/cancel_schedule_request.rb
This file uses the client to make a mutation to cancel an existing schedule request. This will only work if the customer has not already schedule their service.
To test out one of the queries, simply execute it via ruby
on the command line after you've replaced placeholders in the file with your values.
ruby queries/schedule_requests.rb
