Horde_Service_Scribd::uploadFromUrl PHP Method

uploadFromUrl() public method

Upload a document from a publicly accessible URL.
public uploadFromUrl ( string $url, $doc_type = null, string $access = null, integer $rev_id = null ) : array
$url string Document location
$access string Document visibility. 'public' or 'private', default 'public'
$rev_id integer The doc_id to save uploaded file as a revision to
return array [doc_id, access_key, [secret_password]]
    public function uploadFromUrl($url, $doc_type = null, $access = null, $rev_id = null)
    {
        $args = array('url' => $url);
        if ($docType !== null) {
            $args['doc_type'] = $docType;
        }
        if ($access !== null) {
            $args['access'] = $access;
        }
        if ($revId !== null) {
            $args['rev_id'] = $revId;
        }
        $response = $this->newRequest('docs.uploadFromUrl', $args)->run();
        /*@TODO*/
    }