Skip to content

Latest commit

 

History

History
462 lines (319 loc) · 15.3 KB

WebhooksApi.md

File metadata and controls

462 lines (319 loc) · 15.3 KB

kruegge82\billbee\WebhooksApi

All URIs are relative to https://app.billbee.io, except if the operation defines another base path.

Method HTTP request Description
webHookManagementDelete() DELETE /api/v1/webhooks/{id} Deletes an existing WebHook registration.
webHookManagementDeleteAll() DELETE /api/v1/webhooks Deletes all existing WebHook registrations.
webHookManagementGet() GET /api/v1/webhooks Gets all registered WebHooks for a given user.
webHookManagementGetFilters() GET /api/v1/webhooks/filters Returns a list of all known filters you can use to register webhooks
webHookManagementLookup() GET /api/v1/webhooks/{id} Looks up a registered WebHook with the given {id} for a given user.
webHookManagementPost() POST /api/v1/webhooks Registers a new WebHook for a given user.
webHookManagementPut() PUT /api/v1/webhooks/{id} Updates an existing WebHook registration.

webHookManagementDelete()

webHookManagementDelete($id): object

Deletes an existing WebHook registration.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure HTTP basic authorization: basicAuth
$config = kruegge82\billbee\Configuration::getDefaultConfiguration()
              ->setUsername('YOUR_USERNAME')
              ->setPassword('YOUR_PASSWORD');

// Configure API key authorization: ApiKeyAuth
$config = kruegge82\billbee\Configuration::getDefaultConfiguration()->setApiKey('X-Billbee-Api-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = kruegge82\billbee\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Billbee-Api-Key', 'Bearer');


$apiInstance = new kruegge82\billbee\Api\WebhooksApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$id = 'id_example'; // string | The WebHook ID.

try {
    $result = $apiInstance->webHookManagementDelete($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling WebhooksApi->webHookManagementDelete: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
id string The WebHook ID.

Return type

object

Authorization

basicAuth, ApiKeyAuth

HTTP request headers

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

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

webHookManagementDeleteAll()

webHookManagementDeleteAll(): object

Deletes all existing WebHook registrations.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure HTTP basic authorization: basicAuth
$config = kruegge82\billbee\Configuration::getDefaultConfiguration()
              ->setUsername('YOUR_USERNAME')
              ->setPassword('YOUR_PASSWORD');

// Configure API key authorization: ApiKeyAuth
$config = kruegge82\billbee\Configuration::getDefaultConfiguration()->setApiKey('X-Billbee-Api-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = kruegge82\billbee\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Billbee-Api-Key', 'Bearer');


$apiInstance = new kruegge82\billbee\Api\WebhooksApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);

try {
    $result = $apiInstance->webHookManagementDeleteAll();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling WebhooksApi->webHookManagementDeleteAll: ', $e->getMessage(), PHP_EOL;
}

Parameters

This endpoint does not need any parameter.

Return type

object

Authorization

basicAuth, ApiKeyAuth

HTTP request headers

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

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

webHookManagementGet()

webHookManagementGet(): \kruegge82\billbee\Model\RechnungsdruckWebAppControllersApiWebHookApiModel[]

Gets all registered WebHooks for a given user.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure HTTP basic authorization: basicAuth
$config = kruegge82\billbee\Configuration::getDefaultConfiguration()
              ->setUsername('YOUR_USERNAME')
              ->setPassword('YOUR_PASSWORD');

// Configure API key authorization: ApiKeyAuth
$config = kruegge82\billbee\Configuration::getDefaultConfiguration()->setApiKey('X-Billbee-Api-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = kruegge82\billbee\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Billbee-Api-Key', 'Bearer');


$apiInstance = new kruegge82\billbee\Api\WebhooksApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);

try {
    $result = $apiInstance->webHookManagementGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling WebhooksApi->webHookManagementGet: ', $e->getMessage(), PHP_EOL;
}

Parameters

This endpoint does not need any parameter.

Return type

\kruegge82\billbee\Model\RechnungsdruckWebAppControllersApiWebHookApiModel[]

Authorization

basicAuth, ApiKeyAuth

HTTP request headers

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

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

webHookManagementGetFilters()

webHookManagementGetFilters(): object

Returns a list of all known filters you can use to register webhooks

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure HTTP basic authorization: basicAuth
$config = kruegge82\billbee\Configuration::getDefaultConfiguration()
              ->setUsername('YOUR_USERNAME')
              ->setPassword('YOUR_PASSWORD');

// Configure API key authorization: ApiKeyAuth
$config = kruegge82\billbee\Configuration::getDefaultConfiguration()->setApiKey('X-Billbee-Api-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = kruegge82\billbee\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Billbee-Api-Key', 'Bearer');


