mirror of
https://github.com/aclindsa/moneygo.git
synced 2025-07-03 20:58:39 -04:00
Stop using form elements for API
Just send the JSON as the request body
This commit is contained in:
@ -60,7 +60,7 @@ function importOFX(account, password, startDate, endDate) {
|
||||
type: "POST",
|
||||
dataType: "json",
|
||||
url: "v1/accounts/"+account.AccountId+"/imports/ofx",
|
||||
data: {ofxdownload: ofxdownload.toJSON()},
|
||||
data: ofxdownload.toJSON(),
|
||||
success: function(data, status, jqXHR) {
|
||||
var e = new Error();
|
||||
e.fromJSON(data);
|
||||
|
Reference in New Issue
Block a user