Weezevent’s API helps third-party app developers access Weezevent Ticketing solution’s database and basic features
Access to the API is restricted to Weezevent’s registered partners. All requested addressed to the API contain an ID (API key) that is unique to each partner.
Tip : you can retrieve your API key directly from your Weezevent back-office, by clicking on Tools > API Keys and also add or modify your users
The API is designed to be called upon by another app processing the data for its own purposes. Consequently, the collected data must be stored and the requests filtered to limit the API’s load.
Some restrictions are applied to ensure overall system safety by monitoring its usage. We also monitor API calls and could restrict or deny access to any API key not considered to be making fair usage of the API or damaging Weezevent’s platform.
A downloadable, English-language PDF version of the API document is available at this address: https://api.weezevent.com/
To help you in your integration, here is an example of PHP integration:
<?php
$api_key = api_key;
$url = 'https://api.weezevent.com/auth/access_token';
$headers = array(
"content-type: application/x-www-form-urlencoded;charset=utf-8"
);
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 60);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, '&username=email&password=password&api_key='.$api_key);
$res = curl_exec($ch);
$res = json_decode($res);
$url = 'https://api.weezevent.com/events?&api_key='.$api_key.'&access_token='.$res->accessToken.'&include_without_sales=true';
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_TIMEOUT, 60);
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
$events = curl_exec($curl);
$count = 0;
$events = json_decode($events);
var_dump($events);
foreach ( $events as $event ){
if( $count <= 10 ){
var_dump($event);
$count++;
}
}