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

Updated samples to latest 2.2 beta 3 API OPENTOK-12953 #3

Merged
merged 3 commits into from
Apr 14, 2014

Conversation

bsrao
Copy link

@bsrao bsrao commented Apr 7, 2014

No description provided.

@@ -71,7 +72,7 @@ - (BOOL)shouldAutorotateToInterfaceOrientation:
*/
- (void)doConnect
{
[_session connectWithApiKey:kApiKey token:kToken];
[_session connectWithToken:kToken error:nil];
Copy link

Choose a reason for hiding this comment

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

We should write in error handling as part of demonstrating this part of the API. I don't want developers to get in the habit of ignoring this result.

@bsrao
Copy link
Author

bsrao commented Apr 9, 2014

@wobbals can you merge ?

[_session connectWithApiKey:kApiKey token:kToken];
OTError *error = nil;
[_session connectWithToken:kToken error:&error];
if(error)
Copy link

Choose a reason for hiding this comment

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

Style check:

  • use braces for all if/while/for
  • space after keyword: if (condition)

wobbals pushed a commit that referenced this pull request Apr 14, 2014
Updated samples to latest 2.2 beta 3 API  OPENTOK-12953
@wobbals wobbals merged commit a9b9481 into opentok:master Apr 14, 2014
@wobbals wobbals deleted the OPENTOK-12953 branch April 14, 2014 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants