thisandagain / fastly

Fastly API client for Node.js
MIT License
70 stars 28 forks source link

Added Support for Form Parameters to Request Method #4

Closed bcoe closed 10 years ago

bcoe commented 10 years ago

I've added support for form parameters to the request method:

the old API contract still works:

api.request('GET', '/service/hidden/version/10/backend', function(err, response) {
})

You can now also pass in the form parameters:

api.request('PUT', '/service/hidden/version/10/backend/' + encodeURIComponent('foo host'), {
  auto_loadbalance: '1'
}, function (err, res) {
})

If you're alright with these changes, mind pinging me when you've published a new version of the library to npm?

thisandagain commented 10 years ago

Excellent! Thank you for the clean PR.

thisandagain commented 10 years ago

@bcoe Version 1.1.0 has been published.