Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rudrankriyam authored Apr 6, 2023
1 parent d0a462e commit 1b85cba
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,21 @@
Explore and experiment with private Apple Music API endpoints.

Note: Do NOT ship with this package. If you do, you are responsible for any backlash from Apple. This uses private Apple Music API endpoints that requires a priviledged developer token.

## Search Replay Playlists

The `searchSummaries(developerToken:)` method allows you to search music summary data for the user's library like the replay playlists over the years. To use this method, you will need a priviledged developer token.

Here's an example of how to use it:

```swift
do {
let summaries = try await MReplay.searchSummaries(developerToken: "developer_token")

for summary in summaries {
print("Year: \(summary.year), playlist: \(summary.playlist)")
}
} catch {
print(error)
}
```

0 comments on commit 1b85cba

Please sign in to comment.