All URIs are relative to https://api.bombbomb.com/v2
Method | HTTP request | Description |
---|---|---|
doc_host_delete | DELETE /files/{docId} | Delete file |
doc_host_get | GET /files/{docId} | Get file |
doc_host_list | GET /files | List all files |
doc_host_upload_v2 | POST /files | Upload a file |
get_hosted_images_paged | GET /files/images/paged | Get paged hosted images |
doc_host_delete(doc_id)
Delete file
Deletes a users file
# load the gem
require 'bombbomb'
# setup authorization
BombBomb.configure do |config|
# Configure OAuth2 access token for authorization: BBOAuth2
config.access_token = 'YOUR ACCESS TOKEN'
end
api_instance = BombBomb::FilesApi.new
doc_id = "doc_id_example" # String | Id of document
begin
#Delete file
api_instance.doc_host_delete(doc_id)
rescue BombBomb::ApiError => e
puts "Exception when calling FilesApi->doc_host_delete: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
doc_id | String | Id of document |
nil (empty response body)
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
HostedDoc doc_host_get(doc_id)
Get file
Get a single file by id
# load the gem
require 'bombbomb'
# setup authorization
BombBomb.configure do |config|
# Configure OAuth2 access token for authorization: BBOAuth2
config.access_token = 'YOUR ACCESS TOKEN'
end
api_instance = BombBomb::FilesApi.new
doc_id = "doc_id_example" # String | Id of document
begin
#Get file
result = api_instance.doc_host_get(doc_id)
p result
rescue BombBomb::ApiError => e
puts "Exception when calling FilesApi->doc_host_get: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
doc_id | String | Id of document |
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
Array<HostedDoc> doc_host_list
List all files
List all uploaded user files
# load the gem
require 'bombbomb'
# setup authorization
BombBomb.configure do |config|
# Configure OAuth2 access token for authorization: BBOAuth2
config.access_token = 'YOUR ACCESS TOKEN'
end
api_instance = BombBomb::FilesApi.new
begin
#List all files
result = api_instance.doc_host_list
p result
rescue BombBomb::ApiError => e
puts "Exception when calling FilesApi->doc_host_list: #{e}"
end
This endpoint does not need any parameter.
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
Array<HostedDoc> doc_host_upload_v2(file)
Upload a file
Upload a new file
# load the gem
require 'bombbomb'
# setup authorization
BombBomb.configure do |config|
# Configure OAuth2 access token for authorization: BBOAuth2
config.access_token = 'YOUR ACCESS TOKEN'
end
api_instance = BombBomb::FilesApi.new
file = "file_example" # String | The file being uploaded
begin
#Upload a file
result = api_instance.doc_host_upload_v2(file)
p result
rescue BombBomb::ApiError => e
puts "Exception when calling FilesApi->doc_host_upload_v2: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
file | String | The file being uploaded |
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
get_hosted_images_paged(page_size, page, opts)
Get paged hosted images
Get a specific page of uploaded images available to the user.
# load the gem
require 'bombbomb'
# setup authorization
BombBomb.configure do |config|
# Configure OAuth2 access token for authorization: BBOAuth2
config.access_token = 'YOUR ACCESS TOKEN'
end
api_instance = BombBomb::FilesApi.new
page_size = "page_size_example" # String | The number of items to retrieve in a single db query.
page = "page_example" # String | Zero-based index of the page of data to retrieve from the db.
opts = {
search: "search_example" # String | Filter results with names that match the search term.
}
begin
#Get paged hosted images
api_instance.get_hosted_images_paged(page_size, page, opts)
rescue BombBomb::ApiError => e
puts "Exception when calling FilesApi->get_hosted_images_paged: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
page_size | 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] |
nil (empty response body)
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json