Stores pa feed on s3 to replay them later.
This app reads data from an s3 bucket pa-football-time-machine
in the mobile account.
When testing locally or in CODE, make sure you hit the setDate
method first as this outputs data to s3 which the
other two endpoints run from.
When testing the getPaData
make sure the path is set to a file that exists in the pa-football-time-machine
bucket
Make sure you get mobile credentials from Janus
Go to src/main/scala/com/gu/footballtimemachine/ApiLambda.scala
Uncomment the endpoint that you want to run
Run main
There are 3 endpoints which are handled by API Gateway.
- setDate -> https://hdjq4n85yi.execute-api.eu-west-1.amazonaws.com/Prod/setDate?startDate=2017-06-11T21:00:00Z&speed=3
- getPaData -> https://hdjq4n85yi.execute-api.eu-west-1.amazonaws.com/Prod/competitions/matchDay/apiKey/20240215
- getTime -> https://hdjq4n85yi.execute-api.eu-west-1.amazonaws.com/Prod/getTime
This runs on a cron schedule. Search for the football-time-machine-archive-CODE
lambda in the console and tail
the logs