Created
December 7, 2011 12:07
-
-
Save ErikAndreas/1442575 to your computer and use it in GitHub Desktop.
Spotify Apps Api - Tabs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
function init() { | |
console.log("init()"); | |
sp = getSpotifyApi(1); | |
// detects arguments value for tab | |
sp.core.addEventListener("argumentsChanged", function (event) { | |
console.log('args changed', sp.core.getArguments()); | |
}); | |
} | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"DefaultTabs": [ | |
{ | |
"arguments": "tab1", | |
"title": { | |
"en": "title tab 1" | |
} | |
}, | |
{ | |
"arguments": "tab2", | |
"title": { | |
"en": "title tab 2" | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks man. :)