Code Monkey home page Code Monkey logo

webhook-recipes's Introduction

##Work Market Webhook Recipes

The following webhook recipes are samples to highlight the capabilities of webhooks as a feature. In most cases, these require some setup on the remote system (typically to enable API access).

Webhooks can be configured here: https://www.workmarket.com/mmw/integration/webhooks

Dropbox (Upload)
Description Upload new files into a Dropbox folder rootFolder/[assignmentId]/[fileName]. Note: you must set up API access for your Dropbox account and get an access token. See here: https://www.dropbox.com/developers
Event Attachment Added
URL https://api-content.dropbox.com/1/files_put/auto/${client_name}/${assignment_id}/${file_name}
Method PUT
Headers Authorization: Bearer [YOUR_DROPBOX_TOKEN]
Content-type: application/octet-stream
Body ${file_data}
Dropbox (Delete)
Description Upload new files into a Dropbox folder rootFolder/[assignmentId]/[fileName]. Note: you must set up API access for your Dropbox account and get an access token. See here: https://www.dropbox.com/developers
Event Attachment Removed
URL https://api.dropbox.com/1/fileops/delete?root=auto&path=${client_name}/${assignment_id}/${file_name}
Method POST
Headers Authorization: Bearer [YOUR_DROPBOX_TOKEN]
Content-type: application/octet-stream
Body None
Hipchat
Description Posts a message to a Hipchat room. Note: you must get a Hipchat API token, and must get your room ID.
Event Note Added (but you could do any number of event types here)
URL https://api.hipchat.com/v1/rooms/message
Method POST
Headers Content-type: application/x-www-form-urlencoded
Body auth_token=[token]&room_id=[room_id]&from=Webhook&message=${note}&color=purple&message_format=text&notify=0
Twilio SMS
Description Sends an SMS text message via the Twilio API. Note: you must have a Twilio account and will need to get your account SID and auth token.
Event Note Added (but you could do any number of event types here)
URL https://[ACCOUNT SID]:[AUTH TOKEN]@api.twilio.com/2010-04-01/Accounts/[ACCOUNT SID]/Messages.json
Method POST
Headers Content-type: application/x-www-form-urlencoded
Body To=[TO_PHONE_NUMBER]&From=+[FROM_PHONE_NUMBER]&Body=${note}

webhook-recipes's People

Contributors

stevenewhouse avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

jhmurcott

webhook-recipes's Issues

Note Recipient / Sender information?

I don't see anything in the documentation about parameters available with the Note Added event that refer to the note sender. The notes seem to come in with just the message and no indication as to who sent it. This is problematic especially during the pre-assignment stage when the note sender may be from several different potential resources, not just the assigned resource.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.