Google APIS Lib for Fivewin

Post Reply
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: Google APIS Lib for Fivewin

Post by Silvio.Falconi »

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
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Google APIS Lib for Fivewin

Post by cnavarro »

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
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
User avatar
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Google APIS Lib for Fivewin

Post by cnavarro »

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


   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

 
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: Google APIS Lib for Fivewin

Post by Silvio.Falconi »

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
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Google APIS Lib for Fivewin

Post by cnavarro »

Wait
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
User avatar
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Google APIS Lib for Fivewin

Post by cnavarro »

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

https://bitbucket.org/fivetech/fivewin- ... GOOGLE.zip
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: Google APIS Lib for Fivewin

Post by Silvio.Falconi »

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...
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Google APIS Lib for Fivewin

Post by cnavarro »

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
http://forums.fivetechsupport.com/viewt ... 45#p209876

For "Wait"
I did not remember, what information do you need?
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: Google APIS Lib for Fivewin

Post by Silvio.Falconi »

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
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Google APIS Lib for Fivewin

Post by cnavarro »

------------------------------------- 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

http://forums.fivetechsupport.com/viewt ... 89#p210789
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
User avatar
Iris Gesser
Posts: 32
Joined: Fri Apr 22, 2016 10:19 pm

Re: Google APIS Lib for Fivewin

Post by Iris Gesser »

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
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Google APIS Lib for Fivewin

Post by cnavarro »

------------------------------------------------------ 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
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
User avatar
Baxajaun
Posts: 853
Joined: Wed Oct 19, 2005 2:17 pm
Location: Gatika. Bizkaia

Re: Google APIS Lib for Fivewin

Post by Baxajaun »

Cristóbal,

thanks a lot for your great jobs !

Best regards,
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: Google APIS Lib for Fivewin

Post by Silvio.Falconi »

run ok
only the windows are not defined well
why you not use tree for folder ( instead xbrowse left) ?
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Google APIS Lib for Fivewin

Post by cnavarro »

Because I do not like trees, and because a single mail can have several associated tags
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
Post Reply