I'm new to using google apps script. I wanted to create a script that queries the inbox for messages from a particular sender and assign them labels. But I could not find any api that would assign a label to a message.
Note : "Need to assign label to a message and not to a thread"
Is there an api or any method to achieve this using google apps script?