Hello,
I have a website and I wish the connected to the web service that a friend has developed using Laravel.
The problem is that I am not a good developer, and my challenge for now is to be able to consume the address his_domain / API / service he spun me.
I did research and I saw some articles that deal with the subject but nothing concrete. However, I chose the method I saw here on this forum.
Here is à part of code that I add in the custom code of my form but I have no results.
An idea of what needs to be changed?
Thank in advance
I have a website and I wish the connected to the web service that a friend has developed using Laravel.
The problem is that I am not a good developer, and my challenge for now is to be able to consume the address his_domain / API / service he spun me.
I did research and I saw some articles that deal with the subject but nothing concrete. However, I chose the method I saw here on this forum.
Here is à part of code that I add in the custom code of my form but I have no results.
<?php
# An HTTP GET request example
$url = 'http://192.168.100.34/mobility-v2_dev2/public/api/service';
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_TIMEOUT, 5);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$data = curl_exec($ch);
curl_close($ch);
echo $data;
?>
An idea of what needs to be changed?
Thank in advance