{"action":"created","comment":{"url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/pulls/comments/193504379","pull_request_review_id":126489107,"id":193504379,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MzUwNDM3OQ==","diff_hunk":"@@ -0,0 +1,117 @@\n+## Getting Started with the Nexmo Conversation iOS SDK\n+\n+In this getting started guide we'll cover adding call methods to the Conversation we created in the [simple conversation with audio](/stitch/in-app-messaging/guides/4-enable-audio/swift) getting started guide. We'll deal with member call events that trigger on the application and call state events that trigger on the Call object.\n+\n+The main difference between using these Call convenience methods and enabling and disabling the audio in the previous quickstart is that these methods do a lot of the heavy lifting for you. By calling a user directly, a new conversation is created, and users are automatically invited to the new conversation with audio enabled. This can make it easier to start a separate direct call to a user or start a private group call among users.\n+\n+## Concepts\n+\n+This guide will introduce you to the following concepts.\n+\n+- **Calls** - calling an User in your application without creating a Conversation first\n+- **Call Events** - CallEvent event that fires on an `ConversationClient` or `Call`\n+\n+\n+### Before you begin\n+- Ensure you have run through the [previous guide](/stitch/in-app-messaging/guides/4-enable-audio/swift) \n+\n+### 1.0 - Updating iOS App\n+\n+We will use the application we already created for [the first audio getting started guide](/stitch/in-app-messaging/guides/4-enable-audio/swift). All the basic setup has been done in the previous guides and should be in place. We can now focus on updating the client-side application.\n+\n+### 1.1 Adding a CallViewController with `.storyboard` files \n+\n+### 1.2 Initiating a call \n+\n+Pass a list of users to initiate a call object:\n+\n+```swift\n+do {\n+    let users = [\"user1\", \"user2\"]\n+\n+    try client.media.call(users, onSuccess: { result in\n+        // code here\n+        // result contains Call object and any errors from requesting invites for users","path":"docs/5-call-convenience-methods.md","position":null,"original_position":34,"commit_id":"8eb2ac99052cf517be131af14f9accf825bbad45","original_commit_id":"6dae442ebfade7f3523858f28a9e0c48e2b205e4","user":{"login":"ericgiannini","id":12617653,"node_id":"MDQ6VXNlcjEyNjE3NjUz","avatar_url":"https://avatars2.githubusercontent.com/u/12617653?v=4","gravatar_id":"","url":"https://api.github.com/users/ericgiannini","html_url":"https://github.com/ericgiannini","followers_url":"https://api.github.com/users/ericgiannini/followers","following_url":"https://api.github.com/users/ericgiannini/following{/other_user}","gists_url":"https://api.github.com/users/ericgiannini/gists{/gist_id}","starred_url":"https://api.github.com/users/ericgiannini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericgiannini/subscriptions","organizations_url":"https://api.github.com/users/ericgiannini/orgs","repos_url":"https://api.github.com/users/ericgiannini/repos","events_url":"https://api.github.com/users/ericgiannini/events{/privacy}","received_events_url":"https://api.github.com/users/ericgiannini/received_events","type":"User","site_admin":false},"body":"n/p ","created_at":"2018-06-06T17:59:48Z","updated_at":"2018-06-06T17:59:48Z","html_url":"https://github.com/Nexmo/stitch-ios-quickstart/pull/10#discussion_r193504379","pull_request_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/pulls/10","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/pulls/comments/193504379"},"html":{"href":"https://github.com/Nexmo/stitch-ios-quickstart/pull/10#discussion_r193504379"},"pull_request":{"href":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/pulls/10"}},"in_reply_to_id":190831301},"pull_request":{"url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/pulls/10","id":190496985,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkwNDk2OTg1","html_url":"https://github.com/Nexmo/stitch-ios-quickstart/pull/10","diff_url":"https://github.com/Nexmo/stitch-ios-quickstart/pull/10.diff","patch_url":"https://github.com/Nexmo/stitch-ios-quickstart/pull/10.patch","issue_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/issues/10","number":10,"state":"open","locked":false,"title":"Call convenience quick start","user":{"login":"ericgiannini","id":12617653,"node_id":"MDQ6VXNlcjEyNjE3NjUz","avatar_url":"https://avatars2.githubusercontent.com/u/12617653?v=4","gravatar_id":"","url":"https://api.github.com/users/ericgiannini","html_url":"https://github.com/ericgiannini","followers_url":"https://api.github.com/users/ericgiannini/followers","following_url":"https://api.github.com/users/ericgiannini/following{/other_user}","gists_url":"https://api.github.com/users/ericgiannini/gists{/gist_id}","starred_url":"https://api.github.com/users/ericgiannini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericgiannini/subscriptions","organizations_url":"https://api.github.com/users/ericgiannini/orgs","repos_url":"https://api.github.com/users/ericgiannini/repos","events_url":"https://api.github.com/users/ericgiannini/events{/privacy}","received_events_url":"https://api.github.com/users/ericgiannini/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-05-25T06:55:20Z","updated_at":"2018-06-06T17:59:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ac4037043f69a2587b40f7d1a510dc0510a034c5","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/pulls/10/commits","review_comments_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/pulls/10/comments","review_comment_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/issues/10/comments","statuses_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/statuses/8eb2ac99052cf517be131af14f9accf825bbad45","head":{"label":"Nexmo:call-convenience","ref":"call-convenience","sha":"8eb2ac99052cf517be131af14f9accf825bbad45","user":{"login":"Nexmo","id":551057,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU1MTA1Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/551057?v=4","gravatar_id":"","url":"https://api.github.com/users/Nexmo","html_url":"https://github.com/Nexmo","followers_url":"https://api.github.com/users/Nexmo/followers","following_url":"https://api.github.com/users/Nexmo/following{/other_user}","gists_url":"https://api.github.com/users/Nexmo/gists{/gist_id}","starred_url":"https://api.github.com/users/Nexmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nexmo/subscriptions","organizations_url":"https://api.github.com/users/Nexmo/orgs","repos_url":"https://api.github.com/users/Nexmo/repos","events_url":"https://api.github.com/users/Nexmo/events{/privacy}","received_events_url":"https://api.github.com/users/Nexmo/received_events","type":"Organization","site_admin":false},"repo":{"id":121368533,"node_id":"MDEwOlJlcG9zaXRvcnkxMjEzNjg1MzM=","name":"stitch-ios-quickstart","full_name":"Nexmo/stitch-ios-quickstart","owner":{"login":"Nexmo","id":551057,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU1MTA1Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/551057?v=4","gravatar_id":"","url":"https://api.github.com/users/Nexmo","html_url":"https://github.com/Nexmo","followers_url":"https://api.github.com/users/Nexmo/followers","following_url":"https://api.github.com/users/Nexmo/following{/other_user}","gists_url":"https://api.github.com/users/Nexmo/gists{/gist_id}","starred_url":"https://api.github.com/users/Nexmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nexmo/subscriptions","organizations_url":"https://api.github.com/users/Nexmo/orgs","repos_url":"https://api.github.com/users/Nexmo/repos","events_url":"https://api.github.com/users/Nexmo/events{/privacy}","received_events_url":"https://api.github.com/users/Nexmo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Nexmo/stitch-ios-quickstart","description":"A repository containing everything you need when getting started with the Nexmo Stitch API and the iOS SDKs","fork":false,"url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart","forks_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/forks","keys_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/teams","hooks_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/hooks","issue_events_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/issues/events{/number}","events_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/events","assignees_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/assignees{/user}","branches_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/branches{/branch}","tags_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/tags","blobs_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/git/refs{/sha}","trees_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/statuses/{sha}","languages_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/languages","stargazers_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/stargazers","contributors_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/contributors","subscribers_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/subscribers","subscription_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/subscription","commits_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/commits{/sha}","git_commits_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/git/commits{/sha}","comments_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/comments{/number}","issue_comment_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/issues/comments{/number}","contents_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/contents/{+path}","compare_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/merges","archive_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/downloads","issues_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/issues{/number}","pulls_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/pulls{/number}","milestones_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/milestones{/number}","notifications_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/labels{/name}","releases_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/releases{/id}","deployments_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/deployments","created_at":"2018-02-13T10:22:36Z","updated_at":"2018-06-04T15:57:37Z","pushed_at":"2018-06-05T18:14:40Z","git_url":"git://github.com/Nexmo/stitch-ios-quickstart.git","ssh_url":"git@github.com:Nexmo/stitch-ios-quickstart.git","clone_url":"https://github.com/Nexmo/stitch-ios-quickstart.git","svn_url":"https://github.com/Nexmo/stitch-ios-quickstart","homepage":"","size":11227,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"Nexmo:master","ref":"master","sha":"77614378c3fab251c584fe736d55497a82b792a3","user":{"login":"Nexmo","id":551057,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU1MTA1Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/551057?v=4","gravatar_id":"","url":"https://api.github.com/users/Nexmo","html_url":"https://github.com/Nexmo","followers_url":"https://api.github.com/users/Nexmo/followers","following_url":"https://api.github.com/users/Nexmo/following{/other_user}","gists_url":"https://api.github.com/users/Nexmo/gists{/gist_id}","starred_url":"https://api.github.com/users/Nexmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nexmo/subscriptions","organizations_url":"https://api.github.com/users/Nexmo/orgs","repos_url":"https://api.github.com/users/Nexmo/repos","events_url":"https://api.github.com/users/Nexmo/events{/privacy}","received_events_url":"https://api.github.com/users/Nexmo/received_events","type":"Organization","site_admin":false},"repo":{"id":121368533,"node_id":"MDEwOlJlcG9zaXRvcnkxMjEzNjg1MzM=","name":"stitch-ios-quickstart","full_name":"Nexmo/stitch-ios-quickstart","owner":{"login":"Nexmo","id":551057,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU1MTA1Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/551057?v=4","gravatar_id":"","url":"https://api.github.com/users/Nexmo","html_url":"https://github.com/Nexmo","followers_url":"https://api.github.com/users/Nexmo/followers","following_url":"https://api.github.com/users/Nexmo/following{/other_user}","gists_url":"https://api.github.com/users/Nexmo/gists{/gist_id}","starred_url":"https://api.github.com/users/Nexmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nexmo/subscriptions","organizations_url":"https://api.github.com/users/Nexmo/orgs","repos_url":"https://api.github.com/users/Nexmo/repos","events_url":"https://api.github.com/users/Nexmo/events{/privacy}","received_events_url":"https://api.github.com/users/Nexmo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Nexmo/stitch-ios-quickstart","description":"A repository containing everything you need when getting started with the Nexmo Stitch API and the iOS SDKs","fork":false,"url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart","forks_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/forks","keys_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/teams","hooks_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/hooks","issue_events_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/issues/events{/number}","events_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/events","assignees_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/assignees{/user}","branches_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/branches{/branch}","tags_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/tags","blobs_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/git/refs{/sha}","trees_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/statuses/{sha}","languages_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/languages","stargazers_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/stargazers","contributors_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/contributors","subscribers_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/subscribers","subscription_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/subscription","commits_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/commits{/sha}","git_commits_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/git/commits{/sha}","comments_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/comments{/number}","issue_comment_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/issues/comments{/number}","contents_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/contents/{+path}","compare_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/merges","archive_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/downloads","issues_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/issues{/number}","pulls_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/pulls{/number}","milestones_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/milestones{/number}","notifications_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/labels{/name}","releases_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/releases{/id}","deployments_url":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/deployments","created_at":"2018-02-13T10:22:36Z","updated_at":"2018-06-04T15:57:37Z","pushed_at":"2018-06-05T18:14:40Z","git_url":"git://github.com/Nexmo/stitch-ios-quickstart.git","ssh_url":"git@github.com:Nexmo/stitch-ios-quickstart.git","clone_url":"https://github.com/Nexmo/stitch-ios-quickstart.git","svn_url":"https://github.com/Nexmo/stitch-ios-quickstart","homepage":"","size":11227,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/pulls/10"},"html":{"href":"https://github.com/Nexmo/stitch-ios-quickstart/pull/10"},"issue":{"href":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/issues/10"},"comments":{"href":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/Nexmo/stitch-ios-quickstart/statuses/8eb2ac99052cf517be131af14f9accf825bbad45"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"ericgiannini"}}