All URIs are relative to https://api.bombbomb.com/v2
| Method | HTTP request | Description |
|---|---|---|
| DocHostDelete | DELETE /files/{docId} | Delete file |
| DocHostGet | GET /files/{docId} | Get file |
| DocHostList | GET /files | List all files |
| DocHostUploadV2 | POST /files | Upload a file |
| GetHostedImagesPaged | GET /files/images/paged | Get paged hosted images |
void DocHostDelete (string docId)
Delete file
Deletes a users file
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class DocHostDeleteExample
{
public void main()
{
// Configure OAuth2 access token for authorization: BBOAuth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new FilesApi();
var docId = docId_example; // string | Id of document
try
{
// Delete file
apiInstance.DocHostDelete(docId);
}
catch (Exception e)
{
Debug.Print("Exception when calling FilesApi.DocHostDelete: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| docId | string | Id of document |
void (empty response body)
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
HostedDoc DocHostGet (string docId)
Get file
Get a single file by id
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class DocHostGetExample
{
public void main()
{
// Configure OAuth2 access token for authorization: BBOAuth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new FilesApi();
var docId = docId_example; // string | Id of document
try
{
// Get file
HostedDoc result = apiInstance.DocHostGet(docId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling FilesApi.DocHostGet: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| docId | string | Id of document |
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List DocHostList ()
List all files
List all uploaded user files
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class DocHostListExample
{
public void main()
{
// Configure OAuth2 access token for authorization: BBOAuth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new FilesApi();
try
{
// List all files
List<HostedDoc> result = apiInstance.DocHostList();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling FilesApi.DocHostList: " + e.Message );
}
}
}
}This endpoint does not need any parameter.
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List DocHostUploadV2 (string file)
Upload a file
Upload a new file
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class DocHostUploadV2Example
{
public void main()
{
// Configure OAuth2 access token for authorization: BBOAuth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new FilesApi();
var file = file_example; // string | The file being uploaded
try
{
// Upload a file
List<HostedDoc> result = apiInstance.DocHostUploadV2(file);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling FilesApi.DocHostUploadV2: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| file | string | The file being uploaded |
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void GetHostedImagesPaged (string pageSize, string page, string search = null)
Get paged hosted images
Get a specific page of uploaded images available to the user.
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class GetHostedImagesPagedExample
{
public void main()
{
// Configure OAuth2 access token for authorization: BBOAuth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new FilesApi();
var pageSize = pageSize_example; // string | The number of items to retrieve in a single db query.
var page = page_example; // string | Zero-based index of the page of data to retrieve from the db.
var search = search_example; // string | Filter results with names that match the search term. (optional)
try
{
// Get paged hosted images
apiInstance.GetHostedImagesPaged(pageSize, page, search);
}
catch (Exception e)
{
Debug.Print("Exception when calling FilesApi.GetHostedImagesPaged: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| pageSize | string | The number of items to retrieve in a single db query. | |
| page | string | Zero-based index of the page of data to retrieve from the db. | |
| search | string | Filter results with names that match the search term. | [optional] |
void (empty response body)
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]