Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1.26 KB

README.md

File metadata and controls

42 lines (30 loc) · 1.26 KB

readme-widgets

Environment Variables

AM_DEV_TOKEN: MusicKit Developer Token
AM_USER_TOKEN: MusicKit Music User Token
GH_TOKEN: GitHub Personal Access Token

Endpoints

Apple Music Recently Played Widget

URL /recently-played
Query Parameters:

Name Type Required Default Description
artwork_size String no 708 Size of the artwork
language String no en-US Language of Apple Music

GitHub Repository Widget

readme-widgets

URL /repository
Query Parameters:

Name Type Required Default Description
owner String yes - Owner of the repository
repo String yes - Name of the repository
name String no {repo} Custom name to display on the widget

Redirect API

Set this address as where users will be redirected when they click on widgets

URL /redirect
Query Parameters:

Name Type Required Default Description
to "recently-played" yes - The endpoint of the widget the user clicked