Persistent storage; Authorization via spotify

This commit is contained in:
James Barnsley
2016-10-17 10:39:11 +13:00
parent f738766898
commit 4bff7ee0a9
23 changed files with 409 additions and 143 deletions

View File

@ -3,9 +3,22 @@
* Actions and Action Creators
**/
export function authorize(){
export function startAuthorization(){
return {
type: 'SPOTIFY_AUTHORIZING'
type: 'SPOTIFY_START_AUTHORIZATION'
}
}
export function removeAuthorization(){
return {
type: 'SPOTIFY_REMOVE_AUTHORIZATION'
}
}
export function completeAuthorization( data ){
return {
type: 'SPOTIFY_COMPLETE_AUTHORIZATION',
data: data
}
}
@ -28,3 +41,10 @@ export function loadAlbum( uri ){
}
}
export function loadArtist( uri ){
return {
type: 'SPOTIFY_LOAD_ARTIST',
uri: uri
}
}