All URIs are relative to https://api.api2cart.com/v1.1
Method | HTTP request | Description |
---|---|---|
BridgeDelete | POST /bridge.delete.json | bridge.delete |
BridgeDownload | GET /bridge.download.file | bridge.download |
BridgeUpdate | POST /bridge.update.json | bridge.update |
AttributeValueDelete200Response BridgeDelete ()
bridge.delete
Delete bridge from the store.
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class BridgeDeleteExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.api2cart.com/v1.1";
// Configure API key authorization: StoreKeyAuth
config.AddApiKey("x-store-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("x-store-key", "Bearer");
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("x-api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("x-api-key", "Bearer");
var apiInstance = new BridgeApi(config);
try
{
// bridge.delete
AttributeValueDelete200Response result = apiInstance.BridgeDelete();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BridgeApi.BridgeDelete: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// bridge.delete
ApiResponse<AttributeValueDelete200Response> response = apiInstance.BridgeDeleteWithHttpInfo();
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BridgeApi.BridgeDeleteWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
This endpoint does not need any parameter.
AttributeValueDelete200Response
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
System.IO.Stream BridgeDownload (bool? whitelabel = null)
bridge.download
Download bridge for store.
Please note that the method would not work if you call it from Swagger UI.
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class BridgeDownloadExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.api2cart.com/v1.1";
// Configure API key authorization: StoreKeyAuth
config.AddApiKey("x-store-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("x-store-key", "Bearer");
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("x-api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("x-api-key", "Bearer");
var apiInstance = new BridgeApi(config);
var whitelabel = true; // bool? | Identifies if there is a necessity to download whitelabel bridge. (optional) (default to false)
try
{
// bridge.download
System.IO.Stream result = apiInstance.BridgeDownload(whitelabel);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BridgeApi.BridgeDownload: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// bridge.download
ApiResponse<System.IO.Stream> response = apiInstance.BridgeDownloadWithHttpInfo(whitelabel);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BridgeApi.BridgeDownloadWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
whitelabel | bool? | Identifies if there is a necessity to download whitelabel bridge. | [optional] [default to false] |
System.IO.Stream
- Content-Type: Not defined
- Accept: application/zip
Status code | Description | Response headers |
---|---|---|
200 | successful operation | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AttributeUpdate200Response BridgeUpdate ()
bridge.update
Update bridge in the store.
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class BridgeUpdateExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.api2cart.com/v1.1";
// Configure API key authorization: StoreKeyAuth
config.AddApiKey("x-store-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("x-store-key", "Bearer");
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("x-api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("x-api-key", "Bearer");
var apiInstance = new BridgeApi(config);
try
{
// bridge.update
AttributeUpdate200Response result = apiInstance.BridgeUpdate();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BridgeApi.BridgeUpdate: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// bridge.update
ApiResponse<AttributeUpdate200Response> response = apiInstance.BridgeUpdateWithHttpInfo();
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BridgeApi.BridgeUpdateWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]