Title / Description
Code # Your Gemfile gem "rest-client" # Console or Model resource = RestClient::Resource.new( "localhost:3000/api/v1/distance_and_bearing", payload: { api_key: YOUR_API_KEY, payload: {origin: ORIGIN_AIRPORT_ID, destination: DESTINATION_AIRPORT_ID} } ) response = resource.get
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code