The Google APIs Client Libraries which are available in a number of popular programming languages, make it easy to use the API.
Client libraries by language
In the following tables, the first column shows each library's stage of development (note that some are in early stages), and links to documentation for the library. The second column links to available samples for each library.
These early-stage libraries are also available:
Using discovery service
from apiclient import discovery ... # Build the Analytics Reporting API v4 authorized service object. analyticsReporting = discovery.build( 'analyticsreporting', 'v4', http=http, discoveryServiceUrl='https://analyticsreporting.googleapis.com/$discovery/rest')
gapi.client.load( 'https://analyticsreporting.googleapis.com/$discovery/rest', 'v4' ).then(...)