I am following this tutorial http://fabi.me/en/php-projects/dropphp-dropbox-api-client/.
I managed to authenticate the app using the sample.php and tested it using the sample.php
Now I am trying to create a folder using the SDK but I do not know how to go about it. At points 2 and 3 the code seems garbled.
I tried this till now:
<?php
error_reporting(E_ALL);
require_once("DropboxClient.php");
$dropbox = new DropboxClient(array('app_key' => "YOUR_APP_KEY",
'app_secret'=> "YOUR_APP_SECRET",'app_full_access' => false,),'en');
$this->apiCall("fileops/create_folder", "POST", array('root' => , 'path' => ));
?>
I obviously changed YOUR_APP_KEY and YOUR_APP_SECRET with my own for security reasons.
I can't manage to create the folder / directory. Is there something wrong in my php code?