Guest User

Untitled

a guest
Jul 19th, 2020
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. New version API (JSON response) :
  2. In order to get access to our API you must whitelist IP from where you make requests. Usually must be server IP. Send that IP using this link: Xzone
  3. Total votes link for auto reward system and NPC: (Method GET)
  4. https://api.l2topzone.com/v1/server_38383992dsnndsndsndsnn/getServerData
  5. Response data for Total votes example:
  6.  
  7. {"ok": true,"result": {"totalVotes": "0","serverRank": null}}
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14. This API link can be used to create vote reward using php or java. (Method POST/GET)
  15. Method POST, parameter ip. Ex. {'ip': '127.0.0.1'}
  16. https://api.l2topzone.com/v1/server_38383992dsnndsndsndsnn/getUserData
  17.  
  18. Method GET
  19.  
  20. https://api.l2topzone.com/v1/vote?token=server_38383992dsnndsndsndsnn&ip=IP_ADDRESS_OF_THE_VOTER_HERE
Advertisement
Add Comment
Please, Sign In to add comment