Skip to content
This repository was archived by the owner on Aug 18, 2025. It is now read-only.

Conversation

@kennethlimcp
Copy link
Contributor

Tested with:

  • webhook GET get_weather http://w1.weather.gov/xml/current_obs/KMSP.xml
Sending webhook request  { uri: 'https://api.spark.io/v1/webhooks',
  method: 'POST',
  json: true,
  form: 
   { event: 'get_weather',
     url: 'http://w1.weather.gov/xml/current_obs/KMSP.xml',
     deviceid: undefined,
     access_token: 'xxxxxxx',
     requestType: 'GET' } }
Successfully created webhook!
  • webhook POST get_weather http://w1.weather.gov/xml/current_obs/KMSP.xml
Sending webhook request  { uri: 'https://api.spark.io/v1/webhooks',
  method: 'POST',
  json: true,
  form: 
   { event: 'get_weather',
     url: 'http://w1.weather.gov/xml/current_obs/KMSP.xml',
     deviceid: undefined,
     access_token: 'xxxx',
     requestType: 'POST' } }
Successfully created webhook!
  • webhook create test.json
Sending webhook request  { uri: 'https://api.spark.io/v1/webhooks',
  method: 'POST',
  json: true,
  form: 
   { eventName: 'librato_',
     url: 'https://metrics-api.librato.com/v1/metrics',
     requestType: 'POST',
     event: 'librato_',
     deviceid: undefined,
     access_token: '450ddb8ea93da3fcd9ec8ab4a75ed56d7aa6b246' } }
Successfully created webhook!

All worked well and parsed the correct parameters.

Tested with:

- `webhook POST get_weather http://w1.weather.gov/xml/current_obs/KMSP.xml`
- `webhook GET` get_weather http://w1.weather.gov/xml/current_obs/KMSP.xml`
- `webhook create test.json` 

All worked well and parsed the correct parameters.
@dmiddlecamp
Copy link
Contributor

👍 Thanks!

dmiddlecamp added a commit that referenced this pull request Apr 13, 2015
Webhook take in correct params
@dmiddlecamp dmiddlecamp merged commit 2a2407f into particle-iot-archived:master Apr 13, 2015
@kennethlimcp kennethlimcp deleted the patch-27 branch April 13, 2015 15:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants