orchardcity / laravel-samcart
用于php Laravel的Samcart API库
1.2.6
2023-05-08 18:02 UTC
Requires
- php: ^8.0
- guzzlehttp/guzzle: ^7.0
- laravel/framework: >=8 <11
Requires (Dev)
- orchestra/testbench: ^8.0
- phpunit/phpunit: ^10.1@dev
This package is auto-updated.
Last update: 2024-09-09 02:19:04 UTC
README
这是一个用于与Samcart API交互的PHP库(特别为Laravel编写)
获取您的密钥并在此处阅读文档:https://developer.samcart.com/#section/Introduction
使用我创建的Postman集合进行开发:https://www.postman.com/helloenthusiast/workspace/orchardcity/collection/17590512-f73e7c43-5f87-4aea-a58f-26845d4ddfdf
对于更新、改进或修复,请随时提交PR!
安装
composer require orchardcity/laravel-samcart
使用
$samcart = new Samcart($api_key);
$samcart->testConnection();
$samcart->getCustomers(50);
$samcart->getOrders();
$samcart->getProucts();
$samcart->getProductById('343357');
$samcart->getCustomerById('343357');
$samcart->getOrderById('343357');
$samcart->issueChargeRefund(134443)