Jump to content
HWBOT Community Forums

Having problems retrieving data via API.


Recommended Posts

Hey Guys,

 

I am trying to hook up the API, for what I cannot reveal as yet until its complete, but I am having a few issues.

 

Im using the following script, to make a simple JSON call to return the results, but it never returns results - the results object is always empty, is there something I am doing wrong?

 

$(document).ready(function(){

$.getJSON( "http://hwbot.org/api/ranking?application=superpi_-_1m&limit=10&jsoncallback=?",

function( data ) {

console.log(data)

 

}

);

});

 

any help would be great!

 

EDIT: This is the response I get, even in the browser without the jsoncallback parameter.

 

errors: null

 

numberOfResults: 89393

 

results: [] <-- empty array

Edited by peazz
Link to comment
Share on other sites

  • 2 months later...

Hi !

 

I up this thread as i gave a try at the Query API, following this doc : http://static.hwbot.org/api/Query_API_1.0.pdf

 

Same problem, results array is empty.

I used Jquery's Ajax.

 

Is this API still supported / updated / gone to trashbin (until next rev i hope) ?

 

I had first some troubles about understanding the Cross-Domain Problems and JSONP implementation, it would be better to add some lines in the doc about it.

Link to comment
Share on other sites

  • 5 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...