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

16 lines
320 B
Go
Executable File

package example
import (
"fmt"
"os"
"github.com/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)
}