Hello, is there any place where I can get a API (JSON or XML) of the items list of the game??
I would like to make a mod for administrators. (sorry my bad english)
Item list: [url]http://admin.playrust.com/item/list/[/url]
Thanks!
I don't know if there is documentation, but I know there is an API
[url]http://admin.playrust.com/client/js/api.js[/url]
[CODE]
//
// API
//
APP.factory( '$api', function ( $http, $rootScope )
{
var api = {}
api.fetch = function ( apiurl, data, successfunc, failfunc )
{
$http( { method: 'POST', url: '/api/' + apiurl + '/', data: data } ).
success( function ( data, status )
{
if ( data.status && data.status == 'failure' )
{
if ( failfunc ) failfunc( data, status );
return;
}
if ( successfunc ) successfunc( data, status );
} ).
error( function ( data, status )
{
console.log( "API call failed (" + apiurl + ")" );
} )
}
return api
} );
[/CODE]
[url]http://admin.playrust.com/client/js/ctrlItemList.js[/url]
[CODE]
$api.fetch( 'items/list', { datetime: 1, category: category }, function ( data ) { /* removed function body */ });
[/CODE]
So calling [url]http://admin.playrust.com/api/items/list?datetime=1[/url] returns JSON data.
Thanks!!
Is possible to get this api/json, because url is redirected.
This is from 5 years ago
Still searching for a way to get content from devblog via ajax (CORS). But since i'm getting No 'Access-Control-Allow-Origin' header responsem there is no way probably.
Depending on how you do it. It can be done. CORS can be bypassed with limitations
Sorry, you need to Log In to post a reply to this thread.