Open tit opened 7 years ago
Please, add base_url method, a-la on Airborne.
Airborne ↓
Airborne.configure do |config| config.base_url = 'http://example.com/api/v1' config.headers = { 'x-auth-token' => 'my_token' } end
Unirest ↓
Unirest.base_url = 'http://example.com/api' # http://example.com/api/auth?user=foo&pass=bar response = Unirest.get '/auth?user=foo&pass=bar'
Please, add base_url method, a-la on Airborne.
Airborne ↓
Unirest ↓