Skip to content
Nick Kasprzak edited this page Jun 21, 2019 · 5 revisions

Introduction

This is a guide to using iland's API with PHP.

Here we will explain the following examples:

Getting event reports

Get and process events

Websocket event processing

Requirements

You need the following PHP library for OAuth2 authorization:

OAuth 2.0 Client from the League of Extraordinary Packages

  • Download here
  • Or install using composer with

$ composer require league/oauth2-client

Authentication

In the example get-event-report.php you can find how authentication is done with the iland API.

You will need to provide the following fields for your PHP scripts to work:

  • USERNAME
  • PASSWORD
  • CLIENT_ID
  • CLIENT_SECRET

Your username and password is the one you use to login into iland's console.

To get your CLIENT_ID and CLIENT_SECRET contact support@iland.com

Important Links

iland API Docs