<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Oleg Gulevskyy</title>
    <description>The latest articles on DEV Community by Oleg Gulevskyy (@oleggulevskyy).</description>
    <link>https://dev.to/oleggulevskyy</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F361776%2Fb8579443-5cae-4aa8-9635-60e32bb9e3f5.jpg</url>
      <title>DEV Community: Oleg Gulevskyy</title>
      <link>https://dev.to/oleggulevskyy</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/oleggulevskyy"/>
    <language>en</language>
    <item>
      <title>Gmail Addon / OAuth Scopes</title>
      <dc:creator>Oleg Gulevskyy</dc:creator>
      <pubDate>Tue, 21 Apr 2020 13:57:19 +0000</pubDate>
      <link>https://dev.to/oleggulevskyy/gmail-addon-oauth-scopes-3gp1</link>
      <guid>https://dev.to/oleggulevskyy/gmail-addon-oauth-scopes-3gp1</guid>
      <description>&lt;h1&gt;
  
  
  Hello
&lt;/h1&gt;

&lt;h3&gt;
  
  
  and hope you are doing well, reader of this question.
&lt;/h3&gt;

&lt;p&gt;I came up with my &lt;strong&gt;very own, very first small&lt;/strong&gt; and simple Gmail addon that allows you to respond to multiple emails at the same time with the same text (&lt;em&gt;should have seen my face when I realise it works, even if it is just locally&lt;/em&gt;). &lt;br&gt;
Like a batch respond chrome extension that was existing back in a day but just a gmail addon.&lt;/p&gt;

&lt;p&gt;Here is how the app works under the hood and what scopes it is using. &lt;/p&gt;

&lt;p&gt;&lt;em&gt;gmail.send&lt;/em&gt; - to send emails on user behalf (sensitive scope, but not restricted)&lt;br&gt;
&lt;em&gt;gmail.labels&lt;/em&gt; - find email threads based on certain label, that we will respond to with a loop (permitted scope)&lt;br&gt;
•gmail.addons.execute* - just a scope to launch the app in the mailing list without a need for contextual triggers (as far as I was told, nobody cares about this scope in Google )&lt;br&gt;
and the last but not least, I think scope &lt;em&gt;gmail.metadata&lt;/em&gt; required, which is restricted scope. But I do not understand why this scope is required if my app finds threads by label just fine. All it needs to do is to reply to those threads.&lt;br&gt;
But, whenever I try avoid this scope (metadata), I get this error&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Exception: Access denied: : Missing access token for authorization. Request: MailboxService.GetThread.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Hence I am desperate to know, if this somehow can be worked around or this will never work without loads of cash for a security review?&lt;/p&gt;

&lt;p&gt;Thank you for even reading this and have a blessed day!&lt;/p&gt;

</description>
      <category>help</category>
    </item>
  </channel>
</rss>
