| Count | Header | Value |
| 1 | VeeziAccessToken | 19m3sgh48vcax1p9mmhp4dd87w |
| 2 | Accept | application/xml |
| Count | Form Program | ProcessForm Program | View Written Program | Reserve |
| 1 | v01test01.php | v01test01processform.php | View Written Program | Reserve |
| 2 | v01test02.php | v01test02processform.php | View Written Program | Reserve |
| 3 | v01test03.php | v01test03processform.php | View Written Program | Reserve |
| 4 | v01test04.php | v01test04processform.php | View Written Program | Reserve |
| 5 | v01test05.php | v01test05processform.php | View Written Program | Reserve |
| 6 | v01test06.php | v01test06processform.php | View Written Program | Reserve |
| 7 | v01test07.php | v01test07processform.php | View Written Program | Reserve |
| 8 | v01test08.php | v01test08processform.php | View Written Program | Reserve |
| Count | Form Program | ProcessForm Program | View Written Program | Comments |
| 0 | v01test0000.php | v01test0000processform.php | View Written Program | reqbin creates this, displays aprox 110,000 characters |
| 1 | v01test0001.php | v01test0001processform.php | View Written Program | sets up header array with brackets, displays results differently |
| 2 | v01test0002.php | v01test0002processform.php | View Written Program | Displays the Title of the very first record found in the request. |
| 3 | v01test0003.php | v01test0003processform.php | View Written Program | Displays (as of today) 43 records, each on its own line.
Id, Title, ShortName as: "The title of the movie (Id) is (Title) and it's shortname is (ShortName)". |
| 4 | v01test0004.php | v01test0004processform.php | View Written Program | Just like 0003, but without the extra verbage, ie: the title of the movie ....
Id, Title, ShortName, Genre, Distributor: In a table so the 5 fields line up better.. |
| 5 | v01test0005.php | v01test0005processform.php | View Written Program | My first attempt with Sessions
FeatureStartTime, Film Id, Id, ScreenId, Title: In a table so the 5 fields line up nice.. Later I'll make the FeatureStartTime column look better. |
$url = "https://api.us.veezi.com/v1/film"; $curl = curl_init($url); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); $headers = array( "VeeziAccessToken: 19m3sgh48vcax1p9mmhp4dd87w", "Accept: application/xml", ); curl_setopt($curl, CURLOPT_HTTPHEADER, $headers); //for debug only! curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); $resp = curl_exec($curl); curl_close($curl); var_dump($resp);
$url = 'https://api.us.veezi.com/v1/film'; $headers = array( "VeeziAccessToken: 19m3sgh48vcax1p9mmhp4dd87w", "Accept: application/xml", ); $ch = curl_init($url); curl_setopt($ch, CURLOPT_HEADER, true); // we want headers curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_NOBODY, false); // we don't need body, i changed from true to false curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_TIMEOUT,10); $output = curl_exec($ch); $httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); echo 'HTTP code: ' . $httpcode;
$url = "https://api.us.veezi.com/v1/film"; $curl = curl_init($url); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); $headers = array( "VeeziAccessToken: 19m3sgh48vcax1p9mmhp4dd87w", "Accept: application/xml", ); curl_setopt($curl, CURLOPT_HTTPHEADER, $headers); //for debug only! curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); $resp = curl_exec($curl); curl_close($curl); var_dump($resp);
$url = "https://api.us.veezi.com/v1/film"; $curl = curl_init($url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_HTTPHEADER, [ 'VeeziAccessToken: 19m3sgh48vcax1p9mmhp4dd87w', 'Accept: application/xml', 'Content-Type: application/xml' ]); //for debug only! curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); $resp = curl_exec($curl); curl_close($curl); echo $resp . PHP_EOL . "End";
$url = "https://api.us.veezi.com/v1/film"; $curl = curl_init($url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_HTTPHEADER, [ 'VeeziAccessToken: 19m3sgh48vcax1p9mmhp4dd87w', 'Accept: application/xml', 'Content-Type: application/xml' ]); //for debug only! curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); $resp = curl_exec($curl); curl_close($curl); //echo $resp . PHP_EOL . "End"; $movies = new SimpleXMLElement($resp); echo $movies->Film[0]->Title;
$url = "https://api.us.veezi.com/v1/film";
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HTTPHEADER, [
'VeeziAccessToken: 19m3sgh48vcax1p9mmhp4dd87w',
'Accept: application/xml',
'Content-Type: application/xml'
]);
//for debug only!
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
$resp = curl_exec($curl);
curl_close($curl);
$movies = new SimpleXMLElement($resp);
$Films = $movies->Film;
foreach ($Films as $Film) {
$id = $Film->Id;
$title = $Film->Title;
$shortName = $Film->ShortName;
print_r ("The title of the movie $id is $title and it's shortname is $shortName." . "
" . "\n");
}
$url = "https://api.us.veezi.com/v1/film"; $curl = curl_init($url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_HTTPHEADER, [ 'VeeziAccessToken: 19m3sgh48vcax1p9mmhp4dd87w', 'Accept: application/xml', 'Content-Type: application/xml' ]); //for debug only! curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); $resp = curl_exec($curl); curl_close($curl); //echo $resp . PHP_EOL . "End"; $movies = new SimpleXMLElement($resp); echo "(h1)Blake's Fourth Veezi Film PHP and API Try(/h1)"; echo "
| Count | ID | Title | ShortName | Genre | Distributor |
| " . $cnt . " | "); print_r ("" . $id . " | "); print_r ("" . $title . " | "); print_r ("" . $shortName . " | "); print_r ("" . $genre . " | "); print_r ("" . $dist . " |