curl -X GET \
-H "Accept: application/json,application/problem+json" \
"https://api.dev.spenda.co/api/v3/ap/batches?batchGuid=38400000-8cf0-11bd-b23e-10b96e4ef00d&statuses=statuses_example&createdbyGuid=38400000-8cf0-11bd-b23e-10b96e4ef00d&approvedbyGuid=38400000-8cf0-11bd-b23e-10b96e4ef00d&payment_method=paymentMethod_example&filterByDate=filterByDate_example&fromDate=2013-10-20T19:20:30+01:00&toDate=2013-10-20T19:20:30+01:00"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccountsPayableApi;
import java.io.File;
import java.util.*;
public class AccountsPayableApiExample {
public static void main(String[] args) {
// Create an instance of the API class
AccountsPayableApi apiInstance = new AccountsPayableApi();
UUID batchGuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID |
String statuses = statuses_example; // String |
UUID createdbyGuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID |
UUID approvedbyGuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID |
String paymentMethod = paymentMethod_example; // String |
String filterByDate = filterByDate_example; // String |
Date fromDate = 2013-10-20T19:20:30+01:00; // Date |
Date toDate = 2013-10-20T19:20:30+01:00; // Date |
try {
Batches result = apiInstance.aPGETBatches(batchGuid, statuses, createdbyGuid, approvedbyGuid, paymentMethod, filterByDate, fromDate, toDate);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountsPayableApi#aPGETBatches");
e.printStackTrace();
}
}
}
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
final UUID batchGuid = new UUID(); // UUID |
final String statuses = new String(); // String |
final UUID createdbyGuid = new UUID(); // UUID |
final UUID approvedbyGuid = new UUID(); // UUID |
final String paymentMethod = new String(); // String |
final String filterByDate = new String(); // String |
final Date fromDate = new Date(); // Date |
final Date toDate = new Date(); // Date |
try {
final result = await api_instance.aPGETBatches(batchGuid, statuses, createdbyGuid, approvedbyGuid, paymentMethod, filterByDate, fromDate, toDate);
print(result);
} catch (e) {
print('Exception when calling DefaultApi->aPGETBatches: $e\n');
}
import org.openapitools.client.api.AccountsPayableApi;
public class AccountsPayableApiExample {
public static void main(String[] args) {
AccountsPayableApi apiInstance = new AccountsPayableApi();
UUID batchGuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID |
String statuses = statuses_example; // String |
UUID createdbyGuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID |
UUID approvedbyGuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID |
String paymentMethod = paymentMethod_example; // String |
String filterByDate = filterByDate_example; // String |
Date fromDate = 2013-10-20T19:20:30+01:00; // Date |
Date toDate = 2013-10-20T19:20:30+01:00; // Date |
try {
Batches result = apiInstance.aPGETBatches(batchGuid, statuses, createdbyGuid, approvedbyGuid, paymentMethod, filterByDate, fromDate, toDate);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountsPayableApi#aPGETBatches");
e.printStackTrace();
}
}
}
// Create an instance of the API class
AccountsPayableApi *apiInstance = [[AccountsPayableApi alloc] init];
UUID *batchGuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // (optional) (default to null)
String *statuses = statuses_example; // (optional) (default to null)
UUID *createdbyGuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // (optional) (default to null)
UUID *approvedbyGuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // (optional) (default to null)
String *paymentMethod = paymentMethod_example; // (optional) (default to null)
String *filterByDate = filterByDate_example; // (optional) (default to null)
Date *fromDate = 2013-10-20T19:20:30+01:00; // (optional) (default to null)
Date *toDate = 2013-10-20T19:20:30+01:00; // (optional) (default to null)
// AP_GET_Batches
[apiInstance aPGETBatchesWith:batchGuid
statuses:statuses
createdbyGuid:createdbyGuid
approvedbyGuid:approvedbyGuid
paymentMethod:paymentMethod
filterByDate:filterByDate
fromDate:fromDate
toDate:toDate
completionHandler: ^(Batches output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var SpendaApi = require('spenda_api');
// Create an instance of the API class
var api = new SpendaApi.AccountsPayableApi()
var opts = {
'batchGuid': 38400000-8cf0-11bd-b23e-10b96e4ef00d, // {UUID}
'statuses': statuses_example, // {String}
'createdbyGuid': 38400000-8cf0-11bd-b23e-10b96e4ef00d, // {UUID}
'approvedbyGuid': 38400000-8cf0-11bd-b23e-10b96e4ef00d, // {UUID}
'paymentMethod': paymentMethod_example, // {String}
'filterByDate': filterByDate_example, // {String}
'fromDate': 2013-10-20T19:20:30+01:00, // {Date}
'toDate': 2013-10-20T19:20:30+01:00 // {Date}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.aPGETBatches(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class aPGETBatchesExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new AccountsPayableApi();
var batchGuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | (optional) (default to null)
var statuses = statuses_example; // String | (optional) (default to null)
var createdbyGuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | (optional) (default to null)
var approvedbyGuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | (optional) (default to null)
var paymentMethod = paymentMethod_example; // String | (optional) (default to null)
var filterByDate = filterByDate_example; // String | (optional) (default to null)
var fromDate = 2013-10-20T19:20:30+01:00; // Date | (optional) (default to null)
var toDate = 2013-10-20T19:20:30+01:00; // Date | (optional) (default to null)
try {
// AP_GET_Batches
Batches result = apiInstance.aPGETBatches(batchGuid, statuses, createdbyGuid, approvedbyGuid, paymentMethod, filterByDate, fromDate, toDate);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling AccountsPayableApi.aPGETBatches: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccountsPayableApi();
$batchGuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID |
$statuses = statuses_example; // String |
$createdbyGuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID |
$approvedbyGuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID |
$paymentMethod = paymentMethod_example; // String |
$filterByDate = filterByDate_example; // String |
$fromDate = 2013-10-20T19:20:30+01:00; // Date |
$toDate = 2013-10-20T19:20:30+01:00; // Date |
try {
$result = $api_instance->aPGETBatches($batchGuid, $statuses, $createdbyGuid, $approvedbyGuid, $paymentMethod, $filterByDate, $fromDate, $toDate);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AccountsPayableApi->aPGETBatches: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AccountsPayableApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccountsPayableApi->new();
my $batchGuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID |
my $statuses = statuses_example; # String |
my $createdbyGuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID |
my $approvedbyGuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID |
my $paymentMethod = paymentMethod_example; # String |
my $filterByDate = filterByDate_example; # String |
my $fromDate = 2013-10-20T19:20:30+01:00; # Date |
my $toDate = 2013-10-20T19:20:30+01:00; # Date |
eval {
my $result = $api_instance->aPGETBatches(batchGuid => $batchGuid, statuses => $statuses, createdbyGuid => $createdbyGuid, approvedbyGuid => $approvedbyGuid, paymentMethod => $paymentMethod, filterByDate => $filterByDate, fromDate => $fromDate, toDate => $toDate);
print Dumper($result);
};
if ($@) {
warn "Exception when calling AccountsPayableApi->aPGETBatches: $@\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.AccountsPayableApi()
batchGuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | (optional) (default to null)
statuses = statuses_example # String | (optional) (default to null)
createdbyGuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | (optional) (default to null)
approvedbyGuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | (optional) (default to null)
paymentMethod = paymentMethod_example # String | (optional) (default to null)
filterByDate = filterByDate_example # String | (optional) (default to null)
fromDate = 2013-10-20T19:20:30+01:00 # Date | (optional) (default to null)
toDate = 2013-10-20T19:20:30+01:00 # Date | (optional) (default to null)
try:
# AP_GET_Batches
api_response = api_instance.a_pget_batches(batchGuid=batchGuid, statuses=statuses, createdbyGuid=createdbyGuid, approvedbyGuid=approvedbyGuid, paymentMethod=paymentMethod, filterByDate=filterByDate, fromDate=fromDate, toDate=toDate)
pprint(api_response)
except ApiException as e:
print("Exception when calling AccountsPayableApi->aPGETBatches: %s\n" % e)
extern crate AccountsPayableApi;
pub fn main() {
let batchGuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
let statuses = statuses_example; // String
let createdbyGuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
let approvedbyGuid = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
let paymentMethod = paymentMethod_example; // String
let filterByDate = filterByDate_example; // String
let fromDate = 2013-10-20T19:20:30+01:00; // Date
let toDate = 2013-10-20T19:20:30+01:00; // Date
let mut context = AccountsPayableApi::Context::default();
let result = client.aPGETBatches(batchGuid, statuses, createdbyGuid, approvedbyGuid, paymentMethod, filterByDate, fromDate, toDate, &context).wait();
println!("{:?}", result);
}