mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-14 03:34:49 +00:00
16 lines
320 B
Go
Executable File
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)
|
|
}
|