phpDocumentor

AfterbuyXMLService
in package

Table of Contents

BASE_URI  = 'https://api.afterbuy.de/afterbuy/ABInterface.aspx'
LOGGING_NAMESPACE  = 'AfterbuyXML'
$accountToken  : mixed
$partnerToken  : mixed
__construct()  : mixed
arrayIsList()  : bool
arrayToXML()  : string
getAfterbuyDatetime()  : DateTimeImmutable
Retrieves server time from Afterbuy and returns it as a DateTimeImmutable instance.
getShopProductsModifiedSince()  : array<string|int, mixed>
performCall()  : SimpleXMLElement
Performs a call to Afterbuy’s XML API.
updateProducts()  : SimpleXMLElement
parseXMLResponse()  : SimpleXMLElement

Constants

BASE_URI

private mixed BASE_URI = 'https://api.afterbuy.de/afterbuy/ABInterface.aspx'

Properties

Methods

__construct()

public __construct(string $partnerToken, string $accountToken) : mixed
Parameters
$partnerToken : string
$accountToken : string
Return values
mixed

arrayIsList()

public static arrayIsList(array<string|int, mixed> $input) : bool
Parameters
$input : array<string|int, mixed>
Return values
bool

arrayToXML()

public static arrayToXML(array<string|int, mixed> $input, int $indent[, string $indentChar = ' ' ]) : string
Parameters
$input : array<string|int, mixed>
$indent : int
$indentChar : string = ' '
Return values
string

getAfterbuyDatetime()

Retrieves server time from Afterbuy and returns it as a DateTimeImmutable instance.

public getAfterbuyDatetime() : DateTimeImmutable
Tags
throws
XMLException
Return values
DateTimeImmutable

getShopProductsModifiedSince()

public getShopProductsModifiedSince(DateTimeInterface $startDate) : array<string|int, mixed>
Parameters
$startDate : DateTimeInterface
Tags
throws
XMLException
Return values
array<string|int, mixed>

performCall()

Performs a call to Afterbuy’s XML API.

public performCall(string $callName[, array<string|int, mixed> $callData = [] ]) : SimpleXMLElement
Parameters
$callName : string
$callData : array<string|int, mixed> = []
Tags
throws
XMLException
Return values
SimpleXMLElement

parseXMLResponse()

private static parseXMLResponse(string $responseBody) : SimpleXMLElement
Parameters
$responseBody : string
Tags
throws
XMLException
Return values
SimpleXMLElement

Search results