@apiverve/sslchecker 1.0.3 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -6
- package/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
SSL Checker API
|
|
1
|
+
SSL Certificate Checker API
|
|
2
2
|
============
|
|
3
3
|
|
|
4
4
|
SSL Checker is a simple tool for checking SSL certificates. It returns the SSL certificate details of a website.
|
|
@@ -7,7 +7,7 @@ SSL Checker is a simple tool for checking SSL certificates. It returns the SSL c
|
|
|
7
7
|

|
|
8
8
|

|
|
9
9
|
|
|
10
|
-
This is a Javascript Wrapper for the [SSL Checker API](https://apiverve.com/marketplace/api/sslchecker)
|
|
10
|
+
This is a Javascript Wrapper for the [SSL Certificate Checker API](https://apiverve.com/marketplace/api/sslchecker)
|
|
11
11
|
|
|
12
12
|
---
|
|
13
13
|
|
|
@@ -25,7 +25,7 @@ You can get it by signing up at [https://apiverve.com](https://apiverve.com)
|
|
|
25
25
|
|
|
26
26
|
## Usage
|
|
27
27
|
|
|
28
|
-
The SSL Checker API documentation is found here: [https://docs.apiverve.com/api/sslchecker](https://docs.apiverve.com/api/sslchecker).
|
|
28
|
+
The SSL Certificate Checker API documentation is found here: [https://docs.apiverve.com/api/sslchecker](https://docs.apiverve.com/api/sslchecker).
|
|
29
29
|
You can find parameters, example responses, and status codes documented here.
|
|
30
30
|
|
|
31
31
|
### Setup
|
|
@@ -47,8 +47,8 @@ Using the API client, you can perform requests to the API.
|
|
|
47
47
|
###### Define Query
|
|
48
48
|
|
|
49
49
|
```
|
|
50
|
-
var query = {
|
|
51
|
-
|
|
50
|
+
var query = {
|
|
51
|
+
domain: ""
|
|
52
52
|
};
|
|
53
53
|
```
|
|
54
54
|
|
|
@@ -97,7 +97,8 @@ api.execute(query, function (error, data) {
|
|
|
97
97
|
"bits": 2048,
|
|
98
98
|
"valid_from": "Feb 26 00:00:00 2024 GMT",
|
|
99
99
|
"valid_to": "Feb 25 23:59:59 2025 GMT",
|
|
100
|
-
"serialNumber": "D5072F2C3B21834D34FBB048F9A5DAC0"
|
|
100
|
+
"serialNumber": "D5072F2C3B21834D34FBB048F9A5DAC0",
|
|
101
|
+
"domain": "ebay.com"
|
|
101
102
|
}
|
|
102
103
|
}
|
|
103
104
|
```
|
package/index.js
CHANGED
|
@@ -33,7 +33,7 @@ class sslcheckerWrapper {
|
|
|
33
33
|
query = {};
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
var requiredParams = ["
|
|
36
|
+
var requiredParams = ["domain"];
|
|
37
37
|
if (requiredParams.length > 0) {
|
|
38
38
|
for (var i = 0; i < requiredParams.length; i++) {
|
|
39
39
|
if (!query[requiredParams[i]]) {
|
|
@@ -42,7 +42,7 @@ class sslcheckerWrapper {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
const method = '
|
|
45
|
+
const method = 'GET';
|
|
46
46
|
const url = method === 'POST' ? this.baseURL : this.constructURL(query);
|
|
47
47
|
|
|
48
48
|
try {
|
package/package.json
CHANGED