mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-13 03:25:32 +00:00
15 lines
336 B
Go
Executable File
15 lines
336 B
Go
Executable File
package example
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/micro/services/clients/go/twitter"
|
|
"os"
|
|
)
|
|
|
|
// Get the current global trending topics
|
|
func GetTheCurrentGlobalTrendingTopics() {
|
|
twitterService := twitter.NewTwitterService(os.Getenv("MICRO_API_TOKEN"))
|
|
rsp, err := twitterService.Trends(&twitter.TrendsRequest{})
|
|
fmt.Println(rsp, err)
|
|
}
|