Create module to configure O365 tenants with graph api

I want to know how I can create ansible modules for configurations of O365 tenants requesting the graph api from microsoft graph api. Is that possible?