From what I understand, I'm able to use my collection to fetch, POST data, to an api. In this case, I'm using the Bing translate api.
My fetch looks like this:
app.searches.fetch({
contentType: "application/x-www-form-urlencoded",
type: 'POST',
data: { client_id: 'test',client_secret:'test', scope:'http://api.microsofttranslator.com', grant_type: 'client_credentials'},
dataType: 'jsonp',
success: function () {
}
});
Everytime this fetch fires, it performs a GET, not a POST. Right now, my project is barren so I don't think anything is interfering. Have I written this fetch incorrectly?
EDIT:
here's the collection:
var app = app || {};
(function(){
'use strict';
// Searches Collection
//---------------------
var Searches = Backbone.Collection.extend({
//referebce to this collection's model
model: app.Search,
url: 'https://datamarket.accesscontrol.windows.net/v2/OAuth2-13'
});
app.searches = new Searches();
})();