Sample code for 30+ languages & platforms
PHP

GMail REST API Examples for Chilkat2 PHP