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

Function SuggestedTopics

twitterv1/discover.go:280–295  ·  view source on GitHub ↗

https://web.archive.org/web/20120516160451/https://dev.twitter.com/docs/api/1/get/users/suggestions

(c *fiber.Ctx)

Source from the content-addressed store, hash-verified

278
279// https://web.archive.org/web/20120516160451/https://dev.twitter.com/docs/api/1/get/users/suggestions
280func SuggestedTopics(c *fiber.Ctx) error {
281 // I think this is hard coded in?
282 // It expects a size, but uhhh, it can be unlimited on bsky sooooo...
283 // It might be worth it later to get the config for this
284 // Also localization
285 suggestions := []bridge.TopicSuggestion{}
286
287 for slug, name := range topicLookup {
288 suggestions = append(suggestions, bridge.TopicSuggestion{
289 Name: name,
290 Slug: slug,
291 Size: 20,
292 })
293 }
294 return EncodeAndSend(c, suggestions)
295}
296
297// https://web.archive.org/web/20120516160741/https://dev.twitter.com/docs/api/1/get/users/suggestions/%3Aslug
298func GetTopicSuggestedUsers(c *fiber.Ctx) error {

Callers

nothing calls this directly

Calls 1

EncodeAndSendFunction · 0.85

Tested by

no test coverage detected