User Tools

Site Tools


scripting:restapi

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
scripting:restapi [2022/08/25 14:26] – created jerryhopperscripting:restapi [2022/08/25 15:35] (current) jerryhopper
Line 8: Line 8:
  
 **Description:** RestAPI class. **Description:** RestAPI class.
 +
 +
 +
 +
 +===== Common usage =====
 +
 +The restAPI allows interaction with external webresources in JSON format.
 +
 +Typical usage : statistics/leaderboards/persistent world. 
 +
 +  GetGame().GetRestApi().GetContext("https://some.url");
 +
 +
 +
 +---
 +
 +
 +===== Functions =====
 +
 +==== GetContext(); ====
 +
 +  GetContext(string serverURL);;
 +
 +Return type: [[scripting:restcontext]]
 +
 +
 +
 +==== GetContextCount(); ====
 +
 +  GetContextCount(string serverURL);;
 +
 +Return type: [[scripting:int]]
 +
 +
 +
 +
 +==== DebugList(); ====
 +
 +  DebugList();
 +
 +Return type: [[scripting:void]]
 +
  
scripting/restapi.1661434019.txt.gz · Last modified: 2022/08/25 14:26 by jerryhopper

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki