acumaticalibrary / noobgrammer
Acumatica 与 Guzzle 实现版本
dev-master
2023-11-24 05:39 UTC
Requires
- guzzlehttp/guzzle: ^7.8.0
This package is auto-updated.
Last update: 2024-09-24 07:37:24 UTC
README
描述
这是一个个人使用,用于实现与 ACUMATICA ERP Web 服务端点的交易。希望这能帮到您。
入门
依赖关系
- 需要 php 7.8+
安装
- composer require acumaticalibrary/noobgrammer:master-dev
执行程序
- 如何运行程序
- 逐步要点
$datafield = [
"CustomerID" => [ "value" => "#"],
"CustomerName" => [ "value" => "#"],
"CustomerClass" => [ "value" => "INDVS"],
"Status" => [ "value" => "#"],
"StatementCycleID" => [ "value" => '#'],
"FinancingDimensionCustomer" => [ "value" => true],
"CashDiscountAccount" => [ "value" => "#"],
"CashDiscountSub" => [ "value" => "#"],
"ARAccount" => [ "value" => "#"],
"ARSub" => [ "value" => "#"],
"SalesAccount" => [ "value" => "#"],
"SalesSub" => [ "value" => "#"],
'MainContact' => [
'CompanyName' => [ "value" => "#"],
'DisplayName'=> [ "value" => "#"],
'FirstName'=> [ "value" => "#"],
"LastName" => [ "value" => "#"],
"DateofBirth" => [ "value" => "#"],
"Phone1" => [ "value" => "#"],
"Calendar" => [ "value" => "#"],
"AddressLine2" => [ "value" => "#"],
"AddressLine1" => [ "value" => "#"],
"City" => [ "value" => "#"],
"State" => [ "value" => "#"],
"Country" => [ "value" => "#"]
]
];
$requestData = [
'acumaticaLoginEndPoint' => '#',
'acumaticaLogoutEndPoint' => '#',
'Login_Acumatica' => [
'name' => 'yourUsername',
'password'=> 'yourPassword',
'tenant'=> 'yourtenant',
"branch" => '',
"locale" => ""
],
'Body_Acumatica' =>[
'Action' => 'PUT',
'URL' => 'YourAcumaticaEndPoint',
'data' => $datafield
]
];
return json_encode($this->acumatica->acumatica_Api($requestData));
Access for The Odata
1.) Go to your Generic Inquiry and Create a Generic Inquiry
2.) after create a Generic Inquiry tick the odata then update
3. go to your php app and use this.
$url = '#';
$odataServices = [
'URL' => 'YourAcumaticaEndPoint',
'name' => 'yourUsername',
'password'=> 'yourPassword',
];
return $this->acumatica->odataParse($url);
版本历史
- 0.1
- 初始版本
许可证
本项目采用 Greggy 许可证 - 详细信息请参阅 LICENSE.md 文件。
致谢
灵感、代码片段等。