public/wordpress/wp-content/plugins/backupbuddy/destinations/dropbox2/lib/Dropbox/Client.php
/**
     * Creates and returns a "copy ref" to a file.  A copy ref can be used to copy a file across
     * different Dropbox accounts without downloading and re-uploading.
     *
     * For example: Create a <code>Client</code> using the access token from one account and call
     * <code>createCopyRef</code>.  Then, create a <code>Client</code> using the access token for
     * another account and call <code>copyFromCopyRef</code> using the copy ref.  (You need to use
     * the same app key both times.)
     *
     * See <a href="https://www.dropbox.com/developers/core/docs#copy_ref">/copy_ref</a>.
     *
     * @param string path
     *    The Dropbox path of the file or folder you want to create a copy ref for (UTF-8).
     *
     * @return string
     *    The copy ref (just a string that you keep track of).
     *
     * @throws Exception
     */
Creates and returns a "copy ref" to a file.  A copy ref can be used to copy a file across
different Dropbox accounts without downloading and re-uploading.

For example: Create a Client using the access token from one account and call
createCopyRef.  Then, create a Client using the access token for
another account and call copyFromCopyRef using the copy ref.  (You need to use
the same app key both times.)



@param string path
The Dropbox path of the file or folder you want to create a copy ref for (UTF-8).

@return string
The copy ref (just a string that you keep track of).

@throws Exception
Creates and returns a " copy ref " to a file . A copy ref can be used to copy a file across different Dropbox accounts without downloading and re - uploading . For example : Create a Client using the access token from one account and call createCopyRef . Then create a Client using the access token for another account and call copyFromCopyRef using the copy ref . ( You need to use the same app key both times . ) @param string path The Dropbox path of the file or folder you want to create a copy ref for ( UTF - 8 ) . @return string The copy ref ( just a string that you keep track of ) . @throws Exception
function createCopyRef($path)
    {
        Path::checkArg("path", $path);
        $response = $this->doGet(
            $this->apiHost,
            $this->appendFilePath("2/files/copy_reference/get", $path));
        if ($response->statusCode === 404) return null;
        if ($response->statusCode !== 200) throw RequestUtil::unexpectedStatus($response);
        $j = RequestUtil::parseResponseJson($response->body);
        return self::getField($j, "copy_ref");
    }
function createCopyRef ( $ path ) { Path :: checkArg ( " path " , $ path ) ; $ response = $ this -> doGet ( $ this -> apiHost , $ this -> appendFilePath ( " 2/files/copy_reference/get " , $ path ) ) ; if ( $ response -> statusCode === 404 ) return null ; if ( $ response -> statusCode !== 200 ) throw RequestUtil :: unexpectedStatus ( $ response ) ; $ j = RequestUtil :: parseResponseJson ( $ response -> body ) ; return self :: getField ( $ j , " copy_ref " ) ; }
Creates and returns a "copy ref" to a file.
Creates and returns a " copy ref " to a file .