Update java example
Update ruby example
Update python example
Update php example