{"action":"opened","issue":{"url":"https://api.github.com/repos/twilio/twilio-node/issues/301","repository_url":"https://api.github.com/repos/twilio/twilio-node","labels_url":"https://api.github.com/repos/twilio/twilio-node/issues/301/labels{/name}","comments_url":"https://api.github.com/repos/twilio/twilio-node/issues/301/comments","events_url":"https://api.github.com/repos/twilio/twilio-node/issues/301/events","html_url":"https://github.com/twilio/twilio-node/issues/301","id":271180315,"number":301,"title":"Update documention for initialization","user":{"login":"TheAschr","id":10580515,"avatar_url":"https://avatars1.githubusercontent.com/u/10580515?v=4","gravatar_id":"","url":"https://api.github.com/users/TheAschr","html_url":"https://github.com/TheAschr","followers_url":"https://api.github.com/users/TheAschr/followers","following_url":"https://api.github.com/users/TheAschr/following{/other_user}","gists_url":"https://api.github.com/users/TheAschr/gists{/gist_id}","starred_url":"https://api.github.com/users/TheAschr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheAschr/subscriptions","organizations_url":"https://api.github.com/users/TheAschr/orgs","repos_url":"https://api.github.com/users/TheAschr/repos","events_url":"https://api.github.com/users/TheAschr/events{/privacy}","received_events_url":"https://api.github.com/users/TheAschr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-04T09:53:53Z","updated_at":"2017-11-04T09:53:53Z","closed_at":null,"author_association":"NONE","body":"*Note: These issues are for bugs and feature requests for the helper libraries.\r\nIf you need help or support, please email help@twilio.com and one of our experts\r\nwill assist you!*\r\n\r\nAm I correct in assuming to create a new Twilio object when you don't have a username or password and you aren't using process.env to set them you have to pass null as first two parameters?\r\n\r\n**Version:**\r\n\r\n### Code Snippet\r\n```node\r\n# paste code here\r\nfunction Twilio(username, password, opts) {\r\n  opts = opts || {};\r\n  var env = opts.env || process.env;\r\n\r\n  this.username = username || env.TWILIO_ACCOUNT_SID;\r\n  this.password = password || env.TWILIO_AUTH_TOKEN;\r\n  this.accountSid = opts.accountSid || this.username;\r\n  this.httpClient = opts.httpClient || new RequestClient();\r\n  this.region = opts.region;\r\n\r\n  if (!this.username) {\r\n    throw new Error('username is required');\r\n  }\r\n\r\n  if (!this.password) {\r\n    throw new Error('password is required');\r\n  }\r\n\r\n  if (!_.startsWith(this.accountSid, 'AC')) {\r\n    throw new Error('accountSid is required');\r\n  }\r\n\r\n  // Domains\r\n  this._accounts = undefined;\r\n  this._api = undefined;\r\n  this._chat = undefined;\r\n  this._fax = undefined;\r\n  this._ipMessaging = undefined;\r\n  this._lookups = undefined;\r\n  this._monitor = undefined;\r\n  this._notify = undefined;\r\n  this._preview = undefined;\r\n  this._pricing = undefined;\r\n  this._proxy = undefined;\r\n  this._taskrouter = undefined;\r\n  this._trunking = undefined;\r\n  this._video = undefined;\r\n  this._messaging = undefined;\r\n  this._wireless = undefined;\r\n  this._sync = undefined;\r\n}\r\n\r\n### Exception/Log\r\n```\r\n<place exception/log here>\r\n```\r\n\r\n### Steps to Reproduce\r\n1.\r\n2.\r\n3.\r\n\r\n\r\n### Feature Request\r\n_If this is a feature request, make sure you search Issues for an existing\r\nrequest before creating a new one!_"}}
{"actor":{"display_login":"TheAschr"}}