fbeen / laposta-api-php
Laposta API,laposta.nl 的免费 API
v1.5.1
2016-10-09 12:39 UTC
Requires
- php: >=5.2
This package is not auto-updated.
Last update: 2024-09-18 19:15:11 UTC
README
安装¶ ↑
要开始使用,请将以下代码添加到您的 PHP 脚本中
require_once(“/path/to/laposta-php/lib/Laposta.php”);
简单用法如下
Laposta::setApiKey(“JdMtbsMq2jqJdQZD9AHC”);
$member = new Laposta_Member(“BaImMu3JZA”);
$result = $member->get(“maartje@example.net”);
HTTP(S)
默认使用 HTTPS。如果您无法使用 HTTPS,请执行以下操作
Laposta::setHttps(false);
如果您收到有关证书问题的错误,请执行以下操作
Laposta::setHttpsDisableVerifyPeer(true);
注意:这会消除错误,但可能会引入 SSL 设计用来防止的安全问题。更好的解决方案是安装 CA 的证书:[stackoverflow.com/questions/6400300](http://stackoverflow.com/questions/6400300)
文档¶ ↑
请参阅 [api.laposta.nl/doc](https://api.laposta.nl/doc) 以获取最新文档。