일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
- api사용해서 google drive에 폴더만들기
- opencv apt설치
- vim명령어
- Python
- Winform
- google drive upload
- 고정ip할당
- 아두이노
- translation
- ubuntu
- 정보처리기사후기
- Google Drive API
- vtk
- 아두이노 설치
- apt update
- sshkey
- opencv resize
- google drive 업로드
- opengl
- esp32
- NodeMCU
- 우분투 opencv 설치
- vim
- libopencv-dev
- vi
- opencv
- 정보처리기사
- annotating
- rotation
- c#
- Today
- Total
목록c# (10)
내가 보려고 만든 블로그
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/dxdXlL/btrQpxfVLKP/NOgbHQUr3gFarf0r5GCLZ1/img.png)
데이터 그리드뷰에 작은 화살표에서 우클릭해서 열편집 동작> sortMode >NotSortable 로 변경함 미들센터로 폰트를 정함 > 센터로 감.
https://console.cloud.google.com/apis/ Google 클라우드 플랫폼 로그인 Google 클라우드 플랫폼으로 이동 accounts.google.com https://www.youtube.com/watch?v=1y0-IfRW114 이 동영상보고 oauth계정만드는 부분만 따라했다. 코드부분은 내가 c#을 쓰기때문에 따라하지않았음. api코드 설정하는건 이렇게 했다. private static DriveService GetService() { var tokenResponse = new TokenResponse { AccessToken = "엑세스토큰", RefreshToken = "리플레시 토큰", }; var applicationName = "프로젝트이름"; // Use the..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/B9hxY/btrOP8JcmYO/Ffe7wOqOt65q0PL9tbG4h1/img.png)
public static string DriveUploadBasic(string filePath, string forderID) { var credential = GoogleCredential.FromFile(PathToServiceAccountKeyFile) .CreateScoped(DriveService.Scope.Drive); // Create Drive API service. var service = new DriveService(new BaseClientService.Initializer { HttpClientInitializer = credential, //ApplicationName = "Drive API Snippets" }); // Upload file photo.jpg on drive...
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/dRU5Cy/btrOQhMR6Pf/QyEhekdPlp1BWKhokhKk3k/img.png)
// service account 계정만들고 다운받은 json파일 경로 private const string PathToServiceAccountKeyFile = @"C:\Users\\Desktop\mygoogleapi.json"; // upload할 파일경로 + 이름 private const string UploadFileName = @"C:\Users\Desktop\aaa.txt"; //구글드라이브의 폴더주소 private const string DirectoryId = "1QM......."; ▲ service account 계정 어떻게 만들지 모르겠으면 google drive에 업로드하기 -1 보기!!! 구글드라이브 폴더주소 알아보는 법은 2편에 있음. public static string Dri..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/bmYizl/btrOP0RLiyh/uWiEYkfjIhRxMoF5kZKLCk/img.png)
// service account 계정만들고 다운받은 json파일 경로 private const string PathToServiceAccountKeyFile = @"C:\Users\\Desktop\mygoogleapi.json"; // upload할 파일경로 + 이름 private const string UploadFileName = @"C:\Users\Desktop\aaa.txt"; //구글드라이브의 폴더주소 private const string DirectoryId = "1QM......."; 구글드라이브에 들어가서 폴더 하나 만들고 그 폴더에서 우클릭하고 공유를 누른다. json파일을 보면 client_email 옆에 텍스트가 있는데 그것을 복사해서 공유에 쓰고 공유 버튼을 누른다. 그리고 tes..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/bMrrnC/btrOZIqJzLC/Gd5sxsjRRCRoMrclrzsWW0/img.png)
https://www.daimto.com/upload-file-to-google-drive/ Upload file to Google drive Are you working on an application where you would like to upload a file to Google drive. There are some changes from google drive v2 to the new Google drive v3 and a lot of the samples out there for v2 wont work for the new Google drive API v3. www.daimto.com 보고 따라함.. winform에서 실행하는거라서 코드 변경 함. https://www.youtube.co..