{"_id":"5719767ec863120e0012a057","user":"56008b651503430d007cc929","category":{"_id":"5719767ec863120e0012a045","version":"5719767ec863120e0012a042","project":"56008ba98c0c9d0d00dcaeb0","__v":0,"sync":{"url":"","isSync":false},"reference":true,"createdAt":"2016-01-25T21:10:29.130Z","from_sync":false,"order":1,"slug":"api","title":"API Documentation"},"version":{"_id":"5719767ec863120e0012a042","hasDoc":true,"project":"56008ba98c0c9d0d00dcaeb0","__v":7,"hasReference":true,"createdAt":"2016-04-22T00:55:26.295Z","releaseDate":"2016-04-22T00:55:26.295Z","categories":["5719767ec863120e0012a043","5719767ec863120e0012a044","5719767ec863120e0012a045","5719767ec863120e0012a046","5719767ec863120e0012a047","5719767ec863120e0012a048","5719767ec863120e0012a049","57f45a18da14e71700d12e4a","582b71b15403840f008c0410","58c060cf3eee111b00a8b210","591e4c277f22100f00031521","591e4c3d094c5b0f006769fe","591e4c461e0dc20f0047b58b"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"2.0.0","version":"2.0"},"parentDoc":null,"project":"56008ba98c0c9d0d00dcaeb0","__v":3,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-03-04T03:32:54.392Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":true,"order":1,"body":"[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"ThisData has Libraries for the following languages:\"\n}\n[/block]\n### Ruby / Ruby on Rails\n\nhttps://github.com/thisdata/thisdata-ruby\n\nVia rubygems: `gem install 'thisdata'`\n\n### PHP\n\nhttps://github.com/thisdata/thisdata-php\n\nVia Composer: `composer require thisdata/api`\n\n### .NET\n\nhttps://github.com/thisdata/thisdata-dotnet\n\nVia Nuget: `Install-Package ThisData.Net`\n\n### NodeJS\n\nhttps://github.com/thisdata/thisdata-node\n\nVia NPM: `npm install thisdata`\n\n### Javascript tracker\n\n[Learn more about our Javascript tracking](http://help.thisdata.com/v2.0/docs/better-tracking-using-javascript).\n\n```\n<script type=\"text/javascript\">\n  window.thisdata=window.thisdata||[],thisdata.load=function(a){if(!(\"ThisData\"in window||window.thisdata.loading)){window.thisdata.loading=!0,window.thisdata.options=a;var b=document.createElement(\"script\");b.src=\"https://thisdata.com/js/thisdata-LATEST.js\",b.async=!0;var c=document.getElementsByTagName(\"script\")[0];c.parentNode.insertBefore(b,c)}};\n\n  thisdata.load({\"apiKey\" : \"YOUR JAVASCRIPT WRITE KEY HERE\"});\n</script>\n```\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"What about other languages?\"\n}\n[/block]\n[Email us](mailto:developers:::at:::thisdata.com) if you'd like us to create an official library for your favourite language.\n\nThe API is a simple POST request though, so hopefully [our Event API documentation code snippets](doc:apiv1events) can get you started!","excerpt":"So that you can integrate the API quickly using your favourite programming language, ThisData has made some prepackaged libraries just for you","slug":"libraries","type":"basic","title":"Libraries"}

Libraries

So that you can integrate the API quickly using your favourite programming language, ThisData has made some prepackaged libraries just for you

[block:api-header] { "type": "basic", "title": "ThisData has Libraries for the following languages:" } [/block] ### Ruby / Ruby on Rails https://github.com/thisdata/thisdata-ruby Via rubygems: `gem install 'thisdata'` ### PHP https://github.com/thisdata/thisdata-php Via Composer: `composer require thisdata/api` ### .NET https://github.com/thisdata/thisdata-dotnet Via Nuget: `Install-Package ThisData.Net` ### NodeJS https://github.com/thisdata/thisdata-node Via NPM: `npm install thisdata` ### Javascript tracker [Learn more about our Javascript tracking](http://help.thisdata.com/v2.0/docs/better-tracking-using-javascript). ``` <script type="text/javascript"> window.thisdata=window.thisdata||[],thisdata.load=function(a){if(!("ThisData"in window||window.thisdata.loading)){window.thisdata.loading=!0,window.thisdata.options=a;var b=document.createElement("script");b.src="https://thisdata.com/js/thisdata-LATEST.js",b.async=!0;var c=document.getElementsByTagName("script")[0];c.parentNode.insertBefore(b,c)}}; thisdata.load({"apiKey" : "YOUR JAVASCRIPT WRITE KEY HERE"}); </script> ``` [block:api-header] { "type": "basic", "title": "What about other languages?" } [/block] [Email us](mailto:developers@thisdata.com) if you'd like us to create an official library for your favourite language. The API is a simple POST request though, so hopefully [our Event API documentation code snippets](doc:apiv1events) can get you started!