Skip to content
This repository has been archived by the owner on May 21, 2022. It is now read-only.

Commit

Permalink
added new api keys example
Browse files Browse the repository at this point in the history
  • Loading branch information
falcon78 committed Jan 1, 2020
1 parent 5efedf9 commit d17746b
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions apiKeys.example.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
const keys = {
appleMusic: {
// replace this
developerToken: 'api key goes here',
name: 'Vusic',
build: 'ver1',
version: 'ver1',
},
// replace this
geniusAccessToken: 'Api Key',
// replace this
youtubeApiKey: 'api key',
};

function getAppleMusicConfig() {
return new Headers({
Authorization: 'Bearer ' + MusicKit.getInstance().developerToken,
Accept: 'application/json',
['Music-User-Token']: '' + MusicKit.getInstance().musicUserToken,
['Content-Type']: 'application/json',
});
}

export { getAppleMusicConfig };
export default keys;

0 comments on commit d17746b

Please sign in to comment.