Skip to content

Instantly share code, notes, and snippets.

@halvardos
Last active March 10, 2017 15:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save halvardos/71c72a706c90bd31936846de89622ba9 to your computer and use it in GitHub Desktop.
Save halvardos/71c72a706c90bd31936846de89622ba9 to your computer and use it in GitHub Desktop.
<?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