To access Gmail and Google Drive data in the Google Apps environment, enable the Google APIs.
- 
Log on to the Google Cloud Platform Console using your Google admin login credentials.
 - 
From the API Manager, search for the following APIs and enable them. For instructions on enabling APIs, go to the Console Help Center website, Activate and deactivate APIs.
- 
Admin SDK
 - 
Drive API
 - 
Gmail API
 - 
Google Apps Marketplace SDK
 - 
Google Apps Marketplace API
 
 -