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