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 に突っ込んだりすればよい。

参考