mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-15 10:59:29 -05:00
20 lines
675 B
HTML
20 lines
675 B
HTML
<p>Adventure Land communicates with it's backend through API calls. This backend system has access to all the servers and characters. While the API system is intended for manual use only, you can use this system to occasionally programatically check out your friends, or check out all the online merchants.</p>
|
|
|
|
<p>Keep in mind that the data format and method names can change at any time in the future without a warning.</p>
|
|
|
|
<div class='code'>
|
|
parent.api_call('pull_merchants');
|
|
parent.api_call('pull_friends');
|
|
</div>
|
|
|
|
<p>To catch the response:</p>
|
|
|
|
|
|
<div class='code'>
|
|
game.on('api_response',function(data){
|
|
if(data.type=="merchants")
|
|
{
|
|
show_json(data);
|
|
}
|
|
});
|
|
</div> |