Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mosufy/9654dfd385d63a2a3d26 to your computer and use it in GitHub Desktop.
Save mosufy/9654dfd385d63a2a3d26 to your computer and use it in GitHub Desktop.
VBC SDK PHP Create verification request for desktop verification
<?php
require_once 'vendor/autoload.php';
$config = [
'AppKey' => '', // Get from VBC
'SecretKey' => '', // Get from VBC
'Version' => 'V2'
];
// instantiate the required objects
$client = new Vbc\Client($config);
$request = new Vbc\Request($client);
// create a request
$url = $request->create([
'uid' => 1234567890,
'caption' => 'Hi! my name is john from the lovely island of Singapore',
'callback' => 'https://yourdomain.com/callback',
'data' => [
'foo' => 'bar'
],
'steps' => [
'VTYPE_VIDEO' => true
]
]);
print_r($url);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment