# Runs the MatterFirst sample integration against your firm. # # MATTERFIRST_URL=https://matterfirst.com \ # MATTERFIRST_API_KEY=mf_live_… \ # elixir run.exs # # Optionally set MATTERFIRST_WEBHOOK_URL to an https address you control to # register it for "matter.created". The key needs matters:read, matters:write, # matter_types:read, webhooks:read and webhooks:write. Mix.install([{:req, "~> 0.5"}, {:jason, "~> 1.4"}]) Code.require_file("matterfirst_sample.exs", __DIR__) MatterFirstSample.run( base_url: System.fetch_env!("MATTERFIRST_URL"), api_key: System.fetch_env!("MATTERFIRST_API_KEY"), webhook_url: System.get_env("MATTERFIRST_WEBHOOK_URL") )