emgag/vg-wort-message-api
Composer 安装命令:
composer require emgag/vg-wort-message-api
包简介
VG Wort METIS messages API helper
README 文档
README
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 = [ "http://example.com/path/to/file.html" ];
- As an multi-dimensional array. The keys will be ignored.
$urls = [ "page-1" => [ "http://example-1.com/path/to/file.html" ], "page-2" => [ "http://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_MINDESTZUGRIFFPixelService::TYPE_ANTEILIGER_MINDESTZUGRIFF
License
vg-wort-message-api is licensed under the MIT License.
统计信息
- 总下载量: 24.2k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-05-28