Commit from m3o/m3o action

This commit is contained in:
m3o-actions
2021-12-11 20:27:08 +00:00
parent a411a0357f
commit f3af48b74a
19 changed files with 987 additions and 987 deletions

View File

@@ -6,7 +6,7 @@ Endpoints:
## List
List information on all the shortened URLs that you have created
List all the shortened URLs
[https://m3o.com/url/api#List](https://m3o.com/url/api#List)
@@ -21,7 +21,7 @@ import(
"go.m3o.com/url"
)
// List information on all the shortened URLs that you have created
// List all the shortened URLs
func ListYourShortenedUrls() {
urlService := url.NewUrlService(os.Getenv("M3O_API_TOKEN"))
rsp, err := urlService.List(&url.ListRequest{
@@ -33,7 +33,7 @@ func ListYourShortenedUrls() {
```
## Shorten
Shortens a destination URL and returns a full short URL.
Shorten a long URL
[https://m3o.com/url/api#Shorten](https://m3o.com/url/api#Shorten)
@@ -48,7 +48,7 @@ import(
"go.m3o.com/url"
)
// Shortens a destination URL and returns a full short URL.
// Shorten a long URL
func ShortenAlongUrl() {
urlService := url.NewUrlService(os.Getenv("M3O_API_TOKEN"))
rsp, err := urlService.Shorten(&url.ShortenRequest{

View File

@@ -7,7 +7,7 @@ import (
"go.m3o.com/url"
)
// List information on all the shortened URLs that you have created
// List all the shortened URLs
func main() {
urlService := url.NewUrlService(os.Getenv("M3O_API_TOKEN"))
rsp, err := urlService.List(&url.ListRequest{})

View File

@@ -7,7 +7,7 @@ import (
"go.m3o.com/url"
)
// Shortens a destination URL and returns a full short URL.
// Shorten a long URL
func main() {
urlService := url.NewUrlService(os.Getenv("M3O_API_TOKEN"))
rsp, err := urlService.Shorten(&url.ShortenRequest{})