Skip to content

PythonでFileMakerDataAPIにアクセス

Posted on:2019年7月2日 at 00:00

使用バージョン

python-fmrest インストール

pip install python-fmrest

APIアクセスして辞書型のデータ取得

    fms = fmrest.Server('https://hoge.filemaker-cloud.com',
                    user='user',
                    password='pwwwwwwwww',
                    database='database_name',
                    layout='layout',
                    verify_ssl=False)
    fms.login()
    items = fms.get_records(limit=1000)

    dict_item = item.to_dict()

verify_ssl は証明書が無効なら False 設定しておく。 あとは、ループ回すなりしてCSVに吐いたり、どこかにPOSTしたり、別のDBに突っ込んだりすればよい。

参考