Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

Latest commit

 

History

History
1026 lines (775 loc) · 31.5 KB

ClickApi.md

File metadata and controls

1026 lines (775 loc) · 31.5 KB

ElementsSDK.Api.ClickApi

All URIs are relative to https://elements.local

Method HTTP request Description
AbortClickUpload DELETE /api/2/click/uploads/{upload_id}
ContinueClickUploadInBackground POST /api/2/click/uploads/{upload_id}/background
CreateClickGallery POST /api/2/click/connections/{connection_id}/galleries
CreateClickGalleryLink POST /api/2/click/connections/{connection_id}/gallery-links
DeleteClickGalleryLink DELETE /api/2/click/connections/{connection_id}/gallery-links/{id}
GetAllClickGalleries GET /api/2/click/connections/{connection_id}/galleries
GetAllClickGalleryLinks GET /api/2/click/connections/{connection_id}/gallery-links
GetClickGallery GET /api/2/click/connections/{connection_id}/galleries/{id}
GetClickGalleryLink GET /api/2/click/connections/{connection_id}/gallery-links/{id}
PatchClickGallery PATCH /api/2/click/connections/{connection_id}/galleries/{id}
SendClickGalleryLinkEmail POST /api/2/click/connections/{connection_id}/gallery-links/{link_id}/send
StartClickUpload POST /api/2/click/uploads
UpdateClickGallery PUT /api/2/click/connections/{connection_id}/galleries/{id}

AbortClickUpload

void AbortClickUpload (string uploadId)

Required permissions * User account permission: cloud:access

Example

using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;

