def get_transactions_json(self, include_investment=False,
                              skip_duplicates=False, start_date=None):

        # Warning: This is a global property for the user that we are changing.
        self.set_user_property('hide_duplicates',
                               'T' if skip_duplicates else 'F')

        # Converts the start date into datetime format - must be mm/dd/yy
        try:
            start_date = datetime.strptime(start_date, '%m/%d/%y')
        except:
            start_date = None

        all_txns = []
        offset = 0
        # Mint only returns some of the transactions at once.  To get all of
        # them, we have to keep asking for more until we reach the end.
        while 1:
            # Specifying accountId=0 causes Mint to return investment
            # transactions as well.  Otherwise they are skipped by
            # default.
            url = (
                'https://wwws.mint.com/getJsonData.xevent?' +
                'queryNew=&offset={offset}&comparableType=8&' +
                'rnd={rnd}&{query_options}').format(
                    offset=offset,
                    rnd=Mint.get_rnd(),
                    query_options=(
                        'accountId=0&task=transactions' if include_investment
                        else 'task=transactions,txnfilters&filterType=cash'))
            result = self.request_and_check(
                url, headers=self.json_headers,
                expected_content_type='application/json')
            data = json.loads(result.text)
            txns = data['set'][0].get('data', [])
            df = pd.DataFrame(txns)
            if start_date:
                dates = list(df['odate'])
                last_dt = self._dateconvert(dates[-1])
                if last_dt < start_date:
                    keep_txns = []
                    for item in txns:
                        if self._dateconvert(item['odate']) >= start_date:
                            keep_txns.append(item)
                    all_txns.extend(keep_txns)
                    break
            if not txns:
                break
            all_txns.extend(txns)
            offset += len(txns)
        return all_txns
Update the result field in VM database.
dataset/ETHPy150Open mrooney/mintapi/mintapi/api.py/Mint.get_transactions_json--crossover with--dataset/ETHPy150Open openstack/networking-cisco/networking_cisco/apps/saf/server/dfa_server.py/DfaServer.vm_result_update