Serverless function to receive webhook from Bintray and trigger POST request
- Install serverless:
npm install serverless -g
- Login to Serverless:
serverless login
- Deploy Serverless function to AWS:
serverless deploy
curl -X POST \
https://api.bintray.com/webhooks/$SUB/$REPO/$PACKAGE \
-u '$USERNAME:$API_KEY' \
-H 'content-type: application/json' \
-d '{
"url": "$SERVERLESS_URL",
"method": "post"
}'