<?php require_once 'bootstrap.php'; use DevelArts\Workflow; $order = new Order(); $builder = new Workflow\Builder\DocCommentBuilder($order); $workflow = Workflow\WorkflowFactory::build($builder); $order->setState($workflow->getState(OrderStatusEnum::PLACED)); Example::run($workflow, $order);
<?php session_start(); function __autoload($name) { require '../src/bolcom/' . $name . '.php'; } //please fill in your API-key in Example.php before running index.php require_once 'Example.php'; Example::run();
<?php session_start(); error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING); function __autoload($name) { require 'bol/src/bolcom/' . $name . '.php'; } require_once 'bol/examples/Example.php'; $oProducts = Example::run(); //$oProducts = file_get_contents('http://'.$_SERVER['HTTP_HOST'].'/bol/examples/index.php?action=search&q=barcelona vakantie'); //var_dump(json_decode($oProducts)); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Flirty Bird</title> <!-- Bootstrap --> <link href="css/bootstrap.min.css" rel="stylesheet"> <link href="css/style.css" rel="stylesheet"> <link href="css/datepicker3.css" rel="stylesheet"> <link href="css/slider.css" rel="stylesheet"> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]>