Google APIS Lib for Fivewin

Re: Google APIS Lib for Fivewin

Postby Silvio.Falconi » Sat Feb 17, 2018 8:50 am

cris, run ok only

I only see a part of the message
I do not see the object
and I see an encrypted string in the id and thread

what are the other fields I can view
can I view attachments?
I can have the structure of the aList array

however, everything is very slow in scrolling through the messages
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7061
Joined: Thu Oct 18, 2012 7:17 pm

Re: Google APIS Lib for Fivewin

Postby cnavarro » Sat Feb 17, 2018 11:20 am

Silvio

Rest Api of GMail is very complete but very hierarchical and complex
It also depends on the speed of your internet connection
It's faster if you set filters

In the next version I will include more complete examples to obtain the attachments and other data, and the application of filters
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6548
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Google APIS Lib for Fivewin

Postby cnavarro » Sat Feb 17, 2018 3:02 pm

For XBrowse faster, modify into my previous sample function XbrMail ( array is created before of xbrowse )
for see complete message, use scroll horozontal bar

Code: Select all  Expand view


   AEVal( aSource, { | a | oMail:GetMessage( a[ 1 ] ), AAdd( aMsgs, { a[ 1 ], a[ 2 ], oMail:cMessage } ) } )
   nLeftPos    := Min( 300, Int( GetSysMetrics( 0 ) / 5 ) )
   if Empty( oWnd )
      lWnd     := .T.
      DEFINE WINDOW oWnd ;
         TITLE " - Google Mail - " + FWVERSION + " - " + hb_Compiler() ;
         PIXEL COLOR CLR_BLUE, CLR_WHITE //STYLE WS_POPUP
   endif
   nTop    := if( Empty( oWnd:oBar ), 0, oWnd:oBar:nBottom ) + 2
   nHeight := if( Empty( oWnd:oMsgBar ), 32, oWnd:oMsgBar:nTop - 2 )

   @ nTop, nLeftPos + 2 XBROWSE oBrw DATASOURCE aMsgs OF oWnd ;
      SIZE GetSysMetrics( 0 ) - nLeftPos - 4, GetSysMetrics( 1 ) - nHeight ;
      HEADERS "Thread", "Id", "Message" ;
      COLUMNS 2, 1, 3 ;
      PIXEL CELL LINES NOBORDER

   WITH OBJECT oBrw
      :l2007            := .F.
      //:nMarqueeStyle    := MARQSTYLE_DOTEDCELL
      :nStretchCol      := 3
      :bClrHeader       := { || { CLR_WHITE, CLR_GRAY } }
      :bClrSelFocus     := ;
      :bClrSel          := { || { CLR_BLACK, CLR_HGRAY } }
      :lRecordSelector  := .F.
      :lHScroll         := .F.
      :nColDividerStyle := ;
      :nRowDividerStyle := LINESTYLE_LIGHTGRAY
      :nRowHeight       := 87
      WITH OBJECT :aCols[ 3 ]
         :bClrStd       := { || { CLR_BLUE, CLR_WHITE } }
         :nDataStrAlign := 0
      END
      :CreateFromCode()
   END

 
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6548
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Google APIS Lib for Fivewin

Postby Silvio.Falconi » Sat Feb 17, 2018 4:37 pm

ok now is good but the xbrowse is big and I not see the scroll end and the bottom of the xbrowse
a question
How I can show the other fields
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7061
Joined: Thu Oct 18, 2012 7:17 pm

Re: Google APIS Lib for Fivewin

Postby cnavarro » Sat Feb 17, 2018 4:53 pm

Wait
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6548
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Google APIS Lib for Fivewin

Postby cnavarro » Tue Mar 06, 2018 9:42 pm

-------------------------------------- NEW VERSION 06/03/2018 ------------------------------
- Read README file included

https://bitbucket.org/fivetech/fivewin- ... GOOGLE.zip
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6548
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Google APIS Lib for Fivewin

Postby Silvio.Falconi » Thu Mar 08, 2018 9:36 am

Cris,
Do you remember , you sad "wait"..
and I'm waiting also for your sample test for insert data from Google calendar directly to tcalex...
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7061
Joined: Thu Oct 18, 2012 7:17 pm

Re: Google APIS Lib for Fivewin

Postby cnavarro » Thu Mar 08, 2018 3:16 pm

Silvio.Falconi wrote:Cris,
Do you remember , you sad "wait"..
and I'm waiting also for your sample test for insert data from Google calendar directly to tcalex...


For topic TCalex
viewtopic.php?f=3&t=34904&start=45#p209876

For "Wait"
I did not remember, what information do you need?
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6548
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Google APIS Lib for Fivewin

Postby Silvio.Falconi » Fri Mar 09, 2018 10:27 am

see it please ( 15 feb)
Image


you sad me wait because you are making a sample how insert the data array of google calendar into tcalex dbf
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7061
Joined: Thu Oct 18, 2012 7:17 pm

Re: Google APIS Lib for Fivewin

Postby cnavarro » Sun Mar 18, 2018 2:00 am

------------------------------------- NEW VERSION 18/03/2018 --------------------------------

https://bitbucket.org/fivetech/fivewin- ... GOOGLE.zip

New method of making graphics
Class TGGraphics ( Version 0.9 ) included in the latest version (03/18/2017) of Google.lib
Includes example and built exe

Look image of sample

viewtopic.php?f=17&t=34973&p=210789#p210789
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6548
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Google APIS Lib for Fivewin

Postby Iris Gesser » Wed Apr 04, 2018 7:36 pm

Dear Cristobal,

is your document 1º EncuentroProgramadoresHARBOUR also available in english?
That would be great for me.
If not, I will try to understand it in spanish.

Thank you very much and kind regards
Iris
User avatar
Iris Gesser
 
Posts: 37
Joined: Fri Apr 22, 2016 10:19 pm

Re: Google APIS Lib for Fivewin

Postby cnavarro » Sat Apr 07, 2018 8:15 pm

------------------------------------------------------ NEW VERSION 07/04/2018 ----------------------------------------

- Class TGMail with many new methods added
- Sample TestGMail0.prg for look this features
- Minors bugs in others class

https://bitbucket.org/fivetech/fivewin- ... GOOGLE.zip

Image
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6548
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Google APIS Lib for Fivewin

Postby Baxajaun » Mon Apr 09, 2018 1:08 pm

Cristóbal,

thanks a lot for your great jobs !

Best regards,
User avatar
Baxajaun
 
Posts: 968
Joined: Wed Oct 19, 2005 2:17 pm
Location: Gatika. Bizkaia

Re: Google APIS Lib for Fivewin

Postby Silvio.Falconi » Mon Apr 09, 2018 1:56 pm

run ok
only the windows are not defined well
why you not use tree for folder ( instead xbrowse left) ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7061
Joined: Thu Oct 18, 2012 7:17 pm

Re: Google APIS Lib for Fivewin

Postby cnavarro » Mon Apr 09, 2018 2:29 pm

Because I do not like trees, and because a single mail can have several associated tags
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6548
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

PreviousNext

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 69 guests

cron