Skip to content
Snippets Groups Projects
Commit 440ee807 authored by Lucas García's avatar Lucas García
Browse files

feat: Http Backend plugin api changes

parent 6756f054
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,8 @@
namespace WPCT_ERP_FORMS;
use WPCT_HB\Http_Client as Wpct_Http_Client;
class Integration
{
public static $fields = [];
......@@ -40,7 +42,7 @@ class Integration
{
$success = true;
foreach ($endpoints as $endpoint) {
$response = wpct_oc_post_odoo($endpoint, $payload);
$response = Wpct_Http_Client::get($endpoint, $payload);
if (!$response) {
$success = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment