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
Copy file name to clipboardExpand all lines: docs/edge-scripting-api.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@ $bunnyHttpClient->request(
70
70
);
71
71
```
72
72
73
-
!!! note
73
+
??? note
74
74
75
75
- The key `type` has the following possible values:
76
76
- `0` = DNS (DNS scripts)
@@ -109,7 +109,7 @@ $bunnyHttpClient->request(
109
109
);
110
110
```
111
111
112
-
!!! note
112
+
??? note
113
113
114
114
- The key `ScriptType` has the following possible values:
115
115
- `1` = Standalone (Standalone scripts are ideal for a wide range of applications, such as building RESTful APIs, delivering UI applications, and processing data at the edge.)
@@ -118,7 +118,7 @@ $bunnyHttpClient->request(
118
118
- The key `Id` (under `RepositorySettings`) and `DeployConfiguration` are not required when creating a new GitHub repository.
119
119
- The key `IntegrationId` is required when creating and deploying through GitHub. It can be retrieved from the [Get GitHub Integration](base-api.md#get-github-integration) endpoint.
120
120
121
-
!!! info
121
+
??? info
122
122
123
123
The Edge Scripting API can also be used for creating DNS scripts.
124
124
@@ -133,7 +133,7 @@ $bunnyHttpClient->request(
133
133
);
134
134
```
135
135
136
-
!!! example
136
+
??? example
137
137
138
138
Examples for `DeployConfiguration` payloads.
139
139
@@ -159,7 +159,7 @@ $bunnyHttpClient->request(
159
159
],
160
160
```
161
161
162
-
!!! question
162
+
??? question
163
163
164
164
If you want to create a workflow file yourself, check out the [BunnyWay Github action deploy script](https://github.com/BunnyWay/actions/tree/main/deploy-script).
165
165
@@ -203,7 +203,7 @@ $bunnyHttpClient->request(
203
203
);
204
204
```
205
205
206
-
!!! note
206
+
??? note
207
207
208
208
- The key `ScriptType` has the following possible values:
209
209
- `0` = DNS (DNS scripts)
@@ -225,7 +225,7 @@ $bunnyHttpClient->request(
225
225
226
226
### Variable
227
227
228
-
!!! info
228
+
??? info
229
229
230
230
There is no "List Variables" endpoint to retrieve all variables for a specific script. Instead, you can retrieve
231
231
this information from the [Get Edge Script](#get-edge-script) endpoint.
@@ -415,7 +415,7 @@ $bunnyHttpClient->request(
415
415
);
416
416
```
417
417
418
-
!!! note
418
+
??? note
419
419
420
420
- The key `uuid` denotes an 8 character alphanumeric string (and **not** an ["UUID"](https://datatracker.ietf.org/doc/html/rfc9562)),
421
421
which can be retrieved from the [Get Releases](#get-releases) or [Get Active Release](#get-active-release) endpoints. It can also
Copy file name to clipboardExpand all lines: docs/edge-storage-api.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,12 +76,12 @@ $bunnyHttpClient->request(
76
76
);
77
77
```
78
78
79
-
!!! note
79
+
??? note
80
80
- Make sure your `RootPath` and `Paths` contain **leading** and **trailing** slashes.
81
81
- If you omit the slashes in `RootPath` this will result in a `400` status code.
82
82
- If you omit the slashes in `Paths` this will result in a `200` status code with an empty ZIP file.
83
83
84
-
!!! warning
84
+
??? warning
85
85
86
86
- This endpoint (with method `POST`) is currently not documented in the API specifications.
87
87
- This request may fail or timeout if the requested directory has too many files or is too big.
@@ -133,7 +133,7 @@ $bunnyHttpClient->request(
133
133
);
134
134
```
135
135
136
-
!!! warning
136
+
??? warning
137
137
138
138
- While a hash value in hexidecimal string representation is case insensitive, the value for the `Checksum` header must be in **uppercase** characters to ensure a successful upload.
139
139
- If an incorrect `Checksum` is provided, the response will still be `201` but the file will not be uploaded.
Copy file name to clipboardExpand all lines: docs/shield-api.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,7 +91,7 @@ $bunnyHttpClient->request(
91
91
);
92
92
```
93
93
94
-
!!! note
94
+
??? note
95
95
96
96
- The key `shieldZoneId` is not needed or required when creating a shield zone.
97
97
@@ -362,7 +362,7 @@ $bunnyHttpClient->request(
362
362
);
363
363
```
364
364
365
-
!!! warning
365
+
??? warning
366
366
367
367
- If this endpoint is requested for a shield zone on a free tier, it returns a `202` status code with the error message: `We do not support Custom WAF Rule creation on our Free Tier of Bunny Shield, please upgrade to Advanced.`
Copy file name to clipboardExpand all lines: docs/stream-api.md
+18-18Lines changed: 18 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ $bunnyHttpClient->request(
38
38
);
39
39
```
40
40
41
-
!!! note
41
+
??? note
42
42
43
43
- If the query parameter `includeThumbnails` is set to `true`, the response item(s) will include a non-empty array key `previewImageUrls` containing the URLs for the corresponding image thumbnails.
44
44
@@ -84,7 +84,7 @@ $bunnyHttpClient->request(
84
84
);
85
85
```
86
86
87
-
!!! note
87
+
??? note
88
88
89
89
- If the query parameter `includeThumbnails` is set to `true`, the response item(s) will include a non-empty array key `previewImageUrls` containing the URLs for the corresponding image thumbnails.
90
90
@@ -187,7 +187,7 @@ $bunnyHttpClient->request(
187
187
);
188
188
```
189
189
190
-
!!! note
190
+
??? note
191
191
192
192
- The `title` does not need to match the video filename and/or extension you're intending to upload.
193
193
- A `collectionId` is not required.
@@ -236,7 +236,7 @@ $bunnyHttpClient->request(
236
236
);
237
237
```
238
238
239
-
!!! warning
239
+
??? warning
240
240
241
241
- This endpoint currently returns a `500` status code with the following response:
242
242
```
@@ -313,15 +313,15 @@ $bunnyHttpClient->request(
313
313
);
314
314
```
315
315
316
-
!!! note
316
+
??? note
317
317
318
318
- The argument `outputCodecId` has the following possible values:
319
319
- `0` = x264
320
320
- `1` = vp9 (premium)
321
321
- `2` = hevc (premium)
322
322
- `3` = av1 (premium)
323
323
324
-
!!! warning
324
+
??? warning
325
325
326
326
This endpoint will return a `400` status code if premium encoding is not enabled (even if the `outputCodecId` value `0` is given).
327
327
@@ -339,7 +339,7 @@ $bunnyHttpClient->request(
339
339
);
340
340
```
341
341
342
-
!!! note
342
+
??? note
343
343
344
344
- This method allows repackaging of videos for libraries that have [Enterprise DRM](https://docs.bunny.net/docs/stream-drm#mediacage-enterprise-drm) enabled.
345
345
@@ -397,7 +397,7 @@ $bunnyHttpClient->request(
397
397
);
398
398
```
399
399
400
-
!!! note
400
+
??? note
401
401
402
402
- The `thumbnailTime` denotes the video time in milliseconds to extract the main video thumbnail.
403
403
@@ -418,7 +418,7 @@ $bunnyHttpClient->request(
418
418
);
419
419
```
420
420
421
-
!!! note
421
+
??? note
422
422
423
423
- The `sourceLanguage` / `srclang` should be an [**ISO 639-1** / **ISO 639-3** language abbreviation](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes).
424
424
- The `captionsFile` requires the file contents to be sent as a base64 encoded string.
@@ -435,16 +435,16 @@ $bunnyHttpClient->request(
435
435
);
436
436
```
437
437
438
-
!!! note
438
+
??? note
439
439
440
440
- The `sourceLanguage` should be an [**ISO 639-1** / **ISO 639-3** language abbreviation](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes).
441
441
442
-
!!! warning
442
+
??? warning
443
443
444
444
- If a caption was created with a specific ISO standard for the `sourceLanguage`, then you have to delete it with the same standard. Example: a caption created with `sourceLanguage` **ISO 639-1** can only be deleted by sending a request with `sourceLanguage` **ISO 639-1**.
445
445
- This endpoint will always return a `200` status code, even if the subtitle with specificied `sourceLanguage` does not exist.
446
446
447
-
!!! tip
447
+
??? tip
448
448
449
449
- If you (regularly) update captions make sure to purge the captions directory associated with the video. If it's not purged you might notice
450
450
outdated subtitles displayed on the video. You can get the URL for the captions directory by using the [Get Video Play Data](#get-video-play-data) endpoint.
@@ -473,7 +473,7 @@ $bunnyHttpClient->request(
473
473
);
474
474
```
475
475
476
-
!!! note
476
+
??? note
477
477
478
478
- The `targetLanguages` / `sourceLanguage` require a [two-letter (set 1) language abbreviation](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) for transcribing the video.
479
479
- Once a video has transcribed you need to set `force` to `true` in order to force a new transcription to be added.
@@ -490,7 +490,7 @@ $bunnyHttpClient->request(
490
490
);
491
491
```
492
492
493
-
!!! warning
493
+
??? warning
494
494
495
495
- This endpoint returns a `500` status code if the video has not been fully processed yet.
496
496
@@ -512,15 +512,15 @@ $bunnyHttpClient->request(
512
512
);
513
513
```
514
514
515
-
!!! note
515
+
??? note
516
516
517
517
- The key `resolutionsToDelete` consists of comma separated resolutions.
518
518
519
-
!!! tip
519
+
??? tip
520
520
521
521
Use the [Video Resolutions Info](#video-resolutions-info) endpoint to retrieve the resolutions for the video.
522
522
523
-
!!! warning
523
+
??? warning
524
524
525
525
This endpoint will return a `400` status code if all available resolutions for the video are passed to `resolutionsToDelete`, as there must be at least one resolution available after cleanup.
Copy file name to clipboardExpand all lines: docs/validation.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,5 +82,5 @@ $bunnyHttpClient = new BunnyHttpClient(
82
82
$response = $bunnyHttpClient->request($payload);
83
83
```
84
84
85
-
!!! question
85
+
???+ question
86
86
While the `BunnyValidator` can be useful for development and testing purposes as it will prematurely validate the payload request data before sending the actual API request, the API itself will also validate the submitted request data.
0 commit comments