mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-13 11:35:26 +00:00
15 lines
322 B
Go
Executable File
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)
|
|
}
|