Commit from GitHub Actions (Publish APIs & Clients)

This commit is contained in:
crufter
2021-09-16 11:56:07 +00:00
parent d4d9c1c176
commit 83ae3b6f39
12 changed files with 313 additions and 6 deletions

View File

@@ -0,0 +1,17 @@
package example
import (
"fmt"
"github.com/micro/services/clients/go/twitter"
"os"
)
// Get the timeline for a given user
func GetAtwitterTimeline() {
twitterService := twitter.NewTwitterService(os.Getenv("MICRO_API_TOKEN"))
rsp, err := twitterService.Timeline(&twitter.TimelineRequest{
Limit: 1,
Username: "m3oservices",
})
fmt.Println(rsp, err)
}