lib/twitter-instance.js
/**
 * Initialise Twitter client. If no parameters are passed, the client has
 * app-level authorisation, which can be used to start an oAuth authentication
 * process.
 *
 * See twitter-lite readme for implementation details
 * https://github.com/draftbit/twitter-lite#verifying-credentials-example-user-auth
 *
 * @param  {Object} appParams
 * @return {Twitter instance}
 */
Initialise Twitter client. If no parameters are passed, the client has
app-level authorisation, which can be used to start an oAuth authentication
process.



@param  {Object} appParams
@return {Twitter instance}
Initialise Twitter client . If no parameters are passed the client has app - level authorisation which can be used to start an oAuth authentication process . @param { Object } appParams @return { Twitter instance }
function initClient(appParams = {}) {
	if (client) return
	const options = Object.assign({}, APP_DEFAULTS, appParams)
	client = new Twitter(options)
}
function initClient ( appParams = { } ) { if ( client ) return const options = Object . assign ( { } , APP_DEFAULTS , appParams ) client = new Twitter ( options ) }
Initialise Twitter client.
Initialise Twitter client .