summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Roland <bjoern.roland@intradesys.com>2015-11-18 00:01:58 +0100
committerBjörn Roland <bjoern.roland@intradesys.com>2015-11-18 00:01:58 +0100
commit2213b32a22f0cb8e29ad03d4b58a60a5304244b5 (patch)
tree388391ed89fc31e6ab849f93219e729d5070403b
parent1c880fae48099471dc6a2155c205b8d539e3a31b (diff)
downloadphp-ssllabs-api-2213b32a22f0cb8e29ad03d4b58a60a5304244b5.zip
php-ssllabs-api-2213b32a22f0cb8e29ad03d4b58a60a5304244b5.tar.gz
php-ssllabs-api-2213b32a22f0cb8e29ad03d4b58a60a5304244b5.tar.bz2
Just for debugging..
-rw-r--r--Api.php25
-rw-r--r--include_me.php7
2 files changed, 32 insertions, 0 deletions
diff --git a/Api.php b/Api.php
new file mode 100644
index 0000000..789bafc
--- /dev/null
+++ b/Api.php
@@ -0,0 +1,25 @@
+<?php
+require_once('include_me.php');
+
+use SSLLabsApi\Calls\AnalyzeCall;
+use SSLLabsApi\Calls\GetEndpointDataCall;
+
+/*
+//Analyze Call
+$parameters = array('host' => 'ssllabs.com');
+$analyzeCall = new AnalyzeCall($parameters);
+$analyzeCall->setDevMode(true);
+
+echo '<pre>';
+print_r($analyzeCall->send());
+echo '</pre>';
+*/
+
+//getEndpointData Call
+$parameters = array('host' => 'ssllabs.com', 's' => '64.41.200.100');
+$getEndpointDataCall = new GetEndpointDataCall($parameters);
+$getEndpointDataCall->setDevMode(true);
+
+echo '<pre>';
+print_r($getEndpointDataCall->send());
+echo '</pre>'; \ No newline at end of file
diff --git a/include_me.php b/include_me.php
new file mode 100644
index 0000000..90afaeb
--- /dev/null
+++ b/include_me.php
@@ -0,0 +1,7 @@
+<?php
+error_reporting(E_ALL);
+ini_set("display_errors", 1);
+set_include_path(dirname(__FILE__). '/src' . PATH_SEPARATOR . get_include_path());
+
+require_once('vendor/autoload.php');
+?> \ No newline at end of file