def auth_client( self, sid, channel, resource = '*', ttl = 0, read = False, write = False ):
    r = 'false'
    w = 'false'
    if read:
      r = 'true'
    if write:
      w = 'true'
    stringToSign = "%s:%s.%s.:ttl=%s:read=%s:write=%s" % ( sid, channel, resource, ttl, r, w )
    return self.sign(stringToSign)
dataset/ETHPy150Open beebotte/bbt_python/beebotte/__init__.py/BBT.auth_client/original