Skip to content

Latest commit

 

History

History
328 lines (249 loc) · 8.7 KB

File metadata and controls

328 lines (249 loc) · 8.7 KB

Caplinked.Api.DownloadsApi

All URIs are relative to https://sandbox.caplinked.com/api/v1

Method HTTP request Description
DeleteDownloadsId DELETE /downloads/{id} Delete download
GetDownloadsFileFileId GET /downloads/file/{file_id} Get single file
GetDownloadsId GET /downloads/{id} Get zip
GetDownloadsStatusWorkspaceId GET /downloads/status/{workspace_id} Get status of downloads for current user
PostDownloads POST /downloads Create zip file

DeleteDownloadsId

Delete DeleteDownloadsId (int? id, int? workspaceId)

Delete download

Delete download

Example

using System;
using System.Diagnostics;
using Caplinked.Api;
using Caplinked.Client;
using Caplinked.Model;

namespace Example
{
    public class DeleteDownloadsIdExample
    {
        public void main()
        {
            var apiInstance = new DownloadsApi();
            var id = 56;  // int? | ID of download to delete
            var workspaceId = 56;  // int? | ID of Workspace

            try
            {
                // Delete download
                Delete result = apiInstance.DeleteDownloadsId(id, workspaceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DownloadsApi.DeleteDownloadsId: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
id int? ID of download to delete
workspaceId int? ID of Workspace

Return type

Delete

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

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

GetDownloadsFileFileId

ExpiringUrl GetDownloadsFileFileId (int? fileId, int? workspaceId)

Get single file

Download single file without DRM applied

Example

using System;
using System.Diagnostics;
using Caplinked.Api;
using Caplinked.Client;
using Caplinked.Model;

namespace Example
{
    public class GetDownloadsFileFileIdExample
    {
        public void main()
        {
            var apiInstance = new DownloadsApi();
            var fileId = 56;  // int? | ID of file to download
            var workspaceId = 56;  // int? | ID of Workspace

            try
            {
                // Get single file
                ExpiringUrl result = apiInstance.GetDownloadsFileFileId(fileId, workspaceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DownloadsApi.GetDownloadsFileFileId: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
fileId int? ID of file to download
workspaceId int? ID of Workspace

Return type

ExpiringUrl

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

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

GetDownloadsId

ExpiringUrl GetDownloadsId (int? id, int? workspaceId)

Get zip

Get a zip file of a previously created download object

Example

using System;
using System.Diagnostics;
using Caplinked.Api;
using Caplinked.Client;
using Caplinked.Model;

namespace Example
{
    public class GetDownloadsIdExample
    {
        public void main()
        {
            var apiInstance = new DownloadsApi();
            var id = 56;  // int? | ID of download
            var workspaceId = 56;  // int? | ID of Workspace

            try
            {
                // Get zip
                ExpiringUrl result = apiInstance.GetDownloadsId(id, workspaceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DownloadsApi.GetDownloadsId: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
id int? ID of download
workspaceId int? ID of Workspace

Return type

ExpiringUrl

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

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

GetDownloadsStatusWorkspaceId

Meta GetDownloadsStatusWorkspaceId (int? workspaceId)

Get status of downloads for current user

Get status of downloads created by current user within a specified workspace

Example

using System;
using System.Diagnostics;
using Caplinked.Api;
using Caplinked.Client;
using Caplinked.Model;

namespace Example
{
    public class GetDownloadsStatusWorkspaceIdExample
    {
        public void main()
        {
            var apiInstance = new DownloadsApi();
            var workspaceId = 56;  // int? | ID of Workspace

            try
            {
                // Get status of downloads for current user
                Meta result = apiInstance.GetDownloadsStatusWorkspaceId(workspaceId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DownloadsApi.GetDownloadsStatusWorkspaceId: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
workspaceId int? ID of Workspace

Return type

Meta

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

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

PostDownloads

Meta PostDownloads (int? workspaceId, List<int?> downloadFolderIds = null, List<int?> downloadFileIds = null)

Create zip file

Create download object containing folders and/or files

Example

using System;
using System.Diagnostics;
using Caplinked.Api;
using Caplinked.Client;
using Caplinked.Model;

namespace Example
{
    public class PostDownloadsExample
    {
        public void main()
        {
            var apiInstance = new DownloadsApi();
            var workspaceId = 56;  // int? | ID of Workspace
            var downloadFolderIds = new List<int?>(); // List<int?> | IDs of folders to include in download (optional) 
            var downloadFileIds = new List<int?>(); // List<int?> | IDs of files to include in download (optional) 

            try
            {
                // Create zip file
                Meta result = apiInstance.PostDownloads(workspaceId, downloadFolderIds, downloadFileIds);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DownloadsApi.PostDownloads: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
workspaceId int? ID of Workspace
downloadFolderIds List<int?> IDs of folders to include in download [optional]
downloadFileIds List<int?> IDs of files to include in download [optional]

Return type

Meta

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

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