Greeen Leaf API integration into PHP