Skip to content
Allows you to post links and messages to Edsby class feeds using a simple HTTP call.
Python
Branch: master
Clone or download
Latest commit 83894b5 May 8, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib Initial commit May 4, 2017
LICENSE.txt Initial commit May 4, 2017
__init__.py Initial commit May 4, 2017
config.cfg Worked out all the kinks, housecleaning May 8, 2017
main.py Worked out all the kinks, housecleaning May 8, 2017
readme.md

readme.md

AWS Lambda Edsby Integration

This is an AWS Lambds function that uses PyEdsby to post provided messages/links to the specified class NIDs.

This allows you to post links and messages to class feeds using simple HTTP calls, the practical upshot of this being that you can integrate Edsby with services like IFTTT and anything else that supports Webhooks/HTTP POSTs.

To call the function's API, select API Gateway as its trigger, ensuring you choose the "Open" policy.

Then, post the following JSON payload to its HTTP endpoint:

{
  "link": "If you're posting a link, put it here. Empty if not specified.",
  "text": "The message body. Empty if not specified.",
  "username": "your Edsby username Read from config file if not specified",
  "password": "your Edsby password. Read from config file if not specified",
  "classIDs": "list,of,class,IDs. Read from config file if not specified",
  "key": "Must match key in config file."
}

Prerequisites

You need to install python-requests into the lib folder. To do so, run:

pip install requests --target=./lib

You can then create a ZIP file for your Lambda deployment package like so:

zip -r ~/Desktop/edsby_lambda.zip ./*

Suggested Lambda Configuration

  • Runtime: Python 2.7
  • Handler: main.handle_request
  • Memory: 128
  • Timeout: 5 sec

Educational use

If you are a teacher who is seeking to add automated posting functionality to your workflow, but aren't otherwise able to get this lambda function set up, contact me. I'll let you use my public instance.

You can’t perform that action at this time.