Skip to content

kumabook/spotify-token-swap-lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spotify Token Swap Service by AWS Lambda & API Gateway

About

Provide token swap and refresh service on AWS Lambda & API Gateway

How to use

  1. Setup envirnment variables
export AWS_ACCESS_KEY_ID=
export AWS_SECRET_ACCESS_KEY=
export AWS_DEFAULT_REGION=ap-northeast-1
export SPOTIFY_CLIENT_ID=
export SPOTIFY_CLIENT_SECRET=
export SPOTIFY_CALLBACK_URL=
export SPOTIFY_ENCRYPTION_SECRET=

NOTE: aws credentials has role for full acesss AWS Lambda

  1. Deploy lambda functions
node scripts/deploy_lambda.js
  1. Setup API Gateway

TODO

NOTE: use config/request_templates.txt as mapping template in order to convert urlencoded data to json data for lambda input

About

Spotify Token Swap Service on AWS lambda & API Gateway

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published