You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+40-2Lines changed: 40 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,13 @@ For documentation specific to this api client, please read below.
23
23
For more specific documentation to the APIs available, including endpoints, request and response data, please visit our [documentation area](https://www.bigdatacloud.net/ip-geolocation-apis).
24
24
25
25
26
+
## Update Notes
27
+
28
+
- This repository now utilises `node-fetch` rather than the deprecated `request` module.
29
+
- Calls to the API will return a JSON object as a successful response, see below for an example
30
+
- Exceptions return a single object: `{error:json_object || error_string,code:http_status_code}`
31
+
32
+
26
33
27
34
## Authentication / Identification
28
35
@@ -43,6 +50,8 @@ See the example below.
43
50
44
51
## Example usage
45
52
53
+
The below example is found in the included demo.js.
54
+
46
55
```javascript
47
56
constclient=require('@bigdatacloudapi/client')('XXX'); // XXX being your api key found at: https://www.bigdatacloud.net/customer/account
0 commit comments