Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift snippet using the authCallback. #470

Merged
merged 4 commits into from
Aug 29, 2016
Merged

Swift snippet using the authCallback. #470

merged 4 commits into from
Aug 29, 2016

Conversation

EvgenyKarkan
Copy link
Contributor

#461

For preliminary review, if everything is OK I'll provide an ObjectiveC snippet.

clientOptions.authCallback = { params, callback in
let tokenParams = ARTTokenParams(clientId: json["clientId"] /*string*/)

let tokenRequest = ARTTokenRequest(tokenParams: tokenParams),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incorrect closing param there.

@EvgenyKarkan
Copy link
Contributor Author

@tcard thanks for feedback, I will improve.

@EvgenyKarkan
Copy link
Contributor Author

Please find time to review @tcard

@tcard
Copy link
Contributor

tcard commented Aug 26, 2016

LGTM


```objective-c
ARTClientOptions *clientOptions = [[ARTClientOptions alloc] init];
clientOptions.authCallback = ^(ARTTokenParams *params, void(^callBack)(id<ARTTokenDetailsCompatible>, NSError*)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From this line on there's one extra level of indentation.

@tcard
Copy link
Contributor

tcard commented Aug 29, 2016

A few stylistic comments but LGTM otherwise.

@EvgenyKarkan
Copy link
Contributor Author

Ok, thanks @tcard , please review with stylistic improvements.

@tcard
Copy link
Contributor

tcard commented Aug 29, 2016

LGTM

@EvgenyKarkan
Copy link
Contributor Author

Ok, as far as I understand - I can merge PR after successful review, right @tcard ?

@tcard
Copy link
Contributor

tcard commented Aug 29, 2016

That's right @EvgenyKarkan.

@EvgenyKarkan EvgenyKarkan merged commit dcb602f into master Aug 29, 2016
@EvgenyKarkan EvgenyKarkan deleted the 461 branch September 5, 2016 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants