btmpl / allegro
dev-master
2018-02-02 10:36 UTC
Requires
- php: >=5
This package is not auto-updated.
Last update: 2024-09-28 14:58:35 UTC
README
Prosty wrapper do obsługi WebAPI Allegro.
安装
通过 Composer 获取
"require": {
"btmpl/allegro": "dev-master"
},
następnie
$ composer update
使用
$allegro = new \Allegro\Allegro('KLUCZ');
$allegro->login('LOGIN', 'HASLO');
作为构造函数的可选参数,可以传递国家 ID,以及其他 WSDL(例如测试 WSDL)的地址。
要调用 api 方法,例如 doGetPostBuyFormsDataForSellers,使用以下调用
$response = $allegro->doGetPostBuyFormsDataForSellers($payload);
脚本会自动添加 sessionId
、sessionHandle
、webapiKey
、countryId
和 countryCode
(因为一致性不是 Allegro API 的强项)。