Using wordpress to access an external Rest API