API 3

접속

import gspread from oauth2client.service_account import ServiceAccountCredentials gc = gspreade.service_account(filename='CredentialFileName.json') sp_url = '엑셀파일주소' doc = gc.open_by_url(sp_url) sheet = doc.worksheet('시트1') print(sheet.get_all_records()) credeintialFileName.json의 client_email에 있는 값을 스프레드 시트의 공유에서 추가해야함 #한개씩 입력 sheet.update_acell('A1', 'DATA') #여러개 한꺼번에 입력 d = { 'range': 'A1:C1',..

API/API__google 2021.02.01

google api V3

[내가 해야 했던 것들] 1. 파일을 생성한다 2. google api로 업로드한다 3. 특정 폴더나 공유 폴더에 업로드한다 [도큐먼트] 팀 드라이브 도큐먼트 https://developers.google.com/drive/api/v3/reference/drives 그냥 드라이브 도큐먼트 https://developers.google.com/drive/api/v3/about-files 되새김질해도 진심 열받는 google api 사용 후기 1. 도큐먼트가 다 영어라 싫었다 2. 개발자 친화적이었다 3. 될것 같이 안된다 기본적으로 팀 드라이브에 파일을 넣든 개인 드라이브에 넣든 파라미터든 뭐든 딱히 크게 달라지지 않는다 다만 팀 드라이브는 퍼미션 체크가 필요하다 이거슨 궁서체 난 진지하다 난 퍼미션이 없..

API/API__google 2019.07.18