> For the complete documentation index, see [llms.txt](https://haptixgames.gitbook.io/web-api-kit/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://haptixgames.gitbook.io/web-api-kit/core/how-it-works..md).

# How it works

[Web API Kit](https://www.assetstore.unity3d.com/en/#!/content/19663) is a set of tools to reduce the code you need to write for the Unity WWW/UnityWebRequest classes, UniWeb, BestHTTP, UnityHTTP, and other popular HTTP providers.

A fully featured HTTP call that supports authentication, timeouts, cancellation, conversion of returned JSON or XML data into a usable C# class would easily be over 200 lines of code.  With WAK, all of these features and more are done for you, reducing the code you have to write to 10 lines with the help of [C# Attributes](http://www.dotnetperls.com/attribute).

Here is the code you write to make a fully functional call to Instagram and [retrieve the 100 most recent media items for the tag #gaming](https://instagram.com/developer/endpoints/tags/#get_tags_media_recent).

![HttpOperation Example](https://3160023044-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNwokgSPBJBpAv87dWr%2F-LNwsbX-hN9Dfk5KqqR2%2F-LNwt1jMCaUjfC9q18gj%2Fimage.png?alt=media\&token=60fec048-5b68-4d26-a346-0cf3b1387b20)

Here is how you call the operation from within your game code.<br>

![Calling an HttpOperation](https://3160023044-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNwokgSPBJBpAv87dWr%2F-LNwsbX-hN9Dfk5KqqR2%2F-LNwtAWTv1VSl9eIU5my%2Fimage.png?alt=media\&token=53bfd4c0-6fe4-4413-a095-073061bcaa20)

The above is a very concise rendition of what could be represented as follows.

![Calling an HttpOperation](https://3160023044-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LNwokgSPBJBpAv87dWr%2F-LNwsbX-hN9Dfk5KqqR2%2F-LNwtJW4zYvzONLq8vgy%2Fimage.png?alt=media\&token=321cbe4e-45de-4127-a929-81a5c6c36708)

It really is that simple!<br>
