Files
services/examples/url/list/go/listYourShortenedUrls.go
2021-09-16 12:52:36 +01:00

15 lines
322 B
Go
Executable File

package example
import (
"fmt"
"github.com/micro/services/clients/go/url"
"os"
)
// List information on all the shortened URLs that you have created
func ListYourShortenedUrls() {
urlService := url.NewUrlService(os.Getenv("MICRO_API_TOKEN"))
rsp, err := urlService.List(&url.ListRequest{})
fmt.Println(rsp, err)
}