{"action":"created","issue":{"url":"https://api.github.com/repos/alexa/alexa-skills-kit-sdk-for-nodejs/issues/233","repository_url":"https://api.github.com/repos/alexa/alexa-skills-kit-sdk-for-nodejs","labels_url":"https://api.github.com/repos/alexa/alexa-skills-kit-sdk-for-nodejs/issues/233/labels{/name}","comments_url":"https://api.github.com/repos/alexa/alexa-skills-kit-sdk-for-nodejs/issues/233/comments","events_url":"https://api.github.com/repos/alexa/alexa-skills-kit-sdk-for-nodejs/issues/233/events","html_url":"https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs/issues/233","id":278902332,"number":233,"title":"Just start learning coding again, but still don't  Understand some of the code.","user":{"login":"25kcdiez","id":33472629,"avatar_url":"https://avatars3.githubusercontent.com/u/33472629?v=4","gravatar_id":"","url":"https://api.github.com/users/25kcdiez","html_url":"https://github.com/25kcdiez","followers_url":"https://api.github.com/users/25kcdiez/followers","following_url":"https://api.github.com/users/25kcdiez/following{/other_user}","gists_url":"https://api.github.com/users/25kcdiez/gists{/gist_id}","starred_url":"https://api.github.com/users/25kcdiez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/25kcdiez/subscriptions","organizations_url":"https://api.github.com/users/25kcdiez/orgs","repos_url":"https://api.github.com/users/25kcdiez/repos","events_url":"https://api.github.com/users/25kcdiez/events{/privacy}","received_events_url":"https://api.github.com/users/25kcdiez/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-12-04T07:51:19Z","updated_at":"2017-12-12T23:24:23Z","closed_at":null,"author_association":"NONE","body":"onIntent: function (intentRequest, session, response) {\r\n      var intent = intentRequest.intent,\r\n        intentName = intentRequest.intent.name,\r\n        intentHandler = this.intentHandlers[intentName];\r\n    if (intentHandler) {\r\n\r\n        console.log('dispatch intent = ' + intentName);       //the 'dispatch intent ='\r\n\r\n        intentHandler.call(this, intent, session, response);//and the call \r\n    } else {\r\n        throw 'Unsupported intent = ' + intentName;\r\n    }\r\n},\r\n\r\n\r\n> \r\n\r\nAlexaSkill.prototype.intentHandlers = {};\r\n\r\nAlexaSkill.prototype.execute = function (event, context) {\r\n    try {\r\n        console.log(\"session applicationId: \" + event.session.application.applicationId);\r\n\r\n        // Validate that this request originated from authorized source.\r\n        if (this._appId && event.session.application.applicationId !== this._appId) {\r\n            console.log(\"The applicationIds don't match : \" + event.session.application.applicationId + \" and \"\r\n                + this._appId); // also it is the same code every time?\r\n            throw \"Invalid applicationId\";\r\n        }\r\n\r\n        if (!event.session.attributes) {\r\n            event.session.attributes = {};\r\n        }\r\n\r\n        if (event.session.new) {\r\n            this.eventHandlers.onSessionStarted(event.request, event.session);\r\n        }\r\n\r\n        // Route the request to the proper handler which may have been overriden.\r\n        var requestHandler = this.requestHandlers[event.request.type];\r\n        requestHandler.call(this, event, context, new Response(context, event.session));\r\n    } catch (e) {\r\n        console.log(\"Unexpected exception \" + e);\r\n        context.fail(e);\r\n    }\r\n\r\n> };\r\n"},"comment":{"url":"https://api.github.com/repos/alexa/alexa-skills-kit-sdk-for-nodejs/issues/comments/351228744","html_url":"https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs/issues/233#issuecomment-351228744","issue_url":"https://api.github.com/repos/alexa/alexa-skills-kit-sdk-for-nodejs/issues/233","id":351228744,"user":{"login":"Amazon-tianrenz","id":26489817,"avatar_url":"https://avatars3.githubusercontent.com/u/26489817?v=4","gravatar_id":"","url":"https://api.github.com/users/Amazon-tianrenz","html_url":"https://github.com/Amazon-tianrenz","followers_url":"https://api.github.com/users/Amazon-tianrenz/followers","following_url":"https://api.github.com/users/Amazon-tianrenz/following{/other_user}","gists_url":"https://api.github.com/users/Amazon-tianrenz/gists{/gist_id}","starred_url":"https://api.github.com/users/Amazon-tianrenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Amazon-tianrenz/subscriptions","organizations_url":"https://api.github.com/users/Amazon-tianrenz/orgs","repos_url":"https://api.github.com/users/Amazon-tianrenz/repos","events_url":"https://api.github.com/users/Amazon-tianrenz/events{/privacy}","received_events_url":"https://api.github.com/users/Amazon-tianrenz/received_events","type":"User","site_admin":false},"created_at":"2017-12-12T23:24:23Z","updated_at":"2017-12-12T23:24:23Z","author_association":"CONTRIBUTOR","body":"Hi @25kcdiez, \r\nIs there a specific part that you need help with?"}}
{"actor":{"display_login":"Amazon-tianrenz"}}