Files
m3o-go/examples/twitter/trends/getTheCurrentGlobalTrendingTopics/main.go
2021-11-03 15:36:34 +00:00

17 lines
278 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)
}