Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 

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.

About

Allows you to post links and messages to Edsby class feeds using a simple HTTP call.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages