Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gmail label colors via API? [closed]

Tags:

gmail

api

Android client of Gmail uses labels which are exactly as my labels in Gmail web interface. When I started looking for API support, I wasn't able to find any. Both IMAP extensions and Email API: labels doesn't provide answer on how do they manage colors through API.

How can I get label colors from gmail via any programming language?

like image 313
ibo.ezhe Avatar asked Oct 09 '22 18:10

ibo.ezhe


2 Answers

As far as I am aware color isn't one of the attributes that can be set/received.

like image 91
fmalina Avatar answered Oct 11 '22 08:10

fmalina


Well, there's this: https://developers.google.com/gmail/android/ as an Android API, so if you're developing for android, this should help you. Otherwise, you might try checking what the labels uri resolves to and try accessing that from your app code.

Or download the android emulator and run gmail on it while running a network sniffer, and see what comes down the pipe.

like image 40
AASoft Avatar answered Oct 11 '22 06:10

AASoft