Docmail API integration in PHP based on code sample