MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / _getTrack

Function _getTrack

assets/js/SpotifyFinder.js:63–71  ·  view source on GitHub ↗
(token, trackEndPoint)

Source from the content-addressed store, hash-verified

61
62 // Function to get individual track
63 const _getTrack = async (token, trackEndPoint) => {
64 const result = await fetch(`${trackEndPoint}`, {
65 method: 'GET',
66 headers: { Authorization: 'Bearer ' + token },
67 })
68
69 const data = await result.json()
70 return data
71 }
72
73 return {
74 getToken() {

Callers 1

getTrackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected