예제 #1
0
파일: tasks.py 프로젝트: mrazf/MaxDrive
def google_get_client(md_user):
	credentials = Storage(DriveCredentials, 'id', md_user, 'credential').get()
	http        = credentials.authorize(http=httplib2.Http())
	
	return build('drive', 'v2', http=http)
예제 #2
0
파일: Client.py 프로젝트: mrazf/MaxDrive
	def get_drive_client(self):
		credentials = Storage(DriveCredentials, 'id', self.md_user, 'credential').get()
		http        = credentials.authorize(http=httplib2.Http())
		
		return build('drive', 'v2', http=http)