-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.php
More file actions
25 lines (20 loc) · 737 Bytes
/
example.php
File metadata and controls
25 lines (20 loc) · 737 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
/**
* This is a basic example to get a quick feel for the client.
*
* For more examples of specific actions, see the `examples` folder.
*/
include 'vendor/autoload.php';
$client = new \Joindin\Api\Client(
array(
'base_url' => 'http://api.dev.joind.in:8080',
// 'access_token' => '<MyAccessToken>',
// 'defaults' => array('proxy' => 'tcp://localhost:8888')
)
);
$eventService = $client->getService(new \Joindin\Api\Description\Events());
/** @var \Joindin\Api\Response $result Find a complete event listing (max 20) */
$result = $eventService->getCollection();
/** @var \Joindin\Api\Entity\Event $event Get event entity */
$event = current($result->getResource());
var_export($event);