diff options
| author | Fabio Di Fabio | 2016-09-01 16:07:28 +0200 | 
|---|---|---|
| committer | Fabio Di Fabio | 2016-09-01 16:16:46 +0200 | 
| commit | 41ce2f5b472cb4caf14b8814a43b22eb6d2da9e4 (patch) | |
| tree | fb929fa553c48ded422580d1036ea46aa0349ae3 /drive/share.go | |
| parent | 5f321357d18b8f5b00674b8719fffcc8338a75cc (diff) | |
| download | gdrive-41ce2f5b472cb4caf14b8814a43b22eb6d2da9e4.tar.bz2 | |
add the parameter to specify the Google Apps domain when the sharing type is domain
Diffstat (limited to 'drive/share.go')
| -rw-r--r-- | drive/share.go | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/drive/share.go b/drive/share.go index 69b9c7d..e942c17 100644 --- a/drive/share.go +++ b/drive/share.go @@ -13,6 +13,7 @@ type ShareArgs struct {  	Role         string  	Type         string  	Email        string +	Domain       string  	Discoverable bool  } @@ -22,6 +23,7 @@ func (self *Drive) Share(args ShareArgs) error {  		Role:               args.Role,  		Type:               args.Type,  		EmailAddress:       args.Email, +		Domain:             args.Domain,  	}  	_, err := self.service.Permissions.Create(args.FileId, permission).Do() | 
