please help translate objc c to swift
iOS
1
Posts
1
Posters
1
Views
1
Watching
-
NSURLRequest *request = [BNGAccount loginWithUserName:username password:password product:product redirectUrl:[scheme stringByAppendingString:@"://ios.betfair.com/login"] completionBlock:^(NSString *ssoKey, NSError *connectionError, BNGAPIError *apiError) {
if (!connectionError && !apiError && ssoKey.length) { // once we have the ssoKey back from the login API call, we should set it in the shared instance so other API calls can make use of it. \[APING sharedInstance\].ssoKey = ssoKey; // lets see if we can figure out the account details for this user \[self getAccountFunds\]; } else { \[self logError:@"There was an error while logging in %@ %@" connectionError:connectionError apiError:apiError\]; } }\];