Merge pull request #3 from plemarquand/master

Uppercasing request type for superagent
This commit is contained in:
Dan Zajdband
2012-08-22 19:39:51 -07:00

View File

@@ -75,6 +75,7 @@ Object.keys(endpoints.methods).forEach(function(method){
var execMethod = function(type, params, endpoint, fn){
params = params || {};
endpoint = endpoint.replace(':id', params.id);
type = type.toUpperCase();
request(type, endpoints.base_url + endpoint)
.query({api_key : this.api_key})