def getUserConnections(self, userid = None, sid = None):
    if self.skey == None:
      raise AuthenticationError("Authentication Error; Message: This method requires access key and secret key authentication!")

    endpoint = __connectionsEndpoint__
    query = None
    if userid != None:
      endpoint = "%s/%s" % ( __connectionsEndpoint__, userid )
    elif sid != None:
      query = {'sid': sid}

    response = self.__getData__( endpoint, query, True )
    return response;
dataset/ETHPy150Open beebotte/bbt_python/beebotte/__init__.py/BBT.getUserConnections/original