api calls

This commit is contained in:
Jeena Paradies 2013-05-26 09:51:01 +02:00
parent 422dbd34ff
commit f73ce7d196
10 changed files with 371 additions and 86 deletions

View file

@ -1,11 +1,11 @@
define([
"helper/Core",
"helper/Paths",
"helper/APICalls",
"helper/HostApp",
"lib/URI"
],
function(Core, Paths, HostApp, URI) {
function(Core, APICalls, HostApp, URI) {
function Timeline() {
@ -100,7 +100,7 @@ function(Core, Paths, HostApp, URI) {
add_to_search = add_to_search || {};
var those = this;
var url = URI(Paths.mkApiRootPath("/posts"));
var url = URI(APICalls.mkApiRootPath("/posts"));
var post_types = [
"https://tent.io/types/post/repost/v0.1.0",
@ -143,7 +143,7 @@ function(Core, Paths, HostApp, URI) {
if (!this.reload_blocked) {
this.reload_blocked = true;
Paths.getURL(url.toString(), http_method, callback, data); // FIXME: error callback
APICalls.http_call(url.toString(), http_method, callback, data); // FIXME: error callback
}
}
}