@@ -19,17 +19,17 @@ var_dump($api->fetchApiInfo());
19
19
?>
20
20
```
21
21
## Methods
22
- ### fetchApiInfo ()
22
+ ### info ()
23
23
No parameters needed
24
24
25
25
Returns an Info object (see https://github.com/ssllabs/ssllabs-scan/blob/master/ssllabs-api-docs.md#info ).
26
26
27
- ### fetchStatusCodes ()
27
+ ### getStatusCodes ()
28
28
No parameters needed
29
29
30
30
Returns a StatusCodes instance (see https://github.com/ssllabs/ssllabs-scan/blob/master/ssllabs-api-docs.md#statuscodes ).
31
31
32
- ### fetchHostInformation ()
32
+ ### analyze ()
33
33
See https://github.com/ssllabs/ssllabs-scan/blob/master/ssllabs-api-docs.md#invoke-assessment-and-check-progress for parameter description.
34
34
35
35
| Parameter | Type | Default value | |
@@ -46,7 +46,7 @@ Returns a Host object (see https://github.com/ssllabs/ssllabs-scan/blob/master/s
46
46
47
47
Make sure to check the 'status' attribute inside Host object.
48
48
49
- ### fetchHostInformationCached ()
49
+ ### analyzeCached ()
50
50
You can also use fetchHostInformation() with the proper parameters, this is just a helper function.
51
51
52
52
| Parameter | Type | Default value | |
@@ -60,7 +60,7 @@ Returns a Host object (see https://github.com/ssllabs/ssllabs-scan/blob/master/s
60
60
61
61
Also make sure to check the 'status' attribute inside Host object.
62
62
63
- ### fetchEndpointData ()
63
+ ### getEndpointData ()
64
64
See https://github.com/ssllabs/ssllabs-scan/blob/master/ssllabs-api-docs.md#retrieve-detailed-endpoint-information for parameter description.
65
65
66
66
| Parameter | Type | Default value | |
@@ -83,20 +83,20 @@ Use sendApiRequest() method to create custom API calls.
83
83
$api->sendApiRequest('apiCallName', array('p1' => 'p1_value', 'p2' => 'p2_value'));
84
84
```
85
85
86
- ### getReturnJsonObjects ()
87
- Getter for returnJsonObjects
86
+ ### getReturnObjects ()
87
+ Getter for returnObjects
88
88
89
- ### setReturnJsonObjects ()
90
- Setter for returnJsonObjects
89
+ ### setReturnObjects ()
90
+ Setter for returnObjects
91
91
92
92
| Parameter | Type | Default value | |
93
93
| -----------------------| ---------| ---------------| ----------|
94
- | ** returnJsonObjects ** | boolean | | Required |
94
+ | ** returnObjects ** | boolean | | Required |
95
95
96
96
## Example output (as JSON strings)
97
97
### Get API information
98
98
``` PHP
99
- $api->fetchApiInfo ();
99
+ $api->info ();
100
100
```
101
101
``` JSON
102
102
{
@@ -113,7 +113,7 @@ $api->fetchApiInfo();
113
113
114
114
### Get host information
115
115
``` PHP
116
- $api->fetchHostInformation ('https://www.google.de');
116
+ $api->analyze ('https://www.google.de');
117
117
```
118
118
``` JSON
119
119
{
@@ -181,7 +181,7 @@ $api->fetchHostInformation('https://www.google.de');
181
181
182
182
### Get endpoint information
183
183
``` PHP
184
- $api->fetchEndpointData ('https://www.google.de', '74.125.239.111');
184
+ $api->getEndpointData ('https://www.google.de', '74.125.239.111');
185
185
```
186
186
187
187
(just an except of the entire JSON output)
0 commit comments