구글 drive api 사용기

구글 drive api 사용기

python
구글 drive api 홈페이지 : https://developers.google.com/drive/
죄측 메뉴 Quickstart > python : https://developers.google.com/drive/quickstart-python

비디오
https://developers.google.com/drive/quickstart-python#optional_view_a_quickstart_video

1단계 : Enable the Drive API
1. Create an API project in the Google APIs Console.
2. Select the Services tab in your API project, and enable the Drive API.
3. Select the API Access tab in your API project, and click Create an OAuth 2.0 client ID.
4. In the Branding Information section, provide a name for your application (e.g. “Drive Quickstart Sample”), and click Next. Providing a product logo is optional.
5, In the Client ID Settings section, do the following:
a. Select Installed application for the Application type
b. Select Other for the Installed application type.
c. Click Create Client ID.
6. In the API Access page, locate the section Client ID for installed applications and note or copy the two pieces of information you’ll need later to run the sample: the Client ID and the Client Secret.

그림

2단계 : Install the Google Client Library
To install the Google API Python Client on a system, you must use either the pip command or easy_install command.
easy_install –upgrade google-api-python-client
pip install –upgrade google-api-python-client
If you need to access the Google API Python Client from a Google App Engine project, you can follow the instructions here.

근데 서버에 easy_install이 없다..(pip도..)

easy_install 설치..(귀찮아서 yum으로)

setuptools 설치

easy_install으로 google-api-python-client 설치

에러다..ㅠㅠ

아래 부분으로 봐선 2.4버전도 지원하는 것같은데..

왜 에러 일까..ㅠㅠ

simplejson-3.0.7/setup.py
이 패키지가 문제인듯 한데..

좀 더 찾아봐야 할듯..(5분이면 된데서 해봤는데.. 지금 이거 볼 시간이 없어서 pass~)

This entry was posted in Python/Ruby/Perl, Util/Tools and tagged , , , , , , . Bookmark the permalink.

댓글 남기기