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
{{ message }}
Repository navigation
Commit 7df8fa3
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/MediaApi.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ public class Example {
44
44
45
45
MediaApi apiInstance =newMediaApi(defaultClient);
46
46
String accountId ="9900000"; // String | This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
47
-
String mediaId ="14762070468292kw2fuqty55yp2b2/0/bw.png"; // String | Media ID to retrieve.
47
+
String mediaId ="bw.png"; // String | The ID of the media file.
|**accountId**|**String**| This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**||
66
-
|**mediaId**|**String**|Media ID to retrieve. ||
66
+
|**mediaId**|**String**|The ID of the media file. ||
67
67
68
68
### Return type
69
69
@@ -125,7 +125,7 @@ public class Example {
125
125
126
126
MediaApi apiInstance =newMediaApi(defaultClient);
127
127
String accountId ="9900000"; // String | This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
128
-
String mediaId ="14762070468292kw2fuqty55yp2b2/0/bw.png"; // String | Media ID to retrieve.
128
+
String mediaId ="bw.png"; // String | The ID of the media file.
129
129
try {
130
130
File result = apiInstance.getMedia(accountId, mediaId);
|**accountId**|**String**| This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**||
148
-
|**mediaId**|**String**|Media ID to retrieve. ||
148
+
|**mediaId**|**String**|The ID of the media file. ||
149
149
150
150
### Return type
151
151
@@ -289,7 +289,7 @@ public class Example {
289
289
290
290
MediaApi apiInstance =newMediaApi(defaultClient);
291
291
String accountId ="9900000"; // String | This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
292
-
String mediaId ="14762070468292kw2fuqty55yp2b2/0/bw.png"; // String | Media ID to retrieve.
292
+
String mediaId ="bw.png"; // String | The ID of the media file.
293
293
File body =newFile("/path/to/file"); // File |
294
294
String contentType ="audio/wav"; // String | The media type of the entity-body.
295
295
String cacheControl ="no-cache"; // String | General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain.
|**accountId**|**String**| This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**||
314
-
|**mediaId**|**String**|Media ID to retrieve. ||
314
+
|**mediaId**|**String**|The ID of the media file. ||
315
315
|**body**|**File**|||
316
316
|**contentType**|**String**| The media type of the entity-body. |[optional]|
317
317
|**cacheControl**|**String**| General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain. |[optional]|
Copy file name to clipboardExpand all lines: src/main/java/com/bandwidth/sdk/api/MediaApi.java
+12-12Lines changed: 12 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -77,7 +77,7 @@ public void setCustomBaseUrl(String customBaseUrl) {
77
77
/**
78
78
* Build call for deleteMedia
79
79
* @param accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (required)
80
-
* @param mediaId Media ID to retrieve. (required)
80
+
* @param mediaId The ID of the media file. (required)
81
81
* @param _callback Callback for upload/download progress
82
82
* @return Call to execute
83
83
* @throws ApiException If fail to serialize the request body object
* Deletes a media file from Bandwidth API server. Make sure you don't have any application scripts still using the media before you delete. If you accidentally delete a media file you can immediately upload a new file with the same name.
164
164
* @param accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (required)
165
-
* @param mediaId Media ID to retrieve. (required)
165
+
* @param mediaId The ID of the media file. (required)
166
166
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
167
167
* @http.response.details
168
168
<table border="1">
@@ -187,7 +187,7 @@ public void deleteMedia(@javax.annotation.Nonnull String accountId, @javax.annot
187
187
* Delete Media
188
188
* Deletes a media file from Bandwidth API server. Make sure you don't have any application scripts still using the media before you delete. If you accidentally delete a media file you can immediately upload a new file with the same name.
189
189
* @param accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (required)
190
-
* @param mediaId Media ID to retrieve. (required)
190
+
* @param mediaId The ID of the media file. (required)
191
191
* @return ApiResponse<Void>
192
192
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
193
193
* @http.response.details
@@ -214,7 +214,7 @@ public ApiResponse<Void> deleteMediaWithHttpInfo(@javax.annotation.Nonnull Strin
214
214
* Delete Media (asynchronously)
215
215
* Deletes a media file from Bandwidth API server. Make sure you don't have any application scripts still using the media before you delete. If you accidentally delete a media file you can immediately upload a new file with the same name.
216
216
* @param accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (required)
217
-
* @param mediaId Media ID to retrieve. (required)
217
+
* @param mediaId The ID of the media file. (required)
218
218
* @param _callback The callback to be executed when the API call finishes
219
219
* @return The request call
220
220
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
@@ -242,7 +242,7 @@ public okhttp3.Call deleteMediaAsync(@javax.annotation.Nonnull String accountId,
242
242
/**
243
243
* Build call for getMedia
244
244
* @param accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (required)
245
-
* @param mediaId Media ID to retrieve. (required)
245
+
* @param mediaId The ID of the media file. (required)
246
246
* @param _callback Callback for upload/download progress
247
247
* @return Call to execute
248
248
* @throws ApiException If fail to serialize the request body object
* @param accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (required)
331
-
* @param mediaId Media ID to retrieve. (required)
331
+
* @param mediaId The ID of the media file. (required)
332
332
* @return File
333
333
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
334
334
* @http.response.details
@@ -355,7 +355,7 @@ public File getMedia(@javax.annotation.Nonnull String accountId, @javax.annotati
355
355
* Get Media
356
356
* Downloads a media file you previously uploaded.
357
357
* @param accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (required)
358
-
* @param mediaId Media ID to retrieve. (required)
358
+
* @param mediaId The ID of the media file. (required)
359
359
* @return ApiResponse<File>
360
360
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
361
361
* @http.response.details
@@ -383,7 +383,7 @@ public ApiResponse<File> getMediaWithHttpInfo(@javax.annotation.Nonnull String a
383
383
* Get Media (asynchronously)
384
384
* Downloads a media file you previously uploaded.
385
385
* @param accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (required)
386
-
* @param mediaId Media ID to retrieve. (required)
386
+
* @param mediaId The ID of the media file. (required)
387
387
* @param _callback The callback to be executed when the API call finishes
388
388
* @return The request call
389
389
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
@@ -580,7 +580,7 @@ public okhttp3.Call listMediaAsync(@javax.annotation.Nonnull String accountId, @
580
580
/**
581
581
* Build call for uploadMedia
582
582
* @param accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (required)
583
-
* @param mediaId Media ID to retrieve. (required)
583
+
* @param mediaId The ID of the media file. (required)
584
584
* @param body (required)
585
585
* @param contentType The media type of the entity-body. (optional)
586
586
* @param cacheControl General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain. (optional)
* Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
733
733
* @param accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (required)
734
-
* @param mediaId Media ID to retrieve. (required)
734
+
* @param mediaId The ID of the media file. (required)
735
735
* @param body (required)
736
736
* @param contentType The media type of the entity-body. (optional)
737
737
* @param cacheControl General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain. (optional)
@@ -759,7 +759,7 @@ public void uploadMedia(@javax.annotation.Nonnull String accountId, @javax.annot
759
759
* Upload Media
760
760
* Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
761
761
* @param accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (required)
762
-
* @param mediaId Media ID to retrieve. (required)
762
+
* @param mediaId The ID of the media file. (required)
763
763
* @param body (required)
764
764
* @param contentType The media type of the entity-body. (optional)
765
765
* @param cacheControl General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain. (optional)
@@ -789,7 +789,7 @@ public ApiResponse<Void> uploadMediaWithHttpInfo(@javax.annotation.Nonnull Strin
789
789
* Upload Media (asynchronously)
790
790
* Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
791
791
* @param accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.** (required)
792
-
* @param mediaId Media ID to retrieve. (required)
792
+
* @param mediaId The ID of the media file. (required)
793
793
* @param body (required)
794
794
* @param contentType The media type of the entity-body. (optional)
795
795
* @param cacheControl General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain. (optional)
0 commit comments