api calls
This commit is contained in:
parent
422dbd34ff
commit
f73ce7d196
10 changed files with 371 additions and 86 deletions
|
@ -1,11 +1,11 @@
|
|||
define([
|
||||
"helper/HostApp",
|
||||
"helper/Core",
|
||||
"helper/Paths",
|
||||
"helper/APICalls",
|
||||
"lib/URI"
|
||||
],
|
||||
|
||||
function(HostApp, Core, Paths, URI) {
|
||||
function(HostApp, Core, APICalls, URI) {
|
||||
|
||||
|
||||
function Search() {
|
||||
|
@ -79,7 +79,7 @@ function(HostApp, Core, Paths, URI) {
|
|||
|
||||
var _this = this;
|
||||
|
||||
Paths.getURL(url.toString(), "GET", function(resp) {
|
||||
APICalls.http_call(url.toString(), "GET", function(resp) {
|
||||
|
||||
var results = JSON.parse(resp.responseText).results;
|
||||
if (results && results.length > 0) {
|
||||
|
|
Reference in a new issue