PHP code example of leaseweb / api-caller-bundle-ivisedo
1. Go to this page and download the library: Download leaseweb/api-caller-bundle-ivisedo library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
leaseweb / api-caller-bundle-ivisedo example snippets
bash
$ php composer.phar update leaseweb/api-caller-bundle
php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Lsw\ApiCallerBundle\LswApiCallerBundle(),
);
}
php
phpinfo()
php
use Symfony\Bundle\FrameworkBundle\Controller\Controller
use Lsw\ApiCallerBundle\Call\HttpGetJson;
class SomeController extends Controller
{
public function someAction()
{
...
$output = $this->get('api_caller')->call(new HttpGetJson($url, $parameters));
$entities = $output[0];
$httpCode = $output[1];
...
}
}