fSCOWebhook
Receive multiple events coming from FSCO for every document uploaded by Spenda user
Receive multiple events to track the state of each document uploaded by the user
/Spenda/DocumentAnalyser/FSCO/Webhook
Usage and SDK Samples
curl -X POST \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://api.dev.spenda.co/api/Spenda/DocumentAnalyser/FSCO/Webhook" \
-d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.FSCOApi;
import java.io.File;
import java.util.*;
public class FSCOApiExample {
public static void main(String[] args) {
// Create an instance of the API class
FSCOApi apiInstance = new FSCOApi();
WebhookEventRequest webhookEventRequest = {"data":{"object":{}},"type":"string","userId":"string","organisationId":"string","signature":"string"}; // WebhookEventRequest |
try {
httpActionResult result = apiInstance.fSCOWebhook(webhookEventRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FSCOApi#fSCOWebhook");
e.printStackTrace();
}
}
}
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
final WebhookEventRequest webhookEventRequest = new WebhookEventRequest(); // WebhookEventRequest |
try {
final result = await api_instance.fSCOWebhook(webhookEventRequest);
print(result);
} catch (e) {
print('Exception when calling DefaultApi->fSCOWebhook: $e\n');
}
import org.openapitools.client.api.FSCOApi;
public class FSCOApiExample {
public static void main(String[] args) {
FSCOApi apiInstance = new FSCOApi();
WebhookEventRequest webhookEventRequest = {"data":{"object":{}},"type":"string","userId":"string","organisationId":"string","signature":"string"}; // WebhookEventRequest |
try {
httpActionResult result = apiInstance.fSCOWebhook(webhookEventRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FSCOApi#fSCOWebhook");
e.printStackTrace();
}
}
}
// Create an instance of the API class
FSCOApi *apiInstance = [[FSCOApi alloc] init];
WebhookEventRequest *webhookEventRequest = {"data":{"object":{}},"type":"string","userId":"string","organisationId":"string","signature":"string"}; // (optional)
// Receive multiple events coming from FSCO for every document uploaded by Spenda user
[apiInstance fSCOWebhookWith:webhookEventRequest
completionHandler: ^(httpActionResult output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var SpendaServicesDocumentAnalyser = require('spenda_services_document_analyser');
// Create an instance of the API class
var api = new SpendaServicesDocumentAnalyser.FSCOApi()
var opts = {
'webhookEventRequest': {"data":{"object":{}},"type":"string","userId":"string","organisationId":"string","signature":"string"} // {WebhookEventRequest}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.fSCOWebhook(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class fSCOWebhookExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new FSCOApi();
var webhookEventRequest = new WebhookEventRequest(); // WebhookEventRequest | (optional)
try {
// Receive multiple events coming from FSCO for every document uploaded by Spenda user
httpActionResult result = apiInstance.fSCOWebhook(webhookEventRequest);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling FSCOApi.fSCOWebhook: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\FSCOApi();
$webhookEventRequest = {"data":{"object":{}},"type":"string","userId":"string","organisationId":"string","signature":"string"}; // WebhookEventRequest |
try {
$result = $api_instance->fSCOWebhook($webhookEventRequest);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling FSCOApi->fSCOWebhook: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::FSCOApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::FSCOApi->new();
my $webhookEventRequest = WWW::OPenAPIClient::Object::WebhookEventRequest->new(); # WebhookEventRequest |
eval {
my $result = $api_instance->fSCOWebhook(webhookEventRequest => $webhookEventRequest);
print Dumper($result);
};
if ($@) {
warn "Exception when calling FSCOApi->fSCOWebhook: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Create an instance of the API class
api_instance = openapi_client.FSCOApi()
webhookEventRequest = {"data":{"object":{}},"type":"string","userId":"string","organisationId":"string","signature":"string"} # WebhookEventRequest | (optional)
try:
# Receive multiple events coming from FSCO for every document uploaded by Spenda user
api_response = api_instance.f_sco_webhook(webhookEventRequest=webhookEventRequest)
pprint(api_response)
except ApiException as e:
print("Exception when calling FSCOApi->fSCOWebhook: %s\n" % e)
extern crate FSCOApi;
pub fn main() {
let webhookEventRequest = {"data":{"object":{}},"type":"string","userId":"string","organisationId":"string","signature":"string"}; // WebhookEventRequest
let mut context = FSCOApi::Context::default();
let result = client.fSCOWebhook(webhookEventRequest, &context).wait();
println!("{:?}", result);
}
Scopes
Parameters
| Name | Description |
|---|---|
| webhookEventRequest |