如何授权限制从谷歌硬盘下载文件?

I am using Google drive to share my files like pdf or word. I want to give permission for shared person to view only that file, not download. From google drive interface I can set that permission, but programatically how to set this. I'm using PHP for my development.

Use permissions.create to grant additional permissions to a user, group, or domain.

Although not entirely related, this SO post demonstrates how to create permission for files using PHP:

//Give everyone permission to read and write the file
$permission = new Google_Permission();
$permission->setRole( 'writer' );
$permission->setType( 'anyone' );
$permission->setValue( 'me' );
$service->permissions->insert( $file->getId(), $permission );