namespace Example
{
    public class AbortClickUploadExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.BasePath = "https://elements.local";
            // Configure API key authorization: Bearer
            config.AddApiKey("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // config.AddApiKeyPrefix("Authorization", "Bearer");

            var apiInstance = new ClickApi(config);
            var uploadId = uploadId_example;  // string | 

            try
            {
                apiInstance.AbortClickUpload(uploadId);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling ClickApi.AbortClickUpload: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
uploadId string

Return type

void (empty response body)

Authorization

Bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

HTTP response details

Status code Description Response headers
200 No body -

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

ContinueClickUploadInBackground

void ContinueClickUploadInBackground (string uploadId, ClickBackgroundUploadEndpointRequest clickBackgroundUploadEndpointRequest)

Required permissions * User account permission: cloud:access

Example

using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;

namespace Example
{
    public class ContinueClickUploadInBackgroundExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.BasePath = "https://elements.local";
            // Configure API key authorization: Bearer
            config.AddApiKey("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // config.AddApiKeyPrefix("Authorization", "Bearer");

            var apiInstance = new ClickApi(config);
            var uploadId = uploadId_example;  // string | 
            var clickBackgroundUploadEndpointRequest = new ClickBackgroundUploadEndpointRequest(); // ClickBackgroundUploadEndpointRequest | 

            try
            {
                apiInstance.ContinueClickUploadInBackground(uploadId, clickBackgroundUploadEndpointRequest);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling ClickApi.ContinueClickUploadInBackground: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
uploadId string
clickBackgroundUploadEndpointRequest ClickBackgroundUploadEndpointRequest

Return type

void (empty response body)

Authorization

Bearer

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 No body -

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

CreateClickGallery

ClickGallery CreateClickGallery (string connectionId, ClickGallery clickGallery)

Required permissions * User account permission: cloud:access

Example

using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;

namespace Example
{
    public class CreateClickGalleryExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.BasePath = "https://elements.local";
            // Configure API key authorization: Bearer
            config.AddApiKey("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // config.AddApiKeyPrefix("Authorization", "Bearer");

            var apiInstance = new ClickApi(config);
            var connectionId = connectionId_example;  // string | 
            var clickGallery = new ClickGallery(); // ClickGallery | 

            try
            {
                ClickGallery result = apiInstance.CreateClickGallery(connectionId, clickGallery);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling ClickApi.CreateClickGallery: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
connectionId string
clickGallery ClickGallery

Return type

ClickGallery

Authorization

Bearer

HTTP request headers

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

HTTP response details

Status code Description Response headers
201 -

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

CreateClickGalleryLink

ClickGalleryLink CreateClickGalleryLink (string connectionId, ClickGalleryLink clickGalleryLink)

Required permissions * User account permission: cloud:access

Example

using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;

namespace Example
{
    public class CreateClickGalleryLinkExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.BasePath = "https://elements.local";
            // Configure API key authorization: Bearer
            config.AddApiKey("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // config.AddApiKeyPrefix("Authorization", "Bearer");

            var apiInstance = new ClickApi(config);
            var connectionId = connectionId_example;  // string | 
            var clickGalleryLink = new ClickGalleryLink(); // ClickGalleryLink | 

            try
            {
                ClickGalleryLink result = apiInstance.CreateClickGalleryLink(connectionId, clickGalleryLink);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling ClickApi.CreateClickGalleryLink: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
connectionId string
clickGalleryLink ClickGalleryLink

Return type

ClickGalleryLink

Authorization

Bearer

HTTP request headers

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

HTTP response details

Status code Description Response headers
201 -

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

DeleteClickGalleryLink

void DeleteClickGalleryLink (string connectionId, string id)

Required permissions * User account permission: cloud:access

Example

using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;

namespace Example
{
    public class DeleteClickGalleryLinkExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.BasePath = "https://elements.local";
            // Configure API key authorization: Bearer
            config.AddApiKey("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // config.AddApiKeyPrefix("Authorization", "Bearer");

            var apiInstance = new ClickApi(config);
            var connectionId = connectionId_example;  // string | 
            var id = id_example;  // string | 

            try
            {
                apiInstance.DeleteClickGalleryLink(connectionId, id);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling ClickApi.DeleteClickGalleryLink: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
connectionId string
id string

Return type

void (empty response body)

Authorization

Bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

HTTP response details

Status code Description Response headers
204 -

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

GetAllClickGalleries

InlineResponse200 GetAllClickGalleries (string connectionId, string ordering = null, int? limit = null, int? offset = null)

Required permissions * User account permission: cloud:access

Example

using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;

namespace Example
{
    public class GetAllClickGalleriesExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.BasePath = "https://elements.local";
            // Configure API key authorization: Bearer
            config.AddApiKey("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // config.AddApiKeyPrefix("Authorization", "Bearer");

            var apiInstance = new ClickApi(config);
            var connectionId = connectionId_example;  // string | 
            var ordering = ordering_example;  // string | Which field to use when ordering the results. (optional) 
            var limit = 56;  // int? | Number of results to return per page. (optional) 
            var offset = 56;  // int? | The initial index from which to return the results. (optional) 

            try
            {
                InlineResponse200 result = apiInstance.GetAllClickGalleries(connectionId, ordering, limit, offset);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling ClickApi.GetAllClickGalleries: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
connectionId string
ordering string Which field to use when ordering the results. [optional]
limit int? Number of results to return per page. [optional]
offset int? The initial index from which to return the results. [optional]

Return type

InlineResponse200

Authorization

Bearer

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 -

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

GetAllClickGalleryLinks

InlineResponse2001 GetAllClickGalleryLinks (string connectionId, string ordering = null, int? limit = null, int? offset = null)

Required permissions * User account permission: cloud:access

Example

using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;

namespace Example
{
    public class GetAllClickGalleryLinksExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.BasePath = "https://elements.local";
            // Configure API key authorization: Bearer
            config.AddApiKey("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // config.AddApiKeyPrefix("Authorization", "Bearer");

            var apiInstance = new ClickApi(config);
            var connectionId = connectionId_example;  // string | 
            var ordering = ordering_example;  // string | Which field to use when ordering the results. (optional) 
            var limit = 56;  // int? | Number of results to return per page. (optional) 
            var offset = 56;  // int? | The initial index from which to return the results. (optional) 

            try
            {
                InlineResponse2001 result = apiInstance.GetAllClickGalleryLinks(connectionId, ordering, limit, offset);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling ClickApi.GetAllClickGalleryLinks: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
connectionId string
ordering string Which field to use when ordering the results. [optional]
limit int? Number of results to return per page. [optional]
offset int? The initial index from which to return the results. [optional]

Return type

InlineResponse2001

Authorization

Bearer

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 -

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

GetClickGallery

ClickGallery GetClickGallery (string connectionId, string id)

Required permissions * User account permission: cloud:access

Example

using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;

namespace Example
{
    public class GetClickGalleryExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.BasePath = "https://elements.local";
            // Configure API key authorization: Bearer
            config.AddApiKey("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // config.AddApiKeyPrefix("Authorization", "Bearer");

            var apiInstance = new ClickApi(config);
            var connectionId = connectionId_example;  // string | 
            var id = id_example;  // string | 

            try
            {
                ClickGallery result = apiInstance.GetClickGallery(connectionId, id);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling ClickApi.GetClickGallery: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
connectionId string
id string

Return type

ClickGallery

Authorization

Bearer

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 -

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

GetClickGalleryLink

ClickGalleryLink GetClickGalleryLink (string connectionId, string id)

Required permissions * User account permission: cloud:access

Example

using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;

namespace Example
{
    public class GetClickGalleryLinkExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.BasePath = "https://elements.local";
            // Configure API key authorization: Bearer
            config.AddApiKey("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // config.AddApiKeyPrefix("Authorization", "Bearer");

            var apiInstance = new ClickApi(config);
            var connectionId = connectionId_example;  // string | 
            var id = id_example;  // string | 

            try
            {
                ClickGalleryLink result = apiInstance.GetClickGalleryLink(connectionId, id);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling ClickApi.GetClickGalleryLink: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
connectionId string
id string

Return type

ClickGalleryLink

Authorization

Bearer

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 -

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

PatchClickGallery

ClickGallery PatchClickGallery (string connectionId, string id, ClickGallery clickGallery)

Required permissions * User account permission: cloud:access

Example

using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;

namespace Example
{
    public class PatchClickGalleryExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.BasePath = "https://elements.local";
            // Configure API key authorization: Bearer
            config.AddApiKey("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // config.AddApiKeyPrefix("Authorization", "Bearer");

            var apiInstance = new ClickApi(config);
            var connectionId = connectionId_example;  // string | 
            var id = id_example;  // string | 
            var clickGallery = new ClickGallery(); // ClickGallery | 

            try
            {
                ClickGallery result = apiInstance.PatchClickGallery(connectionId, id, clickGallery);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling ClickApi.PatchClickGallery: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
connectionId string
id string
clickGallery ClickGallery

Return type

ClickGallery

Authorization

Bearer

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 -

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

SendClickGalleryLinkEmail

void SendClickGalleryLinkEmail (string connectionId, string linkId)

Required permissions * User account permission: cloud:access

Example

using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;

namespace Example
{
    public class SendClickGalleryLinkEmailExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.BasePath = "https://elements.local";
            // Configure API key authorization: Bearer
            config.AddApiKey("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // config.AddApiKeyPrefix("Authorization", "Bearer");

            var apiInstance = new ClickApi(config);
            var connectionId = connectionId_example;  // string | 
            var linkId = linkId_example;  // string | 

            try
            {
                apiInstance.SendClickGalleryLinkEmail(connectionId, linkId);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling ClickApi.SendClickGalleryLinkEmail: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
connectionId string
linkId string

Return type

void (empty response body)

Authorization

Bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

HTTP response details

Status code Description Response headers
200 No body -

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

StartClickUpload

TaskInfo StartClickUpload (ClickStartUploadEndpointRequest clickStartUploadEndpointRequest)

Required permissions * User account permission: cloud:access

Example

using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;

namespace Example
{
    public class StartClickUploadExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.BasePath = "https://elements.local";
            // Configure API key authorization: Bearer
            config.AddApiKey("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // config.AddApiKeyPrefix("Authorization", "Bearer");

            var apiInstance = new ClickApi(config);
            var clickStartUploadEndpointRequest = new ClickStartUploadEndpointRequest(); // ClickStartUploadEndpointRequest | 

            try
            {
                TaskInfo result = apiInstance.StartClickUpload(clickStartUploadEndpointRequest);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling ClickApi.StartClickUpload: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
clickStartUploadEndpointRequest ClickStartUploadEndpointRequest

Return type

TaskInfo

Authorization

Bearer

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 -

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

UpdateClickGallery

AddAssetsToClickGallery UpdateClickGallery (string connectionId, string id, AddAssetsToClickGallery addAssetsToClickGallery)

Required permissions * User account permission: cloud:access

Example

using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;

namespace Example
{
    public class UpdateClickGalleryExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.BasePath = "https://elements.local";
            // Configure API key authorization: Bearer
            config.AddApiKey("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // config.AddApiKeyPrefix("Authorization", "Bearer");

            var apiInstance = new ClickApi(config);
            var connectionId = connectionId_example;  // string | 
            var id = id_example;  // string | 
            var addAssetsToClickGallery = new AddAssetsToClickGallery(); // AddAssetsToClickGallery | 

            try
            {
                AddAssetsToClickGallery result = apiInstance.UpdateClickGallery(connectionId, id, addAssetsToClickGallery);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling ClickApi.UpdateClickGallery: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
connectionId string
id string
addAssetsToClickGallery AddAssetsToClickGallery

Return type

AddAssetsToClickGallery

Authorization

Bearer

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 -

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