nl_tokens: Foscam Client SDK
pl_tokens: function Foscam ( config ) { if ( ! config ) { throw <mask> Error ( 'no config was supplied' ) ; } this . username = config . username ; this . password = config . password ; this . address = config . host ; this . port = config . port || 88 ; this . protocol = config . protocol || 'http' ; this . rejectUnauthorizedCerts = 'rejectUnauthorizedCerts' in config ? config . rejectUnauthorizedCerts : true ; this . baseUrl = this . protocol + '://' + this . address + ':' + this . port ; this . url = this . baseUrl + '/cgi-bin/CGIProxy.fcgi' ; this . streamUrl = this . baseUrl + '/cgi-bin/CGIStream.cgi' ; this . rpClient = rp . defaults ( { rejectUnauthorized : this . rejectUnauthorizedCerts , qs : { usr : this . username , pwd : this . password } } ) ; }