add youtube embed endpoint

This commit is contained in:
Asim Aslam
2021-12-10 11:28:00 +00:00
parent 13dd1af1d4
commit 7d3bc9a5b2
4 changed files with 105 additions and 84 deletions

View File

@@ -16,12 +16,14 @@ message EmbedRequest {
}
message EmbedResponse {
// the full url
string long_url = 1;
// the short url
string short_url = 2;
// the embeddable link e.g https://www.youtube.com/watch?v=GWRWZu7XsJ0
string link = 1;
string embed_url = 3;
// the script code
string script = 2;
// the short link
string short_url = 3;
string html_script = 4;
}
message SearchResult {