mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-14 18:39:28 -05:00
Open source
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user