mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-14 11:44:42 +00:00
16 lines
295 B
Go
Executable File
16 lines
295 B
Go
Executable File
package example
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"go.m3o.com/url"
|
|
)
|
|
|
|
// List information on all the shortened URLs that you have created
|
|
func ListYourShortenedUrls() {
|
|
urlService := url.NewUrlService(os.Getenv("M3O_API_TOKEN"))
|
|
rsp, err := urlService.List(&url.ListRequest{})
|
|
fmt.Println(rsp, err)
|
|
}
|