def CreateResourceInCollectionSample():
 client = CreateClient()
 col = gdata.docs.data.Resource(type='folder', title='My Sample Folder')
 col = client.CreateResource(col)
 print 'Created collection:', col.title.text, col.resource_id.text
 doc = gdata.docs.data.Resource(type='document', title='My Sample Doc')
 doc = client.CreateResource(doc, collection=col)
 print 'Created:', doc.title.text, doc.resource_id.text

def CreateResourceInCollectionSample ( ) : client = CreateClient ( ) col = gdata . docs . data . Resource ( type = 'folder' , title = 'My Sample Folder' ) col = client . CreateResource ( col ) print 'Created collection:' , col . title . text , col . resource_id . text doc = gdata . docs . data . Resource ( type = 'document' , title = 'My Sample Doc' ) doc = client . CreateResource ( doc , collection = col ) print 'Created:' , doc . title . text , doc . resource_id . text
create a collection .