Simple example static site connecting an imaginary chat web app to Tenor API. It uses KnockoutJS for the logic and the UI. JQuery is used to perform the Ajax requests.
You need an api key from Tenor. You can grab it here, and use it on "apiKey"
Just search for gifs with the term you write on the textbox. It provides infinite scrolling.