Forum > General

Rapidapi (https://rapidapi.com/)

<< < (2/2)

alaa123456789:

--- Quote from: paweld on July 02, 2022, 08:01:31 pm ---
--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---uses  fphttpclient, fpopenssl, opensslsockets, httpprotocol; procedure TForm1.Button1Click(Sender: TObject);var  hc: TFPHttpClient;  api: String = 'https://youtube-dl4.p.rapidapi.com/';     //rapidapi youtube-dl  key: String = '***********************';                 //your rapidapi key  host: String = 'youtube-dl4.p.rapidapi.com';             //rapidapi youtube host  outjson: String = '';begin  hc := TFPHttpClient.Create(nil);  hc.AllowRedirect := True;  hc.AddHeader('X-RapidAPI-Key', key);  hc.AddHeader('X-RapidAPI-Host', host);  try    outjson := hc.Get(api + '?url=' + HTTPEncode('https://www.youtube.com/watch?v=lNK8EIoNJS8'));  finally    hc.Free;  end;end;
--- End quote ---

thanks paweld , will give it  a try

Navigation

[0] Message Index

[*] Previous page

Go to full version