webiq/earny-php-client

简单的Earny API客户端

1.2.1 2016-04-26 13:28 UTC

This package is not auto-updated.

Last update: 2024-09-15 02:37:54 UTC


README

Earny提供简单的封装!

示例。有关Earny API的更多信息,请访问他们的文档页面。

自行承担使用此源码的风险。请报告任何错误或改进。

添加草稿
$earny_data = [
    'idcontact' => 1,
    'idpaymentmethod' => 2,
    'idtemplate' => 3,
    'language' => 'nl',
    'rules' => [[
        'idcategory' => 4,
        'idvatgroup' => 5,
        'productcode' => 6,
        'name' => 'Some Product name',
        'description' => 'Some cool description'
        'price' => 10.00,
        'amount' => 2
    ]],
];

// insert into the database
$earny = new Earny\Earny('your@username.com', 'withyourpassword');
$result = $earny->addDraft($earny_data);