Clipper On Line • Ver Tópico - Download file of GDRIVE
Página 1 de 2

Download file of GDRIVE

MensagemEnviado: 15 Jan 2018 11:47
por cnavarro
Download gdrive file without using the APIs

http://forums.fivetechsupport.com/viewt ... 73#p209084

Download file of GDRIVE

MensagemEnviado: 17 Jan 2018 11:48
por rubens
Olá...

Nesse trecho do código aqui que eu coloco o arquivo que quero baixar?
cUrl   := "https://docs.google.com/uc?export=download&id=YOUR_ID_OF_FILE"

No YOUR_ID_OF_FILE?

Obrigado
Rubens

Download file of GDRIVE

MensagemEnviado: 17 Jan 2018 12:22
por sygecom
Isso, coloca o ID doarquivo gerado pelo Google Drive, e talvez o arquivo tem que está publico e não privado, não testei ainda, eu queria algo assim para UPLOAD

Download file of GDRIVE

MensagemEnviado: 17 Jan 2018 13:56
por cnavarro
Rubens

Your YOUR_ID_OF_FILE is obtained by sharing the file in GDRIVE
GDrive provides you with the ID of the file in the link address

Download file of GDRIVE

MensagemEnviado: 17 Jan 2018 14:11
por Kapiaba
Maestro Cristobal, hable(escriba) en español también pués asi és más fácil la lectura. many thanks, muchas gracias.

Download file of GDRIVE

MensagemEnviado: 17 Jan 2018 15:36
por rubens
Então pessoal...

Consegui compilar em harbour...
Mas acho que tem alguma coisa errada com o endereço que estou colocando...
Vou no GoogleDrive, clico em cima do arquivo e mando compartilhar (sharing) daí ele mostra o link. Copio o link e colo no sistema.
Só que baixa a página em HTML e não o arquivo especificado.

O código ficou assim:
//----------------------------------------------------------------------------//
//
// Function para descargar ficheros desde GDrive
// El truquillo está en la dirección de la descarga, el resto es trivial
//
// The ID of the file you get in the address offered by GMail when sharing the file.
// Just change the access address and add that ID
//
// https://docs.google.com/uc?export=download&id=
//----------------------------------------------------------------------------//

// #include "Fivewin.ch"
#include "hbgtinfo.ch"
#include "hbcompat.ch"
#include "hbwin.ch"
#include "xhb.ch"

#require "hbmisc"

Function Main()

   local cUrl
               
   //
   cUrl   := "https://drive.google.com/file/d/15PqoT5QTYRcDGpq8GE80Ddfkss0-MIOi/view?usp=sharing"
   Cn_DownLoad( cUrl, .F., "c:\hmg0409\ftp\Personal.dbf" )
   //

Return nil

//----------------------------------------------------------------------------//

Function Cn_DownLoad( cUrl, lText, cFileTarget )

   local oHttp
   local cContents := ""
   HB_DEFAULT(@cUrl   ,"" )
   HB_DEFAULT(@lText ,.F.)
   HB_DEFAULT(@cFileTarget, "")
   
   altd()

   if !Empty( cUrl )
   
      CallDll32( "wininet.dll", "DeleteUrlCacheEntryA", cUrl )
      
      TRY
         // oHttp     := FWGetOleObject( "MSXML2.ServerXMLHTTP.3.0" )
         oHttp     := CreateObject( "MSXML2.ServerXMLHTTP.3.0" )
         oHttp:Open( "GET", cUrl, .F. )
         oHttp:Send()
         oHttp:WaitForResponse()
         HB_DEFAULT(@lText, .F.)
         if lText
            cContents  := oHttp:ResponseText()
         else
            cContents  := oHttp:ResponseBody()
         endif
      CATCH
     
      END
     
      if Len( cContents ) > 0 .and. !Empty( cFileTarget )
         MemoWrit( cFileTarget, cContents )
      else
         Alert( "Erro no Download", "Atenção" )
      endif
   else
      Alert( "URL Informada em branco", "Erro no Download" )
   endif
Return nil

O eue estou fazendo de errado no link do arquivo ?

Obrigado
Rubens

Download file of GDRIVE

MensagemEnviado: 17 Jan 2018 17:52
por rubens
Opa...

Consegui...
Quando compartilho o arquivo ele abre uma tela para baixar o arquivo... tem que clicar no nome do arquivo para baixar e copiar o link... Tem que ser meio Ninja para fazer isso, mas dá certinho...
Tô baixando o arquivo normalzinho...
Agora tocar o projeto para frente...

