Api Example in PHP