integrate get and post event types in agent in client