Jump to content

Manage gmail via http

Recommended Posts


The goal is to have a little more control over with the gmail API https://developers.google.com/gmail/api/v1/reference/users/threads/get?authuser=1

So far this post by Danyfirex gives some hope on how to start going about it

This seems to be a good and easy method but the feed doesn't always contain the last reply\ies to a thread , mostly shows the body text of the first ones ..not always
I hope someone who has the experience and knows how to deal with this and can give something on how this can be done properly .. 


Edited by Deye

Share this post

Link to post
Share on other sites

As I see it the first step is to I.e. connect the account through an authorization with Google's OAuth 2.0 server using https://developers.google.com/oauthplayground/
Choosing the gmail API with the first option in step 1
Then in step 2 once clicking on Exchange authorization code for tokens it will produce a Request / Response protocol summary with a link button "URL to initialize the playground with the current configuration"
What can I use to test the connection on from this point using scite ?
And of course would like to know of any suggestions: how to go about Implementing this


Share this post

Link to post
Share on other sites

You'll have to trust IE for everything. Be ready for everything.

In order to show the OAuth request window, you can use _IECreateEmbedded for example, to add a IEFrame to your GUI.

Get the token on the page with _IEBodyReadText/IEBodyReadyHTML (be ready for some parsing/regex).

After it, with the token in hands, you get more free to send the requests.

The example by Danyfirex is a little different and more basic than what you need, as it uses the read-only and simple atom feed, which is very useful for keeping track of new emails, but not for having a full control. You'll really have to go through the API. Unfortunately, Google's docs aren't as amazing as Facebook docs, for example, but if you have some experience with RESTful and OAuth, although with a bit of work, you'll handle it.

My stuff


My UDFs  _AuThread multithreading emulation for AutoIt · _ExtInputBox an inputbox with multiple inputs and more features · forceUTF8 fix strings encoding without knowing its original charset · JSONgen JSON generator · _TCPServer UDF multi-client and multi-task (run on background) event-based TCP server easy to do · _TCPClient_UDF multi-server and multi-task (runs on background) event-based TCP client easy to do · ParseURL and ParseStr functions ported from PHP · _CmdLine UDF easily parse command line parameters, keys or flags · AutoPHP Create documents (bills, incomes) from HTML by sending variables/arrays from AutoIt to PHP · (Un)Serialize Convert arrays and data into a storable string (PHP compatible) · RTTL Plays and exports to MP3 Nokia-format monophonic ringtones (for very old cellphones) · I18n library Simple and easy to use localization library · Scripting.Dictionary OOP and OOP-like approach · Buffer/stack limit arrays to N items by removing the last one once the limit is reached · NGBioAPI UDF to work with Nitgen fingerprint readers · Serial/Licensing system require license key based on unique machine ID from your users · HTTP a simple WinHTTP library that allows GET, POST and file uploads · Thread true AutoIt threads (under-dev) · RC4 RC4 encryption compatible with PHP and JS ·  storage.au3 localStorage and sessionStorage for AutoIt Classes _WKHtmlToX uses wkhtmlto* to convert HTML files and webpages into PDF or images (jpg, bmp, gif, png...) Snippets _Word_DocFindReplaceByLongText replace strings using Word UDF with strings longer than 255 characters (MSWord limit) rangeparser parser for printing-like pages interval (e.g.: "1,2,3-5") EnvParser parse strings/paths with environment variables and get full path Random stuff Super Mario beep sound your ears will hurt


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...