$apiInstance = new kruegge82\billbee\Api\WebhooksApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);

try {
    $result = $apiInstance->webHookManagementGetFilters();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling WebhooksApi->webHookManagementGetFilters: ', $e->getMessage(), PHP_EOL;
}

Parameters

This endpoint does not need any parameter.

Return type

object

Authorization

basicAuth, ApiKeyAuth

HTTP request headers

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

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

webHookManagementLookup()

webHookManagementLookup($id): \kruegge82\billbee\Model\RechnungsdruckWebAppControllersApiWebHookApiModel

Looks up a registered WebHook with the given {id} for a given user.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure HTTP basic authorization: basicAuth
$config = kruegge82\billbee\Configuration::getDefaultConfiguration()
              ->setUsername('YOUR_USERNAME')
              ->setPassword('YOUR_PASSWORD');

// Configure API key authorization: ApiKeyAuth
$config = kruegge82\billbee\Configuration::getDefaultConfiguration()->setApiKey('X-Billbee-Api-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = kruegge82\billbee\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Billbee-Api-Key', 'Bearer');


$apiInstance = new kruegge82\billbee\Api\WebhooksApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$id = 'id_example'; // string

try {
    $result = $apiInstance->webHookManagementLookup($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling WebhooksApi->webHookManagementLookup: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
id string

Return type

\kruegge82\billbee\Model\RechnungsdruckWebAppControllersApiWebHookApiModel

Authorization

basicAuth, ApiKeyAuth

HTTP request headers

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

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

webHookManagementPost()

webHookManagementPost($web_hook): \kruegge82\billbee\Model\RechnungsdruckWebAppControllersApiWebHookApiModel

Registers a new WebHook for a given user.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure HTTP basic authorization: basicAuth
$config = kruegge82\billbee\Configuration::getDefaultConfiguration()
              ->setUsername('YOUR_USERNAME')
              ->setPassword('YOUR_PASSWORD');

// Configure API key authorization: ApiKeyAuth
$config = kruegge82\billbee\Configuration::getDefaultConfiguration()->setApiKey('X-Billbee-Api-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = kruegge82\billbee\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Billbee-Api-Key', 'Bearer');


$apiInstance = new kruegge82\billbee\Api\WebhooksApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$web_hook = new \kruegge82\billbee\Model\RechnungsdruckWebAppControllersApiWebHookApiModel(); // \kruegge82\billbee\Model\RechnungsdruckWebAppControllersApiWebHookApiModel | The webhook to create. Attach ?noecho to the uri to prevent echo test.

try {
    $result = $apiInstance->webHookManagementPost($web_hook);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling WebhooksApi->webHookManagementPost: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
web_hook \kruegge82\billbee\Model\RechnungsdruckWebAppControllersApiWebHookApiModel The webhook to create. Attach ?noecho to the uri to prevent echo test.

Return type

\kruegge82\billbee\Model\RechnungsdruckWebAppControllersApiWebHookApiModel

Authorization

basicAuth, ApiKeyAuth

HTTP request headers

  • Content-Type: application/json, text/json, application/x-www-form-urlencoded
  • Accept: application/json, text/json

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

webHookManagementPut()

webHookManagementPut($id, $web_hook): \kruegge82\billbee\Model\RechnungsdruckWebAppControllersApiWebHookApiModel

Updates an existing WebHook registration.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure HTTP basic authorization: basicAuth
$config = kruegge82\billbee\Configuration::getDefaultConfiguration()
              ->setUsername('YOUR_USERNAME')
              ->setPassword('YOUR_PASSWORD');

// Configure API key authorization: ApiKeyAuth
$config = kruegge82\billbee\Configuration::getDefaultConfiguration()->setApiKey('X-Billbee-Api-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = kruegge82\billbee\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-Billbee-Api-Key', 'Bearer');


$apiInstance = new kruegge82\billbee\Api\WebhooksApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$id = 'id_example'; // string | The WebHook ID.
$web_hook = new \kruegge82\billbee\Model\RechnungsdruckWebAppControllersApiWebHookApiModel(); // \kruegge82\billbee\Model\RechnungsdruckWebAppControllersApiWebHookApiModel | The new webhook to use.

try {
    $result = $apiInstance->webHookManagementPut($id, $web_hook);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling WebhooksApi->webHookManagementPut: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
id string The WebHook ID.
web_hook \kruegge82\billbee\Model\RechnungsdruckWebAppControllersApiWebHookApiModel The new webhook to use.

Return type

\kruegge82\billbee\Model\RechnungsdruckWebAppControllersApiWebHookApiModel

Authorization

basicAuth, ApiKeyAuth

HTTP request headers

  • Content-Type: application/json, text/json, application/x-www-form-urlencoded
  • Accept: application/json, text/json

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