Socket
Socket
Sign inDemoInstall

pagerduty-pdjs

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pagerduty-pdjs - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

2

package.json
{
"name": "pagerduty-pdjs",
"version": "1.1.0",
"version": "1.1.1",
"description": "JavaScript wrapper for the PagerDuty API, maintained by PagerDuty",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -1,4 +0,4 @@

PDJS (PagerDuty base JavaScript API)
PDJS (PagerDuty based JavaScript API)
====
This is a simple JavaScript wrapper to the [PagerDuty API](https://v2.developer.pagerduty.com/v2/docs)
This is a simple client-side JavaScript wrapper to the [PagerDuty API](https://v2.developer.pagerduty.com/v2/docs).

@@ -8,3 +8,3 @@ ## Making an API request

1. First, you'll need the following dependencies included in your project to utilize PDJS.
* [pdjs.js](https://github.com/PagerDuty/pdjs)
* [pdjs.js](https://github.com/PagerDuty/pdjs) -- you can download it and manually add it to your project. Or, `npm i pagerduty-pdjs`.
1. Create a `PDJSobj` object, setting values for the `subdomain`, `token`, and `api_version` fields on the object.

@@ -132,4 +132,3 @@ ```javascript

* [examples/incidents.html](https://pagerduty.github.io/pdjs/examples/incidents.html) polls the [incidents](http://developer.pagerduty.com/documentation/rest/incidents/list) api and displays the triggered & acknowledged incidents
* [examples/report.html](https://pagerduty.github.io/pdjs/examples/report.html) shows off *api_all* by looping through all the events on my webdemo account for the last 30 days and prints them out as a CSV-esque thing that you could paste into a CSV file.
* [examples/add_contact_method.html](examples/trigger.html) shows how to trigger an incident
* [examples/report.html](https://pagerduty.github.io/pdjs/examples/report.html) shows off *api_all* by looping through all the events on my webdemo account for the last 30 days and prints them out as a CSV-esque thing that you could paste into a CSV file

@@ -142,2 +141,3 @@ ## Compiling the Base Script:

## More info
This project is for client-side JavaScript. If you're looking for a Node library, we recommend the [node-pagerduty](https://github.com/kmart2234/node-pagerduty) library.

@@ -144,0 +144,0 @@ Are you using this library or have questions? Let us know by posting to the [PagerDuty Community Developer Forum](https://community.pagerduty.com/c/dev).

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc