repat/weimark-php

weimark.com webservice API 客户端

dev-master 2019-04-07 17:57 UTC

This package is auto-updated.

Last update: 2024-09-20 05:53:53 UTC


README

Latest Version on Packagist Total Downloads

🚧 正在建设中 🚧

weimark-php是weimark.com webservice API的客户端。这是一个私有API,您需要与他们联系。这是一个独立项目,没有官方支持,尤其是来自Weimark的支持。不过,您仍然可以提交问题或拉取请求。

基于ruby版本davidred/weimark

安装

$ composer require repat/weimark-php

文档

NewApplication

// init
$w = new \Repat\Weimark\Client('email@provider.tld', 'secret_password', 'agent@email.tld');

// fill this out
$template = array_flip($w->getApplicationTemplate());
$template['fname'] = 'Joe';
// ...

$response = $w->newApplication($template);

// XML Response parsed as array
print_r($response);

GetApplication

// init
$w = new \Repat\Weimark\Client('email@provider.tld', 'secret_password', 'agent@email.tld');
$response = $w->getApplication('application_id');

// XML Response parsed as array
print_r($response);

许可协议

版本

  • 版本 0.1

联系方式

repat

Flattr this git repo