mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-22 23:35:26 +00:00
add search to twitter
This commit is contained in:
@@ -6,6 +6,7 @@ option go_package = "./proto;twitter";
|
||||
|
||||
service Twitter {
|
||||
rpc Timeline(TimelineRequest) returns (TimelineResponse) {}
|
||||
rpc Search(SearchRequest) returns (SearchResponse) {}
|
||||
}
|
||||
|
||||
message Tweet {
|
||||
@@ -35,3 +36,16 @@ message TimelineResponse {
|
||||
// The recent tweets for the user
|
||||
repeated Tweet tweets = 1;
|
||||
}
|
||||
|
||||
// Search for tweets with a simple query
|
||||
message SearchRequest {
|
||||
// the query to search for
|
||||
string query = 1;
|
||||
// number of tweets to return. default: 20
|
||||
int32 limit = 2;
|
||||
}
|
||||
|
||||
message SearchResponse {
|
||||
// the related tweets for the search
|
||||
repeated Tweet tweets = 2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user