mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-23 15:11:36 +00:00
Commit from m3o/m3o action
This commit is contained in:
4
curl/url/list/listYourShortenedUrls.sh
Executable file
4
curl/url/list/listYourShortenedUrls.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/url/List" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $M3O_API_TOKEN" \
|
||||
-d '{}'
|
||||
6
curl/url/proxy/resolveAShortUrlToALongDestinationUrl.sh
Executable file
6
curl/url/proxy/resolveAShortUrlToALongDestinationUrl.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
curl "https://api.m3o.com/v1/url/Proxy" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $M3O_API_TOKEN" \
|
||||
-d '{
|
||||
"shortURL": "https://m3o.one/u/ck6SGVkYp"
|
||||
}'
|
||||
6
curl/url/shorten/shortenALongUrl.sh
Executable file
6
curl/url/shorten/shortenALongUrl.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
curl "https://api.m3o.com/v1/url/Shorten" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $M3O_API_TOKEN" \
|
||||
-d '{
|
||||
"destinationURL": "https://mysite.com/this-is-a-rather-long-web-address"
|
||||
}'
|
||||
Reference in New Issue
Block a user