WARNING: This library is no longer maintained and doesn't work with the current VG Wort METIS API version.
A plugin to simplify the creation and submission of VG Wort METIS messages. Works with the official T.O.M. WebServices.
composer require emgag/vg-wort-message-api
MessageService
use Emgag\VGWort\MessageService;
$messageService = new MessageService($username, $password);
$response = $messageService->newMessage(
$id, // Private Identification Id
[
// Multiple Authors possible
["firstName" => "", "surName" => "", "cardNumber" => ""]
],
$title, // Title of this message
$text, // Text of this message (plain text)
$urls // URLs of this message
);
It's possible to provide multiple URLs. The URLs $urls
could be in one of these formats:
- As an simple array.
$urls = [
"https://example.com/path/to/file.html"
];
- As an multi-dimensional array. The keys will be ignored.
$urls = [
"page-1" => [
"https://example-1.com/path/to/file.html"
],
"page-2" => [
"https://example-2.com/path/to/file.html"
]
];
PixelService
use Emgag\VGWort\PixelService;
$pixelService = new PixelService($username, $password);
try {
$ids = $pixelService->overview(PixelService::TYPE_MINDESTZUGRIFF);
} catch (\Exception $e) {
...
}
Allowed types:
PixelService::TYPE_MINDESTZUGRIFF
PixelService::TYPE_ANTEILIGER_MINDESTZUGRIFF
vg-wort-message-api is licensed under the MIT License.