Skip to content

Latest commit

 

History

History
331 lines (248 loc) · 8.48 KB

File metadata and controls

331 lines (248 loc) · 8.48 KB

IO.Swagger.Api.FilesApi

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

DocHostDelete

void DocHostDelete (string docId)

Delete file

Deletes a users file

Example

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 );
            }
        }
    }
}

Parameters

Name Type Description Notes
docId string Id of document

Return type

void (empty response body)

Authorization

BBOAuth2

HTTP request headers

  • Content-Type: application/x-www-form-urlencoded
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DocHostGet

HostedDoc DocHostGet (string docId)

Get file

Get a single file by id

Example

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 );
            }
        }
    }
}

Parameters

Name Type Description Notes
docId string Id of document

Return type

HostedDoc

Authorization

BBOAuth2

HTTP request headers

  • Content-Type: application/x-www-form-urlencoded
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DocHostList

List DocHostList ()

List all files

List all uploaded user files

Example

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 );
            }
        }
    }
}

Parameters

This endpoint does not need any parameter.

Return type

List

Authorization

BBOAuth2

HTTP request headers

  • Content-Type: application/x-www-form-urlencoded
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DocHostUploadV2

List DocHostUploadV2 (string file)

Upload a file

Upload a new file

Example

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 );
            }
        }
    }
}

Parameters

Name Type Description Notes
file string The file being uploaded

Return type

List

Authorization

BBOAuth2

HTTP request headers

  • Content-Type: application/x-www-form-urlencoded
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetHostedImagesPaged

void GetHostedImagesPaged (string pageSize, string page, string search = null)

Get paged hosted images

Get a specific page of uploaded images available to the user.

Example

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 );
            }
        }
    }
}

Parameters

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]

Return type

void (empty response body)

Authorization

BBOAuth2

HTTP request headers

  • Content-Type: application/x-www-form-urlencoded
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]