{"action":"created","comment":{"url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/pulls/comments/244699442","pull_request_review_id":188631711,"id":244699442,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0NDY5OTQ0Mg==","diff_hunk":"@@ -37,8 +37,7 @@ class MicrophoneAdvancedViewController: UIViewController {\n \n         // use `SpeechToTextSession` for advanced configuration\n         session = SpeechToTextSession(\n-            username: Credentials.SpeechToTextUsername,\n-            password: Credentials.SpeechToTextPassword\n+            apiKey: Credentials.SpeechToTextApiKey","path":"Speech to Text/MicrophoneAdvancedViewController.swift","position":6,"original_position":6,"commit_id":"b26dffd711c63b9bd004b53674dd13f8c741bcd1","original_commit_id":"b26dffd711c63b9bd004b53674dd13f8c741bcd1","user":{"login":"maggix","id":101451,"node_id":"MDQ6VXNlcjEwMTQ1MQ==","avatar_url":"https://avatars3.githubusercontent.com/u/101451?v=4","gravatar_id":"","url":"https://api.github.com/users/maggix","html_url":"https://github.com/maggix","followers_url":"https://api.github.com/users/maggix/followers","following_url":"https://api.github.com/users/maggix/following{/other_user}","gists_url":"https://api.github.com/users/maggix/gists{/gist_id}","starred_url":"https://api.github.com/users/maggix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maggix/subscriptions","organizations_url":"https://api.github.com/users/maggix/orgs","repos_url":"https://api.github.com/users/maggix/repos","events_url":"https://api.github.com/users/maggix/events{/privacy}","received_events_url":"https://api.github.com/users/maggix/received_events","type":"User","site_admin":false},"body":"Hi @germanattanasio, my reply comes a bit late because I have tested over and over again and if I initialize the `SpeechToTextSession` (in `MicrophoneAdvancedViewController.swift`) using username and password (using `apikey` as username), the transcription session does not work (although using `apikey` as username works for all the other APIs, such as SpeechToText). \r\n\r\nIt works if I use the following on my iPhone 7+ running iOS 12.1.1 : \r\n\r\n```\r\nsession = SpeechToTextSession(\r\n            apiKey: \"<the api key>\"\r\n        )\r\n```\r\n\r\nThat's the reason why I moved the authentication to using `apiKey` only, as I suspect the method accepting username and password has some issues. \r\n\r\nPlease let me know if you find the time to verify, or perhaps it's worth filing a issue report to https://github.com/watson-developer-cloud/swift-sdk ?","created_at":"2019-01-02T10:17:50Z","updated_at":"2019-01-02T10:17:50Z","html_url":"https://github.com/watson-developer-cloud/speech-to-text-swift/pull/19#discussion_r244699442","pull_request_url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/pulls/19","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/pulls/comments/244699442"},"html":{"href":"https://github.com/watson-developer-cloud/speech-to-text-swift/pull/19#discussion_r244699442"},"pull_request":{"href":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/pulls/19"}},"in_reply_to_id":243613421},"pull_request":{"url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/pulls/19","id":240402803,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQwNDAyODAz","html_url":"https://github.com/watson-developer-cloud/speech-to-text-swift/pull/19","diff_url":"https://github.com/watson-developer-cloud/speech-to-text-swift/pull/19.diff","patch_url":"https://github.com/watson-developer-cloud/speech-to-text-swift/pull/19.patch","issue_url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/issues/19","number":19,"state":"open","locked":false,"title":"Updates to support Watson developer cloud swift-sdk 1.1.0","user":{"login":"maggix","id":101451,"node_id":"MDQ6VXNlcjEwMTQ1MQ==","avatar_url":"https://avatars3.githubusercontent.com/u/101451?v=4","gravatar_id":"","url":"https://api.github.com/users/maggix","html_url":"https://github.com/maggix","followers_url":"https://api.github.com/users/maggix/followers","following_url":"https://api.github.com/users/maggix/following{/other_user}","gists_url":"https://api.github.com/users/maggix/gists{/gist_id}","starred_url":"https://api.github.com/users/maggix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maggix/subscriptions","organizations_url":"https://api.github.com/users/maggix/orgs","repos_url":"https://api.github.com/users/maggix/repos","events_url":"https://api.github.com/users/maggix/events{/privacy}","received_events_url":"https://api.github.com/users/maggix/received_events","type":"User","site_admin":false},"body":"Fixes #18 \r\n","created_at":"2018-12-21T08:23:40Z","updated_at":"2019-01-02T10:17:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f19378bb2f4890bbef312e793883c2524c6ba7a3","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/pulls/19/commits","review_comments_url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/pulls/19/comments","review_comment_url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/pulls/comments{/number}","comments_url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/issues/19/comments","statuses_url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/statuses/b26dffd711c63b9bd004b53674dd13f8c741bcd1","head":{"label":"maggix:master","ref":"master","sha":"b26dffd711c63b9bd004b53674dd13f8c741bcd1","user":{"login":"maggix","id":101451,"node_id":"MDQ6VXNlcjEwMTQ1MQ==","avatar_url":"https://avatars3.githubusercontent.com/u/101451?v=4","gravatar_id":"","url":"https://api.github.com/users/maggix","html_url":"https://github.com/maggix","followers_url":"https://api.github.com/users/maggix/followers","following_url":"https://api.github.com/users/maggix/following{/other_user}","gists_url":"https://api.github.com/users/maggix/gists{/gist_id}","starred_url":"https://api.github.com/users/maggix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maggix/subscriptions","organizations_url":"https://api.github.com/users/maggix/orgs","repos_url":"https://api.github.com/users/maggix/repos","events_url":"https://api.github.com/users/maggix/events{/privacy}","received_events_url":"https://api.github.com/users/maggix/received_events","type":"User","site_admin":false},"repo":{"id":162360465,"node_id":"MDEwOlJlcG9zaXRvcnkxNjIzNjA0NjU=","name":"speech-to-text-swift","full_name":"maggix/speech-to-text-swift","private":false,"owner":{"login":"maggix","id":101451,"node_id":"MDQ6VXNlcjEwMTQ1MQ==","avatar_url":"https://avatars3.githubusercontent.com/u/101451?v=4","gravatar_id":"","url":"https://api.github.com/users/maggix","html_url":"https://github.com/maggix","followers_url":"https://api.github.com/users/maggix/followers","following_url":"https://api.github.com/users/maggix/following{/other_user}","gists_url":"https://api.github.com/users/maggix/gists{/gist_id}","starred_url":"https://api.github.com/users/maggix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maggix/subscriptions","organizations_url":"https://api.github.com/users/maggix/orgs","repos_url":"https://api.github.com/users/maggix/repos","events_url":"https://api.github.com/users/maggix/events{/privacy}","received_events_url":"https://api.github.com/users/maggix/received_events","type":"User","site_admin":false},"html_url":"https://github.com/maggix/speech-to-text-swift","description":"An iOS application to demonstrate Speech to Text with the Watson Developer Cloud iOS SDK.","fork":true,"url":"https://api.github.com/repos/maggix/speech-to-text-swift","forks_url":"https://api.github.com/repos/maggix/speech-to-text-swift/forks","keys_url":"https://api.github.com/repos/maggix/speech-to-text-swift/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maggix/speech-to-text-swift/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maggix/speech-to-text-swift/teams","hooks_url":"https://api.github.com/repos/maggix/speech-to-text-swift/hooks","issue_events_url":"https://api.github.com/repos/maggix/speech-to-text-swift/issues/events{/number}","events_url":"https://api.github.com/repos/maggix/speech-to-text-swift/events","assignees_url":"https://api.github.com/repos/maggix/speech-to-text-swift/assignees{/user}","branches_url":"https://api.github.com/repos/maggix/speech-to-text-swift/branches{/branch}","tags_url":"https://api.github.com/repos/maggix/speech-to-text-swift/tags","blobs_url":"https://api.github.com/repos/maggix/speech-to-text-swift/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maggix/speech-to-text-swift/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maggix/speech-to-text-swift/git/refs{/sha}","trees_url":"https://api.github.com/repos/maggix/speech-to-text-swift/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maggix/speech-to-text-swift/statuses/{sha}","languages_url":"https://api.github.com/repos/maggix/speech-to-text-swift/languages","stargazers_url":"https://api.github.com/repos/maggix/speech-to-text-swift/stargazers","contributors_url":"https://api.github.com/repos/maggix/speech-to-text-swift/contributors","subscribers_url":"https://api.github.com/repos/maggix/speech-to-text-swift/subscribers","subscription_url":"https://api.github.com/repos/maggix/speech-to-text-swift/subscription","commits_url":"https://api.github.com/repos/maggix/speech-to-text-swift/commits{/sha}","git_commits_url":"https://api.github.com/repos/maggix/speech-to-text-swift/git/commits{/sha}","comments_url":"https://api.github.com/repos/maggix/speech-to-text-swift/comments{/number}","issue_comment_url":"https://api.github.com/repos/maggix/speech-to-text-swift/issues/comments{/number}","contents_url":"https://api.github.com/repos/maggix/speech-to-text-swift/contents/{+path}","compare_url":"https://api.github.com/repos/maggix/speech-to-text-swift/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maggix/speech-to-text-swift/merges","archive_url":"https://api.github.com/repos/maggix/speech-to-text-swift/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maggix/speech-to-text-swift/downloads","issues_url":"https://api.github.com/repos/maggix/speech-to-text-swift/issues{/number}","pulls_url":"https://api.github.com/repos/maggix/speech-to-text-swift/pulls{/number}","milestones_url":"https://api.github.com/repos/maggix/speech-to-text-swift/milestones{/number}","notifications_url":"https://api.github.com/repos/maggix/speech-to-text-swift/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maggix/speech-to-text-swift/labels{/name}","releases_url":"https://api.github.com/repos/maggix/speech-to-text-swift/releases{/id}","deployments_url":"https://api.github.com/repos/maggix/speech-to-text-swift/deployments","created_at":"2018-12-19T00:18:31Z","updated_at":"2018-12-20T23:04:24Z","pushed_at":"2018-12-20T23:04:22Z","git_url":"git://github.com/maggix/speech-to-text-swift.git","ssh_url":"git@github.com:maggix/speech-to-text-swift.git","clone_url":"https://github.com/maggix/speech-to-text-swift.git","svn_url":"https://github.com/maggix/speech-to-text-swift","homepage":null,"size":534,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"watson-developer-cloud:master","ref":"master","sha":"4f7a65443a76139effead7e0fbb9b978d9e16be7","user":{"login":"watson-developer-cloud","id":10017763,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMDE3NzYz","avatar_url":"https://avatars2.githubusercontent.com/u/10017763?v=4","gravatar_id":"","url":"https://api.github.com/users/watson-developer-cloud","html_url":"https://github.com/watson-developer-cloud","followers_url":"https://api.github.com/users/watson-developer-cloud/followers","following_url":"https://api.github.com/users/watson-developer-cloud/following{/other_user}","gists_url":"https://api.github.com/users/watson-developer-cloud/gists{/gist_id}","starred_url":"https://api.github.com/users/watson-developer-cloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/watson-developer-cloud/subscriptions","organizations_url":"https://api.github.com/users/watson-developer-cloud/orgs","repos_url":"https://api.github.com/users/watson-developer-cloud/repos","events_url":"https://api.github.com/users/watson-developer-cloud/events{/privacy}","received_events_url":"https://api.github.com/users/watson-developer-cloud/received_events","type":"Organization","site_admin":false},"repo":{"id":68215626,"node_id":"MDEwOlJlcG9zaXRvcnk2ODIxNTYyNg==","name":"speech-to-text-swift","full_name":"watson-developer-cloud/speech-to-text-swift","private":false,"owner":{"login":"watson-developer-cloud","id":10017763,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMDE3NzYz","avatar_url":"https://avatars2.githubusercontent.com/u/10017763?v=4","gravatar_id":"","url":"https://api.github.com/users/watson-developer-cloud","html_url":"https://github.com/watson-developer-cloud","followers_url":"https://api.github.com/users/watson-developer-cloud/followers","following_url":"https://api.github.com/users/watson-developer-cloud/following{/other_user}","gists_url":"https://api.github.com/users/watson-developer-cloud/gists{/gist_id}","starred_url":"https://api.github.com/users/watson-developer-cloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/watson-developer-cloud/subscriptions","organizations_url":"https://api.github.com/users/watson-developer-cloud/orgs","repos_url":"https://api.github.com/users/watson-developer-cloud/repos","events_url":"https://api.github.com/users/watson-developer-cloud/events{/privacy}","received_events_url":"https://api.github.com/users/watson-developer-cloud/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/watson-developer-cloud/speech-to-text-swift","description":"An iOS application to demonstrate Speech to Text with the Watson Developer Cloud iOS SDK.","fork":false,"url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift","forks_url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/forks","keys_url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/keys{/key_id}","collaborators_url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/teams","hooks_url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/hooks","issue_events_url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/issues/events{/number}","events_url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/events","assignees_url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/assignees{/user}","branches_url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/branches{/branch}","tags_url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/tags","blobs_url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/git/refs{/sha}","trees_url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/git/trees{/sha}","statuses_url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/statuses/{sha}","languages_url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/languages","stargazers_url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/stargazers","contributors_url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/contributors","subscribers_url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/subscribers","subscription_url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/subscription","commits_url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/commits{/sha}","git_commits_url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/git/commits{/sha}","comments_url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/comments{/number}","issue_comment_url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/issues/comments{/number}","contents_url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/contents/{+path}","compare_url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/compare/{base}...{head}","merges_url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/merges","archive_url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/downloads","issues_url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/issues{/number}","pulls_url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/pulls{/number}","milestones_url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/milestones{/number}","notifications_url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/labels{/name}","releases_url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/releases{/id}","deployments_url":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/deployments","created_at":"2016-09-14T14:54:52Z","updated_at":"2018-12-27T09:04:26Z","pushed_at":"2018-12-21T08:23:41Z","git_url":"git://github.com/watson-developer-cloud/speech-to-text-swift.git","ssh_url":"git@github.com:watson-developer-cloud/speech-to-text-swift.git","clone_url":"https://github.com/watson-developer-cloud/speech-to-text-swift.git","svn_url":"https://github.com/watson-developer-cloud/speech-to-text-swift","homepage":null,"size":529,"stargazers_count":28,"watchers_count":28,"language":"Swift","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":17,"open_issues":2,"watchers":28,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/pulls/19"},"html":{"href":"https://github.com/watson-developer-cloud/speech-to-text-swift/pull/19"},"issue":{"href":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/issues/19"},"comments":{"href":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/watson-developer-cloud/speech-to-text-swift/statuses/b26dffd711c63b9bd004b53674dd13f8c741bcd1"}},"author_association":"NONE"}}
{"actor":{"display_login":"maggix"}}