php sample: WaApiClient helper class