youtube embed

This commit is contained in:
Asim Aslam
2021-12-10 11:07:11 +00:00
parent d5fa802db2
commit 13dd1af1d4
4 changed files with 283 additions and 52 deletions

View File

@@ -6,6 +6,22 @@ option go_package = "./proto;youtube";
service Youtube {
rpc Search(SearchRequest) returns (SearchResponse) {}
rpc Embed(EmbedRequest) returns (EmbedResponse) {}
}
// Embed a YouTube video
message EmbedRequest {
// provide the youtube url e.g https://www.youtube.com/watch?v=GWRWZu7XsJ0
string url = 1;
}
message EmbedResponse {
// the embeddable link e.g https://www.youtube.com/watch?v=GWRWZu7XsJ0
string link = 1;
// the script code
string script = 2;
// the short link
string short_url = 3;
}
message SearchResult {