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
Branches feat/class-refactor
No related tags found
No related merge requests found
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
namespace WPCT_ERP_FORMS; namespace WPCT_ERP_FORMS;
use WPCT_HB\Http_Client as Wpct_Http_Client;
class Integration class Integration
{ {
public static $fields = []; public static $fields = [];
...@@ -40,7 +42,7 @@ class Integration ...@@ -40,7 +42,7 @@ class Integration
{ {
$success = true; $success = true;
foreach ($endpoints as $endpoint) { foreach ($endpoints as $endpoint) {
$response = wpct_oc_post_odoo($endpoint, $payload); $response = Wpct_Http_Client::get($endpoint, $payload);
if (!$response) { if (!$response) {
$success = false; $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