Horde_Service_Scribd::upload PHP Method

upload() public method

Upload a local file.
public upload ( string $file, $doc_type = null, string $access = null, $revId = null ) : array
$file string Local file
$access string Document visibility. 'public' or 'private', default 'public'
return array [doc_id, access_key, [secret_password]]
    public function upload($file, $doc_type = null, $access = null, $revId = null)
    {
        $args = array('file' => $file);
        if ($docType !== null) {
            $args['doc_type'] = $docType;
        }
        if ($access !== null) {
            $args['access'] = $access;
        }
        if ($revId !== null) {
            $args['rev_id'] = $revId;
        }
        $response = $this->newRequest('docs.upload', $args)->run();
        /*@TODO*/
    }