Error while creating folder using google drive api <p>I have activated drive api using this link:<a href="https://developers.google.com/drive/v3/web/quickstart/python" rel="nofollow">https://developers.google.com/drive/v3/web/quickstart/python</a>. Quickstart.py is working fine and can read metadata.</p> <p>Now i am trying to create a folder in a parent folder using parent id.Program is working fine till verification but no folder is getting created.I am just stuck here.Even console is not giving any errors. Plz find full code below and if possible suggest somthing.</p> <pre><code>import os import httplib2 # pip install --upgrade google-api-python-client from oauth2client.file import Storage from apiclient.discovery import build from oauth2client.client import OAuth2WebServerFlow # Copy your credentials from the console # https://console.developers.google.com CLIENT_ID = 'xxxxxxxxxx.apps.googleusercontent.com' CLIENT_SECRET = 'yyyyyyyyyyyyy' OAUTH_SCOPE = 'https://www.googleapis.com/auth/drive' REDIRECT_URI = 'urn:ietf:wg:oauth:2.0:oob' OUT_PATH = os.path.join(os.path.dirname(__file__), 'out') CREDS_FILE = os.path.join(os.path.dirname(__file__), 'credentials.json') storage = Storage(CREDS_FILE) credentials = storage.get() if credentials is None: # Run through the OAuth flow and retrieve credentials flow = OAuth2WebServerFlow(CLIENT_ID, CLIENT_SECRET, OAUTH_SCOPE, REDIRECT_URI) authorize_url = flow.step1_get_authorize_url() print 'Go to the following link in your browser: ' + authorize_url code = raw_input('Enter verification code: ').strip() credentials = flow.step2_exchange(code) storage.put(credentials) # Create an httplib2.Http object and authorize it with our credentials http = httplib2.Http() http = credentials.authorize(http) drive_service = build('drive', 'v2', http=http) def createRemoteFolder(self, folderName, parentID = '0B-mk9lmuB70PTkIwUmtMeEREaEU'): # Create a folder on Drive, returns the newely created folders ID body = { 'title': folderName, 'mimeType': "application/vnd.google-apps.folder" } if parentID: body['parents'] = [{'id': parentID}] root_folder = drive_service.files().insert(body = body).execute() return root_folder['id'] </code></pre>