Files
m3o-go/examples/twitter/trends/getTheCurrentGlobalTrendingTopics/main.go
2021-12-09 15:06:12 +00:00

16 lines
277 B
Go
Executable File

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