Last active
March 10, 2017 15:41
-
-
Save halvardos/71c72a706c90bd31936846de89622ba9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require __DIR__ . '/vendor/autoload.php'; | |
use SYNQ\lib\API; | |
// Init with api key and base url | |
$api = new API(getenv('SYNQ_API_KEY'), 'https://api.synq.fm/v1/'); | |
// Create a new video object | |
$result = $api->video->create($userdata = ['test' => 123]); | |
echo $result->getStatusCode(); | |
echo $result->getBody(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment