Develop an API utilizing a Class equipped with two distinct methods. The initial method is designed to record and store a user's PING (timestamp). Subsequently, the second method facilitates retrieving the PING of a user within a specified time range and partition.
Check out your Company Bowl for anonymous work chats.