How to connect MPU9265 to particle photon?

Hi everyone. im new with using particle photon and im working on a project involving a MPU9265. Im trying to use the MPU9265 to measure acceleration and when the acceleration value reaches over a certain number, a led will become high. Im not sure how to connect the MPU9265 to my photon and what libraries to use?