summaryrefslogtreecommitdiffstats
path: root/Api.php
diff options
context:
space:
mode:
Diffstat (limited to 'Api.php')
-rw-r--r--Api.php25
1 files changed, 25 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