Catalog · How the catalog works
GDrive4D
Interface para manipulação de arquivos e pastas no GoogleDrive.
- ★ 4 on GitHub
Anyone may press Interesting, signed in or not. It helps others find this project.
README
GDrive4D
Interface para manipulação de arquivos e pastas no GoogleDrive.
Baseado na documentação: https://developers.google.com/drive/api/v3/about-sdk
Ative a API para obter as Credenciais de acesso a API.
- Instalação usando Boss:
boss install github.com/WillHubner/GDrive4DVocê precisa utilizar GDrive4D
uses GDrive4D;- Autenticação
begin
_Drive :=
TGDrive
.New
.Auth
.RefreshToken(edRefreshToken.Text)
.ClientID(edClientID.Text)
.ApiKey(edAPIKEY.Text)
.ClientSecret(edClientSecret.Text)
.&End;
end;- Criar Pasta
begin
_Drive.CreateFolder('');
end;- Upar Arquivo
begin
_Drive.uploadFile(DestinoArquivo, ID_Pasta, NomeArquivo)
end;- Deletar Arquivo
begin
_Drive.deleteFile('')
end;- Download Arquivo
begin
_Drive.DownloadFile(ID_Arquivo, Destino);
end;A requisições foram baseadas na biblioteca RESTRequest4Delphi disponível em: https://github.com/viniciussanchez/RESTRequest4Delphi

