fixed following/unfollowing

This commit is contained in:
jeena 2013-07-17 03:01:43 +02:00
parent 16d7016e29
commit 771243a75f
4 changed files with 44 additions and 19 deletions

View file

@ -38,10 +38,9 @@ function(jQuery, HostApp, Hmac, Cache) {
} else {
if(options.content_type == "application/json") {
content_type = "application/json";
} else {
} else if(options.content_type) {
content_type = "application/vnd.tent.post.v0+json; type=\"" + options.content_type + "\"";
}
}
var settings = {
@ -120,6 +119,20 @@ function(jQuery, HostApp, Hmac, Cache) {
APICalls.http_call(settings);
}
APICalls.delete = function(url, options) {
var settings = {
url: url,
http_method: "DELETE"
};
for (var key in options) {
settings[key] = options[key];
}
APICalls.http_call(settings);
}
APICalls.postMultipart = function(url, callback, data, boundary, accepts) {
accepts = accepts || "application/vnd.tent.v0+json";