Legacy THNapi:FAQ

From Neocron Wiki
Jump to: navigation, search

General questions

Who should read this section?

What is the THN API?

The THN API is a web services for fan sites to insert item DB data into their own sites or applications.

General questions - For users of the Wiki

Who should read this section?

Is there a guide for using the THN API in the wiki

How do I find an item ID for an item

General questions - For fansite owners and programmers

Who should read this section?

When will the THN API be released for other fansites to use?

There is no date set. There are quite a few issues to be resolved before I can allow the THN API to be released. Some are technical issues, and some are cosmetic issues.

Also there will be a set of PHP libraries released that fansite owners put in their sites, which will connect and pull the data from the item DB.

Will the THN API libraries be open source?

Yes, the THN API libraries are available with a GPL-V3 license. link

Will there be support for .NET?

The THN API is a Web service. It is possible to use the use the Add web reference in Visual Studio 2005. The location of the WSDL is at http://api.techhaven.org/api.php?wsdl.

What will I need to use the THN API PHP library?

  1. You will need a THN API key
  2. A good knowledge of PHP coding
  3. If you wish to customise the layout, you will need a good knowledge and understanding of CSS
  4. You will need a web server with at least PHP5.2.5 PHP4 is not supported at all, as the libraries uses features not available PHP4, and also support for PHP4 is being dropped. The libraries should work on PHP5.0.x to PHP 5.2.4, but the libraries have not been tested on these versions of PHP.

Why do need an API Key?

This is so we know who is using the THN API, so we can contact users with impending changes that could break your website, and also to ensure the THN API is being used correctly.

Who is using/testing the THN API now?

  • The NC-Wiki - Is using the current THN API PHP libraries
  • The Rares Database - It is pulling an XML feed of rares data so that Item data can be shown in the rares DB.
  • The Ultimate Launcher - There is a in game command to search for items while you are playing Neocron.