How do I call rest API of magneto using PHP and which directory should I put PHP file and what url should I hit for call magneto API like retrieve all products list? How do I retrieve data from email using PHP Gmail API?