muffin-rewards / lambda-reward-verifier

Verifies that a user posted about promoter on IG.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AWS Lambda: Apply For Reward

Checks the APIs for if a competition has been entered.

The event object has to be of following structure:

event.Records[0].Sns.message = {
    ...
    "token": String,
    "id": String
}

Enviroment variables

  • DDB_REWARDS_TABLE with information about rewards.
  • DDB_ENTRIES_TABLE with information about past rewards claims.

Deployment

Deploy with npm run deploy:{env}.

Tests

Yet to be written.

About

Verifies that a user posted about promoter on IG.


Languages

Language:JavaScript 100.0%