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?
As far as I am aware color isn't one of the attributes that can be set/received.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With