Google APIS Lib for Fivewin

User avatar
Maurizio
Posts: 826
Joined: Mon Oct 10, 2005 1:29 pm
Contact:

Re: Google APIS Lib for Fivewin

Post by Maurizio »

Cristóbal

it's what I was looking for but dosn't work .


The
Function VerMapa2( cPostal_Code, cStreet, cNumber, cLocality, cState, cNation )
return a empty array ---> {0,0,0}

Regards Maurizio
User avatar
Maurizio
Posts: 826
Joined: Mon Oct 10, 2005 1:29 pm
Contact:

Re: Google APIS Lib for Fivewin

Post by Maurizio »

Cristóbal

If I change in VerMapa2

Code: Select all | Expand

nPos1  := At( "cacheResponse([[[", Left( cURL, 2048 ) )
   if !Empty( nPos1 )
      cRet   := Substr( Left( cURL, 1024 ), nPos1 + 17, 2048 - nPos1 )
      nPos2  := At( "]", cRet )
      if !Empty( nPos2 )
         cRet   := Left( cRet, nPos2 - 1 )
         aCoor  := hb_ATokens( cRet, "," )
      endif
   endif


with

Code: Select all | Expand

 nPos1  := At( "APP_INITIALIZATION_STATE=[[[",cUrl )
   if !Empty( nPos1 )
      cRet   := Substr(cUrl, nPos1 + 28,100 )
      nPos2  := At( "]", cRet )
      if !Empty( nPos2 )
         cRet   := Left( cRet, nPos2 - 1 )
         aCoor  := hb_ATokens( cRet, "," )
      endif
   endif


something started to work
Maurizio
www.nipeservice.com
hmpaquito
Posts: 1482
Joined: Thu Oct 30, 2008 2:37 pm

Re: Google APIS Lib for Fivewin

Post by hmpaquito »

Hola Cristobal,

Estoy probando el paquete.
Cuando ejecuto TestGmail.exe y pulso en Access no hace nada y se queda colgado.

He puesto mi client_id.json en la carpeta donde esta TestGmail.exe

A ver si por favor me puedes indicar que podría estar pasando.

Gracias.
User avatar
cnavarro
Posts: 6557
Joined: Wed Feb 15, 2012 8:25 pm
Location: España
Been thanked: 3 times

Re: Google APIS Lib for Fivewin

Post by cnavarro »

Paquito, thanks
Sorry, a small forgotten
Test this version and tell me

https://bitbucket.org/fivetech/fivewin- ... TGMAIL.EXE
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
hmpaquito
Posts: 1482
Joined: Thu Oct 30, 2008 2:37 pm

Re: Google APIS Lib for Fivewin

Post by hmpaquito »

Buenos días Cristobal,

Ahora al pulsar el boton Access dice "File JSON not Found"

Salu2
User avatar
cnavarro
Posts: 6557
Joined: Wed Feb 15, 2012 8:25 pm
Location: España
Been thanked: 3 times

Re: Google APIS Lib for Fivewin

Post by cnavarro »

And, are you sure that the client_id.json file is in the same folder as the EXE?

Y, estás seguro que el fichero client_id.json está en la misma carpeta que el EXE?
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
hmpaquito
Posts: 1482
Joined: Thu Oct 30, 2008 2:37 pm

Re: Google APIS Lib for Fivewin

Post by hmpaquito »

cnavarro wrote:And, are you sure that the client_id.json file is in the same folder as the EXE?

Y, estás seguro que el fichero client_id.json está en la misma carpeta que el EXE?


Sí, como se puede ver en la siguiente imagen:

Image
User avatar
cnavarro
Posts: 6557
Joined: Wed Feb 15, 2012 8:25 pm
Location: España
Been thanked: 3 times

Re: Google APIS Lib for Fivewin

Post by cnavarro »

Es una unidad ( quiero decir el root de una unidad )?, si es así
Crea una carpeta en esa unidad y prueba entonces, aunque es raro
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
hmpaquito
Posts: 1482
Joined: Thu Oct 30, 2008 2:37 pm

Re: Google APIS Lib for Fivewin

Post by hmpaquito »

cnavarro wrote:Es una unidad ( quiero decir el root de una unidad )?, si es así
Crea una carpeta en esa unidad y prueba entonces, aunque es raro


Creada carpeta C:\google, pero sigue sin funcionar, da el mismo error

Image

Image
User avatar
cnavarro
Posts: 6557
Joined: Wed Feb 15, 2012 8:25 pm
Location: España
Been thanked: 3 times

Re: Google APIS Lib for Fivewin

Post by cnavarro »

Paquito, puedes enviarme tu fichero .json ?
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
hmpaquito
Posts: 1482
Joined: Thu Oct 30, 2008 2:37 pm

Re: Google APIS Lib for Fivewin

Post by hmpaquito »

cnavarro wrote:Paquito, puedes enviarme tu fichero .json ?


Enviado !
hmpaquito
Posts: 1482
Joined: Thu Oct 30, 2008 2:37 pm

Re: Google APIS Lib for Fivewin

Post by hmpaquito »

Gracias Cristóbal, ya está funcionando.


Una cosa. Me gustaría proveer a mi programa de una Agenda que pueda ser accedida remotamente.
Si utilizara TCalex entonces tendría que sincronizar con Google Calendar.

¿ Podría ser mejor utilizar también Google Calendar en con el programa fwh ?

¿ Qué os parece ?

Gracias.
User avatar
cnavarro
Posts: 6557
Joined: Wed Feb 15, 2012 8:25 pm
Location: España
Been thanked: 3 times

Re: Google APIS Lib for Fivewin

Post by cnavarro »

Bien, en una version anterior

viewtopic.php?f=3&t=34904&start=75#p212839

Se incluye una rutina para exportar el calendario de Google a TCalex
Yo particularmente, disponiendo de la posibilidad de utilizar directamente este calendario de Google con la posibilidad de compartirlo, creo que utilizaría éste, dándole la apariencia estética que consideres


Well, in a previous version

viewtopic.php?f=3&t=34904&start=75#p212839

A routine is included to export the Google calendar to TCalex
I particularly, having the possibility of using this Google calendar directly with the possibility of sharing it, I think I would use it, giving it the aesthetic appearance that you consider
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
hmpaquito
Posts: 1482
Joined: Thu Oct 30, 2008 2:37 pm

Re: Google APIS Lib for Fivewin

Post by hmpaquito »

A ver si lo he entendido: Podemos usar ggcalend.prg como agenda desktop (desconocia su existencia - gracias) ¿ es eso ?

¿ Podrias poner una imagen a ver qué tal se ve ?

Gracias por tu inconmesurable trabajo.
User avatar
cnavarro
Posts: 6557
Joined: Wed Feb 15, 2012 8:25 pm
Location: España
Been thanked: 3 times

Re: Google APIS Lib for Fivewin

Post by cnavarro »

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