Sample code for 30+ languages & platforms
Perl

GMail REST API Examples for Chilkat2 Perl