You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
@@ -64,42 +68,80 @@ Now you should be able to claim and download your first eBook
64
68
python script/spider.py --config config/prod.cfg
65
69
```
66
70
67
-
###Drive
71
+
###GoogleDrive
68
72
69
-
From the documentation, Drive API requires OAuth2.0 for authentication, so to upload files you should:
73
+
From the documentation,GoogleDrive API requires OAuth2.0 for authentication, so to upload files you should:
70
74
71
-
* Go to[Google APIs Console](https://code.google.com/apis/console) and create a new[Drive](https://console.developers.google.com/apis/api/drive/overview) project named**PacktpubDrive**
75
+
* Go to[Google APIs Console](https://code.google.com/apis/console) and create a new[GoogleDrive](https://console.developers.google.com/apis/api/drive/overview) project named**PacktpubDrive**
72
76
* On*API manager > Overview* menu
73
77
* Enable Google Drive API
74
78
* On*API manager > Credentials* menu
75
79
* In*OAuth consent screen* tab set**PacktpubDrive** as the product name shown to users
76
80
* In*Credentials* tab create credentials of type*OAuth client ID* and choose Application type*Other* named**PacktpubDriveCredentials**
77
81
* Click*Download JSON* and save the file`config/client_secrets.json`
78
-
* Change your Drive credentials in the config file
82
+
* Change yourGoogleDrive credentials in the config file
Only the first time you will be prompted to login in a browser which has javascript enabled (no text-based browser) to generate`config/auth_token.json`.
93
97
You should also copy and paste in the config the*FOLDER_ID*, otherwise every time a new folder with the same name will be created.
From the documentation, OneDrive API requires OAuth2.0 for authentication, so to upload files you should:
110
+
111
+
112
+
* Go to the[Microsoft Application Registration Portal](https://apps.dev.microsoft.com/?referrer=https%3A%2F%2Fdev.onedrive.com%2Fapp-registration.htm).
113
+
* When prompted, sign in with your Microsoft account credentials.
114
+
* Find**My applications** and click**Add an app**.
115
+
* Enter**PacktpubDrive** as the app's name and click**Create application**.
116
+
* Scroll to the bottom of the page and check the**Live SDK support** box.
117
+
* Change your OneDrive credentials in the config file
118
+
* Copy your**Application Id** into the config file to**onedrive.client_id**
119
+
* Click**Generate New Password** and copy the password shown into the config file to**onedrive.client_secret**
120
+
* Click**Add Platform** and select**Web**
121
+
* Enter**http://localhost:8080/** as the**Redirect URL**
Only the first time you will be prompted to login in a browser which has javascript enabled (no text-based browser) to generate`config/session.onedrive.pickle`.