check and return mediafire response code for every api call

This commit is contained in:
josch
2014-12-05 11:37:51 +01:00
parent 816d79438f
commit 1007caec7a
18 changed files with 324 additions and 32 deletions

View File

@@ -58,7 +58,8 @@ int mfconn_api_folder_create(mfconn * conn, const char *parent,
}
http = http_create();
retval = http_get_buf(http, api_call, NULL, NULL);
retval = http_get_buf(http, api_call, mfapi_decode_common,
"folder/create");
http_destroy(http);
free((void *)api_call);