Obrigado a todos... principalmente ao Senhor Cristobal...
Rubens

Download file of GDRIVE

MensagemEnviado: 17 Jan 2018 18:22
por fladimir
Pessoal o Google drive vai continuar ativo até quando alguém sabe?

Download file of GDRIVE

MensagemEnviado: 17 Jan 2018 20:07
por JoséQuintas
Pessoal o Google drive vai continuar ativo até quando alguém sabe?


Acho que pra sempre.

Gostei do menu do exemplo, e também de ver o fonte parcial do fivepro e do fivenet.
Apenas fui seguindo os links, e cheguei aqui: https://bitbucket.org/fivetech/

Download file of GDRIVE

MensagemEnviado: 17 Jan 2018 22:06
por fladimir
Q bom, tinha ouvido um boato ano passado q o Google iria descontinuar, mas ainda bem q era fake, uso muito o GDrive.

Agora com essa contribuição ajuda tb.

Vlw

Download file of GDRIVE

MensagemEnviado: 18 Jan 2018 00:18
por JoséQuintas
Errei.
Tá programado pra parar no final do ano, começando a avisar em março.
Vai parar a parte pra uso no computador.

https://olhardigital.com.br/noticia/google-anuncia-o-fim-do-app-do-drive-para-computador/70941

Download file of GDRIVE

MensagemEnviado: 18 Jan 2018 12:12
por cnavarro
Nueva version de la libreria para usar las APIS de Google
Permite subir ficheros a GDrive y, si lo deseas, obtener el link de fichero compartido, para ser descargado sin utilizar las APIs

New version lib for use APIS Google
Allow upload files to GDrive and, obtain link for share and download file within API

Spanish

http://forums.fivetechsupport.com/viewt ... 15#p209198

English

http://forums.fivetechsupport.com/viewt ... 15#p209197

Download file of GDRIVE

MensagemEnviado: 24 Jan 2018 20:11
por cnavarro
New version:

Upload all type files: FIXED

​​​​​​​http://forums.fivetechsupport.com/viewtopic.php?f=6&t=34903&start=15#p209350

Download file of GDRIVE

MensagemEnviado: 29 Jan 2018 14:28
por rochinha
Amiguinhos,

O serviço Google Drive não vai parar, o que vai parar é o aplicativo desktop. Me corrége aeeeeeh!

Download file of GDRIVE

MensagemEnviado: 12 Fev 2018 10:16
por cnavarro
------------------------------- NUEVA VERSION 11/02/2018 --------------------

http://forums.fivetechsupport.com/viewt ... 15#p209775

Download file of GDRIVE

MensagemEnviado: 13 Fev 2018 10:13
por cnavarro
Ultima version con la lib y los ejemplos

http://forums.fivetechsupport.com/viewt ... 15#p209816

Download file of GDRIVE

MensagemEnviado: 12 Mar 2018 15:12
por cnavarro
------------------------------------- NEW VERSION 06/03/2018 ------------------------------

http://forums.fivetechsupport.com/viewt ... 30#p210452

Download file of GDRIVE

MensagemEnviado: 07 Abr 2018 17:20
por cnavarro
-------------------------------------- NEW VERSION 07/04/2018 --------------------------------

http://forums.fivetechsupport.com/viewt ... 30#p211287

Download file of GDRIVE

MensagemEnviado: 07 Mai 2018 11:09
por cnavarro
---------------------------------------- NEW VERSION 07/05/2018 ----------------------

http://forums.fivetechsupport.com/viewt ... 30#p211934

Download file of GDRIVE

MensagemEnviado: 08 Jun 2018 17:18
por cnavarro
-------------------------------------- NEW VERSION 08/06/2018 ----------------------

http://forums.fivetechsupport.com/viewt ... 45#p212840

New full sample of use calendar Google with export to TCalex

Download file of GDRIVE

MensagemEnviado: 06 Jul 2018 23:03
por cnavarro

Download file of GDRIVE

MensagemEnviado: 04 Ago 2018 13:42
por cnavarro

Download file of GDRIVE

MensagemEnviado: 31 Out 2019 20:53
por cnavarro
I create slack for Googe lib
https://join.slack.com/t/googlelib/shar ... jU3YTNkZTc
New version of lib in slack