Skip to content

Latest commit

 

History

History
48 lines (37 loc) · 1.58 KB

README.md

File metadata and controls

48 lines (37 loc) · 1.58 KB

extra life lambdas

Goal

Every Year Extra Life is DDoS'ed and data just is impossible to get. These lambdas have the goal to get the latest information from the Extra Life API and then store it in Dynamodb. Then when something asks for the data we can easily return it from the stored data.

Why Go

First off why Not? Second I am not strong in the Go-fu so this was a chance to play and to get some practice. Things are WRONG. I am not surprised. But if it is wrong and you know how to fix then please open up a PR

Plan

A few Lambdas and call it done

  1. Update Data - this function will attempt to grab the latest information from Extra Life and store the data
  2. Get By Participant Id - this function will get and format the latest data from Dynamodb for that Participant

Data

At the moment the data I think we need is something like this

{
  "lastUpdated": "2021-09-20T17:07:25.3+0000",
  "displayName": "Shawn Carr",
  "fundraisingGoal": 1000.0,
  "links": {
    "donate": "https://www.extra-life.org/index.cfm?fuseaction=donorDrive.participant&participantID=451669#donate",
    "page": "https://www.extra-life.org/index.cfm?fuseaction=donorDrive.participant&participantID=451669",
    ...
  },
  "sumDonations": 350.0,
  "numDonations": 6,
  "team": {
    "name": "Sharp Notions, LLC",
    "numParticipants": 2,
    "fundraisingGoal": 2500.0,
    "links": {
      "stream": "https://player.twitch.tv/?channel=sharpnotions",
      "page": "https://www.extra-life.org/index.cfm?fuseaction=donorDrive.team&teamID=56470"
    },
    "sumDonations": 355.0,
    "numDonations": 7
  }
}