< back

PHP examples

Authentication

General Barnes Data Authentication uses a Single Sign On (SSO) solution (FusionAuth) : you need first to be authenticated before getting an access token for your app.

This example uses Composer to load the following libraries :

Example #1

Objective : Perform Graphql queries to Barnes Data API.

Specific files composing this example :

Test this example : example_1/index.php.

Example #2

Objective : Perform Graphql subscription to Barnes Data API events, and listen them with SSE.

Specific files composing this example :

Be careful : this example needs that 'write/read' rights being set on '/logs' folder.

Test this example : example_2/index.php.