Skip to content
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.

Passing Parameters #14

Closed
captDaylight opened this issue Jan 30, 2018 · 2 comments
Closed

Passing Parameters #14

captDaylight opened this issue Jan 30, 2018 · 2 comments

Comments

@captDaylight
Copy link
Contributor

In the docs it says:

If the endpoint calls for a parameter, pass this in using the "target" field in options.

But I feel I'm missing something, isn't the checkId passed as the target? For example in this example the target is the checkId:

pingdomApi.getChecks({
  target: 'someCheckId',
  qs: {
    limit: 10
  }
}, function (err, checks, response){
  console.log(err, checks);
});

So for the sake of an example, say I'm trying to get Summary.outage:

pingdomApi.getSummaryOutage({
  target: someCheckId,
  // from: now - month
  // to: now
})
@bebraw
Copy link
Owner

bebraw commented Jan 31, 2018

Hi,

It's better to check the underlying implementation and ask Pingdom support as I don't maintain this library actively anymore.

@captDaylight
Copy link
Contributor Author

Ok, good to know. Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants