FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Google APIS Lib for Fivewin
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Google APIS Lib for Fivewin
Posted: Sat Feb 17, 2018 08: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 March-April 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
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Google APIS Lib for Fivewin
Posted: 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
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Google APIS Lib for Fivewin
Posted: Sat Feb 17, 2018 03: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 (fw): Select all Collapse
   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
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Google APIS Lib for Fivewin
Posted: Sat Feb 17, 2018 04: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 March-April 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
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Google APIS Lib for Fivewin
Posted: Sat Feb 17, 2018 04: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
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Google APIS Lib for Fivewin
Posted: Tue Mar 06, 2018 09: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
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Google APIS Lib for Fivewin
Posted: Thu Mar 08, 2018 09: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 March-April 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
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Google APIS Lib for Fivewin
Posted: Thu Mar 08, 2018 03: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
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Google APIS Lib for Fivewin
Posted: Fri Mar 09, 2018 10:27 AM
see it please ( 15 feb)



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 March-April 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
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Google APIS Lib for Fivewin
Posted: Sun Mar 18, 2018 02: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=17t=34973p=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
Posts: 38
Joined: Fri Apr 22, 2016 10:19 PM
Re: Google APIS Lib for Fivewin
Posted: Wed Apr 04, 2018 07: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

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Google APIS Lib for Fivewin
Posted: Sat Apr 07, 2018 08: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

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
Posts: 990
Joined: Wed Oct 19, 2005 02:17 PM
Re: Google APIS Lib for Fivewin
Posted: Mon Apr 09, 2018 01:08 PM

Crist贸bal,

thanks a lot for your great jobs !

Best regards,

Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Google APIS Lib for Fivewin
Posted: Mon Apr 09, 2018 01: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 March-April 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
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Google APIS Lib for Fivewin
Posted: Mon Apr 09, 2018 02: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