Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
@raw2dd4/react-native-apple-music
Advanced tools
Readme
React Native Apple Music by Bouncy
The Apple Music API is a web service that lets you access information about the media found in the Apple Music Catalog. Here's what each one includes:
Use this service to retrieve information about albums, songs, artists, playlists, music videos, Apple Music stations, ratings, charts, recommendations, and the user's most recently played content. With proper authorization from the user, you can also create or modify playlists and apply ratings to the user's content.
Here's a quick overview of functionalities supported:
npm install @bouncyapp/react-native-apple-music --save
or
yarn add @bouncyapp/react-native-apple-music
react-native link @bouncyapp/react-native-apple-music --platforms ios
cd ios && pod install && cd ..
import AppleMusic from '@bouncyapp/react-native-apple-music';
All functions returning a Promise that resolves to the result.
initialize( keyID, teamID, key )
Initializes the Apple Music module and resumes a logged in session if there is one. This must be the first method you call when using this module.
Parameters
Returns
login_basic()
Login every Apple User with your Key. User can call non-personlised api calls like getCharts etc.
Returns
login() (Apple Music Subscription Required)
Login user with Apple Music Subscription
Returns
getICloudID()
Get the iCloud ID of my Apple Account
Returns
getSongCharts()
Get the current Apple Music Charts
Returns
getAlbumCharts()
Get the current Apple Music Album Charts
Returns
searchSong(query)
Search for Songs at Apple Music
Returns
searchAlbum(query)
Search for Albums at Apple Music
Returns
searchArtist(query)
Search for Artists at Apple Music
Returns
searchPlaylist(query)
Search for Playlists at Apple Music
Returns
getSong(id)
Get an specific song by id
Returns
getSongs([ids])
Get songs by id
Returns
getSongWithIsrc(isrc)
Get an specific song by isrc
Returns
getAlbum(id)
Get an specific album by id
Returns
getPlaylist(id)
Get an specific Catalog Playlist by id
Returns
getArtist(id)
Get an specific artist by id
Returns
getUserPlaylists() (Apple Music Subscription Required)
Get the Playlists of my Apple Music Account
Returns
getUserPlaylist(id) (Apple Music Subscription Required)
Get a Playlist of my Apple Music Account
Returns
recentPlayed() (Apple Music Subscription Required)
Get the recently played songs, albums, artists of my Apple Music Account
Returns
getHeavyRotation() (Apple Music Subscription Required)
Heavy Rotation is a collection of albums and playlists selected based on your iPhone listening habits.
Returns
getRecommendations() (Apple Music Subscription Required)
Get songs, albums, artists recommendations of my Apple Music Account
Returns
addToPlaylist(playlistId, songId) (Apple Music Subscription Required)
Add the song to the playlist in my Apple Music Account
Returns
Have an idea? Found a bug? Please raise to ISSUES. Contributions are welcome and are greatly appreciated! Every little bit helps, and credit will always be given.
Thanks! ❤️
FAQs
A react native module for the Apple Music API
The npm package @raw2dd4/react-native-apple-music receives a total of 1 weekly downloads. As such, @raw2dd4/react-native-apple-music popularity was classified as not popular.
We found that @raw2dd4/react-native-apple-music demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.