dose of one's own medicine

Being treated in the same way you treat others; something bad done to you as you have done bad to other people.
Jim was always playing tricks on other boys. Finally they decided to give him a dose of his own medicine.
Categories: noun

An client error occurred: Error calling GET https://www.googleapis.com/youtube/v3/search?part=id%2Csnippet&q=%22dose+of+one%27s+own+medicine%22&maxResults=4&videoEmbeddable=true&videoSyndicated=true&safeSearch=strict&type=video&key=AIzaSyCfLRuAZZNAQm6a5uDzgY-Tt668bxsppCs: (403) The request cannot be completed because you have exceeded your <a href="/youtube/v3/getting-started#quota">quota</a>.