Skip to content

CurtisUpdike/AppleDeveloperToken

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generate a developer token needed to make requests to Apple Music API.

Getting Started

You will need an Apple Developer Account to obtain:

  • Private Key (from .p8)
  • 10-character Team ID
  • 10-character Key ID

See Apple's documentation for more info.

How to Use

using AppleDeveloperToken;

// Expiration time must not be greater than 15777000 (6 months in seconds)
var tokenGenerator = new TokenGenerator(privateKey, teamId, keyId, secondsValid);
var token = tokenGenerator.Generate();