Skip to content
View in the app

A better way to browse. Learn more.

HWBOT Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Having problems retrieving data via API.

Featured Replies

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

  • Author

Bump, i have emailed the dev, I have emailed support and still yet to recieve a reply.

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.

I also send an email and I have tried various methods, and the settlement result is empty. any help :(

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.