Skip to content

Commit a87e2e4

Browse files
author
Serhat Can
authored
Update README.md
1 parent d3b946e commit a87e2e4

File tree

1 file changed

+48
-3
lines changed

1 file changed

+48
-3
lines changed

README.md

Lines changed: 48 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,50 @@
1-
# OpsGenie NodeJs SDK
1+
# OpsGenie Node.js SDK
22

3-
Build status: [![Build Status](https://travis-ci.com/srhtcn/opsgenie-nodejs-sdk.svg?token=QTDpPBArevfhSpyxWwwz&branch=master)](https://travis-ci.com/srhtcn/opsgenie-nodejs-sdk)
3+
CI Status: [![Build Status](https://travis-ci.com/srhtcn/opsgenie-nodejs-sdk.svg?token=QTDpPBArevfhSpyxWwwz&branch=master)](https://travis-ci.com/srhtcn/opsgenie-nodejs-sdk)
44

5-
This is the unofficial (for now) NodeJs sdk for OpsGenie.
5+
This is the repository for Node.js SDK of OpsGenie.
6+
7+
## Aim and Scope
8+
9+
OpsGenie Node.js SDK aims to access OpsGenie Web API through HTTP calls from Node.js applications.
10+
11+
OpsGenie Node.js SDK covers:
12+
13+
* Alert API (TODO: only attachFile method is missing)
14+
* User API
15+
* Group API
16+
* Team API
17+
* Escalation API (TODO: will be available soon)
18+
* Schedule API (TODO: will be available soon)
19+
* Schedule Override API (TODO: will be available soon)
20+
* Forwarding Rule API (TODO: will be available soon)
21+
* Heartbeat API (TODO: will be available soon)
22+
* Integration API (TODO: will be available soon)
23+
* Policy API (TODO: will be available soon)
24+
25+
Future releases are subject to be delivered for packing more APIs soon.
26+
27+
## Installation
28+
Node.js version >=0.6.x is required.
29+
30+
`npm install opsgenie-sdk`
31+
32+
## Getting Started
33+
34+
```js
35+
var opsgenie = require('opsgenie-sdk');
36+
37+
opsgenie.configure({
38+
'api_key': 'd1871497-38bc-4222-9063-32062fc6f2f4'
39+
});
40+
```
41+
42+
```js
43+
opsgenie.alert.get({id: "request_alert_id"}, function (error, alert) {
44+
if (error) {
45+
// handle error
46+
} else {
47+
console.log("Alert data received", alert);
48+
}
49+
});
50+
```

0 commit comments

Comments
 (0)