summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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