public function copyRef($path, $sandbox = false) { // build url $url = '1/copy_ref/'; $url .= $sandbox ? 'sandbox/' : 'dropbox/'; $url .= trim((string) $path, '/'); // make the call return (array) $this->doCall($url); }
/** * Tests Dropbox->copyRef() */ public function testCopyRef() { $response = $this->dropbox->copyRef(BASE_PATH . 'hàh@, $.txt'); $this->assertArrayHasKey('copy_ref', $response); $this->assertArrayHasKey('expires', $response); }