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
|[authenticateOauth](#authenticateoauth)| ### Overview Allows you to get an authorization token for using the user's account. Callback is located at `/oauth/{provider}/callback` which will verify the token recieved from the OAuth, then redirect you finally to `https://torbox.app/{provider}/success?token={token}&expires_in={expires_in}&expires_at={expires_at}` #### Providers: - "google" -\> Google Drive - "dropbox" -\> Dropbox - "discord" -\> Discord - "onedrive" -\> Azure AD/Microsoft/Onedrive ### Authorization No authorization needed. This is a whitelabel OAuth solution. |
8
8
|[queueGoogleDrive](#queuegoogledrive)| ### Overview Queues a job to upload the specified file or zip to the Google Drive account sent with the `google_token` key. To get this key, either get an OAuth2 token using `/oauth/google` or your own solution. Make sure when creating the OAuth link, you add the scope `https://www.googleapis.com/auth/drive.file` so TorBox has access to the user's Drive. ### Authorization Requires an API key using the Authorization Bearer Header. |
9
-
|[queueDropbox](#queuedropbox)| ### Overview Queues a job to upload the specified file or zip to the Dropbox account sent with the `dropbox_token` key. To get this key, either get an OAuth2 token using `/oauth/dropbox` or your own solution. Make sure when creating the OAuth link you use the scopes `files.content.write`_(used for uploading to the user's account)_ and `sharing.write`_(used for creating the link)._ ### Authorization Requires an API key using the Authorization Bearer Header. |
10
9
|[queueOnedrive](#queueonedrive)| ### Overview Queues a job to upload the specified file or zip to the OneDrive sent with the `onedrive_token` key. To get this key, either get an OAuth2 token using `/oauth/onedrive` or your own solution. Make sure when creating the OAuth link you use the scope `files.readwrite.all`. This is compatible with all different types of Microsoft accounts. ### Authorization Requires an API key using the Authorization Bearer Header. |
11
10
|[queueGofile](#queuegofile)| ### Overview Queues a job to upload the specified file or zip to the GoFile account sent with the `gofile_token`_(optional)_. To get this key, login to your GoFile account and go [here](https://gofile.io/myProfile). Copy the **Account API Token**. This is what you will use as the `gofile_token`, if you choose to use it. If you don't use an Account API Token, GoFile will simply create an anonymous file. This file will expire after inactivity. ### Authorization Requires an API key using the Authorization Bearer Header. |
12
11
|[queue1fichier](#queue1fichier)| ### Overview Queues a job to upload the specified file or zip to the 1Fichier account sent with the `onefichier_token` key (optional). To get this key you must be a Premium or Premium Gold member at 1Fichier. If you are upgraded, [go to the parameters page](https://1fichier.com/console/params.pl), and get an **API Key**. This is what you will use as the `onefichier_token`, if you choose to use it. If you don't use an API Key, 1Fichier will simply create an anonymous file. ### Authorization Requires an API key using the Authorization Bearer Header. |
@@ -31,7 +30,7 @@ A list of all methods in the `IntegrationsService` service. Click on the method
31
30
**Example Usage Code Snippet**
32
31
33
32
```typescript
34
-
import { TorboxApi } from'torbox-api';
33
+
import { TorboxApi } from'@torbox/torbox-api';
35
34
36
35
(async () => {
37
36
const torboxApi =newTorboxApi({
@@ -61,7 +60,7 @@ import { TorboxApi } from 'torbox-api';
61
60
**Example Usage Code Snippet**
62
61
63
62
```typescript
64
-
import { TorboxApi } from'torbox-api';
63
+
import { TorboxApi } from'@torbox/torbox-api';
65
64
66
65
(async () => {
67
66
const torboxApi =newTorboxApi({
@@ -76,38 +75,6 @@ import { TorboxApi } from 'torbox-api';
76
75
})();
77
76
```
78
77
79
-
## queueDropbox
80
-
81
-
### Overview Queues a job to upload the specified file or zip to the Dropbox account sent with the `dropbox_token` key. To get this key, either get an OAuth2 token using `/oauth/dropbox` or your own solution. Make sure when creating the OAuth link you use the scopes `files.content.write`_(used for uploading to the user's account)_ and `sharing.write`_(used for creating the link)._ ### Authorization Requires an API key using the Authorization Bearer Header.
const { data } =awaittorboxApi.integrations.queueDropbox('api_version');
106
-
107
-
console.log(data);
108
-
})();
109
-
```
110
-
111
78
## queueOnedrive
112
79
113
80
### Overview Queues a job to upload the specified file or zip to the OneDrive sent with the `onedrive_token` key. To get this key, either get an OAuth2 token using `/oauth/onedrive` or your own solution. Make sure when creating the OAuth link you use the scope `files.readwrite.all`. This is compatible with all different types of Microsoft accounts. ### Authorization Requires an API key using the Authorization Bearer Header.
@@ -125,7 +92,7 @@ import { TorboxApi } from 'torbox-api';
125
92
**Example Usage Code Snippet**
126
93
127
94
```typescript
128
-
import { TorboxApi } from'torbox-api';
95
+
import { TorboxApi } from'@torbox/torbox-api';
129
96
130
97
(async () => {
131
98
const torboxApi =newTorboxApi({
@@ -157,7 +124,7 @@ import { TorboxApi } from 'torbox-api';
157
124
**Example Usage Code Snippet**
158
125
159
126
```typescript
160
-
import { TorboxApi } from'torbox-api';
127
+
import { TorboxApi } from'@torbox/torbox-api';
161
128
162
129
(async () => {
163
130
const torboxApi =newTorboxApi({
@@ -189,7 +156,7 @@ import { TorboxApi } from 'torbox-api';
189
156
**Example Usage Code Snippet**
190
157
191
158
```typescript
192
-
import { TorboxApi } from'torbox-api';
159
+
import { TorboxApi } from'@torbox/torbox-api';
193
160
194
161
(async () => {
195
162
const torboxApi =newTorboxApi({
@@ -224,7 +191,7 @@ import { TorboxApi } from 'torbox-api';
224
191
**Example Usage Code Snippet**
225
192
226
193
```typescript
227
-
import { TorboxApi } from'torbox-api';
194
+
import { TorboxApi } from'@torbox/torbox-api';
228
195
229
196
(async () => {
230
197
const torboxApi =newTorboxApi({
@@ -258,7 +225,7 @@ import { TorboxApi } from 'torbox-api';
258
225
**Example Usage Code Snippet**
259
226
260
227
```typescript
261
-
import { TorboxApi } from'torbox-api';
228
+
import { TorboxApi } from'@torbox/torbox-api';
262
229
263
230
(async () => {
264
231
const torboxApi =newTorboxApi({
@@ -292,7 +259,7 @@ import { TorboxApi } from 'torbox-api';
0 commit comments