MCPcopy Create free account
hub / github.com/Preloading/TwitterAPIBridge / SearchAhead

Struct SearchAhead

bridge/bridge.go:505–515  ·  view source on GitHub ↗

Search Ahead https://web.archive.org/web/20220427214446/https://twitter.com/i/search/typeahead.json?count=20&filters=true&result_type=true&src=COMPOSE&q=firat_ber

Source from the content-addressed store, hash-verified

503// Search Ahead
504// https://web.archive.org/web/20220427214446/https://twitter.com/i/search/typeahead.json?count=20&filters=true&result_type=true&src=COMPOSE&q=firat_ber
505type SearchAhead struct {
506 NumberOfResults int `json:"num_results" xml:"num_results"`
507 Users []SummarisedUser `json:"users" xml:"users"`
508 Topics []string `json:"topics" xml:"topics"` // unimplemented
509 Events []string `json:"events" xml:"events"` // unimplemented
510 Lists []string `json:"lists" xml:"lists"` // unimplemented, and i don't think you can search lists (least w/o clearsky)
511 Oneclick []string `json:"oneclick" xml:"oneclick"` // unimplemented and clueless as to what this is.
512 Hashtags []string `json:"hashtags" xml:"hashtags"` // unimplemented
513 CompletedIn float64 `json:"completed_in" xml:"completed_in"`
514 Query string `json:"query" xml:"query"`
515}
516
517type SummarisedUser struct {
518 XMLName xml.Name `xml:"user" json:"-"`

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected