Setup API Access (Intersect Beta 7 and Before) طباعة

  • 0

As of the November 19, 2022 update to Intersect all insecure (HTTP) API access attempts from public IP addresses are blocked. This means that all API access must be done locally, and public access must be provided through a secure reverse proxy which is included with all of our hosting packages.

 

In order to setup API access you must make several changes to your api config file which is located at Server/resources/api.config.json

 

Changes:

  • Set the 'Enabled' property to true.
  • Set the 'AllowedNetworkTypes' property to 4.

 

Be sure to restart your server after making the above changes to your api configuration.

 

After you reboot your server, verify that your api is accessible by browsing to the following address in your web browser with the following replacements:

https://[SERVER].hosting.freemmorpgmaker.com/[PORT]/api/oauth/token

Replace [SERVER] with the prefix for your servers address (ie: eu0, na2) based on your server location.

Replace [PORT] with your game port shown on the console page for your server within the hosting panel.

 

Your api is working if your browser returns the following message:

{"error":"grant_type_missing"}

 

Use the following address for any tools/services which need to communicate with your api replacing [SERVER] and [PORT] as described above.

https://[SERVER].hosting.freemmorpgmaker.com/[PORT]/

 

Please feel free to reach out with a support ticket if you need further assistance.

 

  

 


هل كانت المقالة مفيدة ؟

« السابق