Latest Neocron News and Information

  • New test server patch #545 has been released to Vedeena

Difference between revisions of "THNapi:Authentication"

From Neocron Wiki
Jump to: navigation, search
(No point in keeping outdated information)
(Update API Key format headers)
Line 3: Line 3:
 
== Version 3 ==
 
== Version 3 ==
  
Sites supporting API Authentication can be accessed by sending the following HTTP headers in your request. Available to the Items DB from April 14th 2020. The Rares DB and Stats DB will support this method in the near future.
+
Sites supporting API Authentication can be accessed by sending the following HTTP headers in your request. Available to the Items DB from April 14th 2020. This format will be discontinued on 1st April 2021 - You should use version 4.
  
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
Line 14: Line 14:
 
|}
 
|}
  
= Future plans =
+
== Version  4 ==
  
== Version  4 ==
+
Sites supporting API Authentication can be accessed by sending the following HTTP headers in your request. Available to the Items DB from 1st February 2021. The Rares DB and Stats DB will support this method in the near future.
  
This is not yet implemented. It is expected to be based on [https://jwt.io/ JSON Web Tokens]
+
{| class="wikitable sortable"
 +
|-
 +
! HTTP Header !! Required value
 +
|-
 +
| X-THN-API-Key || Your 40 character API user ID key
 +
|-
 +
| X-THN-API-Secret || Your 64 character API secret key
 +
|}

Revision as of 20:06, 31 January 2021

Current API Authentication

Version 3

Sites supporting API Authentication can be accessed by sending the following HTTP headers in your request. Available to the Items DB from April 14th 2020. This format will be discontinued on 1st April 2021 - You should use version 4.

HTTP Header Required value
X-THN-API-User Your 40 character API user ID key
X-THN-API-Key Your 64 character API secret key

Version 4

Sites supporting API Authentication can be accessed by sending the following HTTP headers in your request. Available to the Items DB from 1st February 2021. The Rares DB and Stats DB will support this method in the near future.

HTTP Header Required value
X-THN-API-Key Your 40 character API user ID key
X-THN-API-Secret Your 64 character API secret key