Skip to content

Commit

Permalink
Merge pull request #113 from mauriciomaniglia/clientRedirectURI
Browse files Browse the repository at this point in the history
getting redirect_uri from ClientKeys.h
  • Loading branch information
8W9aG committed Apr 22, 2016
2 parents 7c5342e + 8478bab commit 609939b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion demo/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

#import <SPTDataLoader/SPTDataLoader.h>

#import "ClientKeys.h"
#import "SPTDataLoaderAuthoriserOAuth.h"
#import "NSString+OAuthBlob.h"
#import "PlaylistsViewController.h"
Expand Down Expand Up @@ -82,7 +83,7 @@ - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url
request.method = SPTDataLoaderRequestMethodPost;
NSDictionary *tokenBodyDictionary = @{ @"grant_type" : @"authorization_code",
@"code" : code,
@"redirect_uri" : @"sptdataloaderdemo://login" };
@"redirect_uri" : SPOTIFY_REDIRECT_URI };
NSMutableArray *tokenBodyParameters = [NSMutableArray new];
for (NSString *tokenBodyKey in tokenBodyDictionary) {
NSString *tokenBodyParameter = [@[ tokenBodyKey, tokenBodyDictionary[tokenBodyKey] ] componentsJoinedByString:@"="];
Expand Down

0 comments on commit 609939b

Please sign in to comment.