Files
m3o-go/examples/twitter/trends/getTheCurrentGlobalTrendingTopics.go
2021-10-29 10:44:29 +00:00

16 lines
309 B
Go
Executable File

package example
import (
"fmt"
"os"
"go.m3o.com/twitter"
)
// Get the current global trending topics
func GetTheCurrentGlobalTrendingTopics() {
twitterService := twitter.NewTwitterService(os.Getenv("M3O_API_TOKEN"))
rsp, err := twitterService.Trends(&twitter.TrendsRequest{})
fmt.Println(rsp, err)
}