All URIs are relative to https://api-v2.fattureincloud.it
Method | HTTP request | Description |
---|---|---|
CreateWebhooksSubscription | POST /c/{company_id}/subscriptions | Create a Webhook Subscription |
DeleteWebhooksSubscription | DELETE /c/{company_id}/subscriptions/{subscription_id} | Delete Webhooks Subscription |
GetWebhooksSubscription | GET /c/{company_id}/subscriptions/{subscription_id} | Get Webhooks Subscription |
ListWebhooksSubscriptions | GET /c/{company_id}/subscriptions | List Webhooks Subscriptions |
ModifyWebhooksSubscription | PUT /c/{company_id}/subscriptions/{subscription_id} | Modify Webhooks Subscription |
CreateWebhooksSubscriptionResponse CreateWebhooksSubscription (int companyId, CreateWebhooksSubscriptionRequest createWebhooksSubscriptionRequest = null)
Create a Webhook Subscription
Register some webhooks Subscriptions.
using System.Collections.Generic;
using System.Diagnostics;
using It.FattureInCloud.Sdk.Api;
using It.FattureInCloud.Sdk.Client;
using It.FattureInCloud.Sdk.Model;
namespace Example
{
public class CreateWebhooksSubscriptionExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api-v2.fattureincloud.it";
// Configure OAuth2 access token for authorization: OAuth2AuthenticationCodeFlow
config.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new WebhooksApi(config);
var companyId = 12345; // int | The ID of the company.
var createWebhooksSubscriptionRequest = new CreateWebhooksSubscriptionRequest(); // CreateWebhooksSubscriptionRequest | (optional)
try
{
// Create a Webhook Subscription
CreateWebhooksSubscriptionResponse result = apiInstance.CreateWebhooksSubscription(companyId, createWebhooksSubscriptionRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling WebhooksApi.CreateWebhooksSubscription: " + 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
{
// Create a Webhook Subscription
ApiResponse<CreateWebhooksSubscriptionResponse> response = apiInstance.CreateWebhooksSubscriptionWithHttpInfo(companyId, createWebhooksSubscriptionRequest);
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 WebhooksApi.CreateWebhooksSubscriptionWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
companyId | int | The ID of the company. | |
createWebhooksSubscriptionRequest | CreateWebhooksSubscriptionRequest | [optional] |
CreateWebhooksSubscriptionResponse
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Example response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void DeleteWebhooksSubscription (int companyId, string subscriptionId)
Delete Webhooks Subscription
Delete a webhooks subscription.
using System.Collections.Generic;
using System.Diagnostics;
using It.FattureInCloud.Sdk.Api;
using It.FattureInCloud.Sdk.Client;
using It.FattureInCloud.Sdk.Model;
namespace Example
{
public class DeleteWebhooksSubscriptionExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api-v2.fattureincloud.it";
// Configure OAuth2 access token for authorization: OAuth2AuthenticationCodeFlow
config.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new WebhooksApi(config);
var companyId = 12345; // int | The ID of the company.
var subscriptionId = SUB123; // string | The ID of the subscription.
try
{
// Delete Webhooks Subscription
apiInstance.DeleteWebhooksSubscription(companyId, subscriptionId);
}
catch (ApiException e)
{
Debug.Print("Exception when calling WebhooksApi.DeleteWebhooksSubscription: " + 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
{
// Delete Webhooks Subscription
apiInstance.DeleteWebhooksSubscriptionWithHttpInfo(companyId, subscriptionId);
}
catch (ApiException e)
{
Debug.Print("Exception when calling WebhooksApi.DeleteWebhooksSubscriptionWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
companyId | int | The ID of the company. | |
subscriptionId | string | The ID of the subscription. |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetWebhooksSubscriptionResponse GetWebhooksSubscription (int companyId, string subscriptionId)
Get Webhooks Subscription
Get a webhooks subscription.
using System.Collections.Generic;
using System.Diagnostics;
using It.FattureInCloud.Sdk.Api;
using It.FattureInCloud.Sdk.Client;
using It.FattureInCloud.Sdk.Model;
namespace Example
{
public class GetWebhooksSubscriptionExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api-v2.fattureincloud.it";
// Configure OAuth2 access token for authorization: OAuth2AuthenticationCodeFlow
config.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new WebhooksApi(config);
var companyId = 12345; // int | The ID of the company.
var subscriptionId = SUB123; // string | The ID of the subscription.
try
{
// Get Webhooks Subscription
GetWebhooksSubscriptionResponse result = apiInstance.GetWebhooksSubscription(companyId, subscriptionId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling WebhooksApi.GetWebhooksSubscription: " + 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
{
// Get Webhooks Subscription
ApiResponse<GetWebhooksSubscriptionResponse> response = apiInstance.GetWebhooksSubscriptionWithHttpInfo(companyId, subscriptionId);
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 WebhooksApi.GetWebhooksSubscriptionWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
companyId | int | The ID of the company. | |
subscriptionId | string | The ID of the subscription. |
GetWebhooksSubscriptionResponse
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Example response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListWebhooksSubscriptionsResponse ListWebhooksSubscriptions (int companyId)
List Webhooks Subscriptions
List active webhooks subscriptions.
using System.Collections.Generic;
using System.Diagnostics;
using It.FattureInCloud.Sdk.Api;
using It.FattureInCloud.Sdk.Client;
using It.FattureInCloud.Sdk.Model;
namespace Example
{
public class ListWebhooksSubscriptionsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api-v2.fattureincloud.it";
// Configure OAuth2 access token for authorization: OAuth2AuthenticationCodeFlow
config.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new WebhooksApi(config);
var companyId = 12345; // int | The ID of the company.
try
{
// List Webhooks Subscriptions
ListWebhooksSubscriptionsResponse result = apiInstance.ListWebhooksSubscriptions(companyId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling WebhooksApi.ListWebhooksSubscriptions: " + 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
{
// List Webhooks Subscriptions
ApiResponse<ListWebhooksSubscriptionsResponse> response = apiInstance.ListWebhooksSubscriptionsWithHttpInfo(companyId);
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 WebhooksApi.ListWebhooksSubscriptionsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
companyId | int | The ID of the company. |
ListWebhooksSubscriptionsResponse
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Example response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ModifyWebhooksSubscriptionResponse ModifyWebhooksSubscription (int companyId, string subscriptionId, ModifyWebhooksSubscriptionRequest modifyWebhooksSubscriptionRequest = null)
Modify Webhooks Subscription
Edit a webhooks subscription.
using System.Collections.Generic;
using System.Diagnostics;
using It.FattureInCloud.Sdk.Api;
using It.FattureInCloud.Sdk.Client;
using It.FattureInCloud.Sdk.Model;
namespace Example
{
public class ModifyWebhooksSubscriptionExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api-v2.fattureincloud.it";
// Configure OAuth2 access token for authorization: OAuth2AuthenticationCodeFlow
config.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new WebhooksApi(config);
var companyId = 12345; // int | The ID of the company.
var subscriptionId = SUB123; // string | The ID of the subscription.
var modifyWebhooksSubscriptionRequest = new ModifyWebhooksSubscriptionRequest(); // ModifyWebhooksSubscriptionRequest | (optional)
try
{
// Modify Webhooks Subscription
ModifyWebhooksSubscriptionResponse result = apiInstance.ModifyWebhooksSubscription(companyId, subscriptionId, modifyWebhooksSubscriptionRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling WebhooksApi.ModifyWebhooksSubscription: " + 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
{
// Modify Webhooks Subscription
ApiResponse<ModifyWebhooksSubscriptionResponse> response = apiInstance.ModifyWebhooksSubscriptionWithHttpInfo(companyId, subscriptionId, modifyWebhooksSubscriptionRequest);
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 WebhooksApi.ModifyWebhooksSubscriptionWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
companyId | int | The ID of the company. | |
subscriptionId | string | The ID of the subscription. | |
modifyWebhooksSubscriptionRequest | ModifyWebhooksSubscriptionRequest | [optional] |
ModifyWebhooksSubscriptionResponse
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Example response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]