RubyGems Navigation menu

foxtrot-client 0.0.4

# Foxtrot Ruby Client Library This is the Ruby client library for interacting with the Foxtrot API. The only endpoint currently exposed is the route optimization endpoint (`Foxtrot::Client.optimize!`). In order to make requests, you need a valid API key. Your API key can be found at the bottom of any page in the [Foxtrot web app](http://app.foxtrot.io/). ## Installation `gem install foxtrot-client` ## Usage ```ruby data = { file_url: "https://www.domain.io/your_file.xlsx", file_name: "your_file.xlsx", geocode: "false", stop_name: "Customer", lat: "Lat", lng: "Long", load: "Load", service_time: "Service Time", time_window: "Time Window", extra_info: "Contact Info", date_starting: "1407712069593", warehouse: "77 Massachusetts Ave, Cambridge MA", num_drivers: 1, num_avg_service_time: 10, float_fuel_cost: 3.56, float_driver_wage: 6.01, float_mpg: 8.32 } api_key = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' require 'foxtrot' fox = Foxtrot::Client.new api_key resp = fox.optimize!(data).poll_and_block! result = resp.get_result ```

Gemfile:
= 复制到剪贴板 已复制!

安装:
=

版本列表:

  1. 0.0.4 - December 23, 2014 (8.5 KB)
显示所有版本 (共 4 个)

Runtime 依赖 (2):

addressable >= 2.3.6, ~> 2.3
rest_client >= 1.7.2, ~> 1.7

Development 依赖 (3):

bundler ~> 1.6
pry >= 0
rake >= 0

业主:

作者:

  • Yasyf Mohamedali

SHA 256 校验和:

504b6d1a00d4ad24d626b3fa54039c3c4aa7446a7f3ea15acc0df7683ac6af18

下载总量 3,312

这个版本 3,274

许可:

MIT

需要的 Ruby 版本: >= 2.0

链接: