Skip to content
This repository has been archived by the owner on Dec 31, 2022. It is now read-only.
/ vg-wort-message-api Public archive

VG WORT METIS text submission API helper for PHP

License

Notifications You must be signed in to change notification settings

emgag/vg-wort-message-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vg-wort-message-api

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.

Installation

composer require emgag/vg-wort-message-api

Usage

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

License

vg-wort-message-api is licensed under the MIT License.

About

VG WORT METIS text submission API helper for PHP

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages