shortURL
. These outputs are automatically created Magic Text outputs for the returned data. You can customize these outputs by clicking on them to change their name or type, or you can delete an output if you don't need it. Once done, click Save Custom Action.https://api.m3o.com/v1/{service}/{endpoint}
. This is our Base URL. Paste this into your Custom Action's API Base URL field.{service}
and {endpoint}
portions of the link with the service and endpoint we want to use. The Micro documentation for the url
service tells us that the endpoint for shortening URLs is called shorten
. So our Base URL now looks like this: https://api.m3o.com/v1/url/shorten
.-H
) named Authorization
with your key as the value. For our Custom Action, click +Add Item under the Headers and Queries section, then choose HeaderdestinationURL
. In the JSON Body field of the Custom Action, paste in the Request code snippet from Micro documentation: {
"destinationURL": "https://mysite.com/this-is-a-rather-long-web-address"
}
{
"days": 3,
"location": "St. Louis"
}
https://mysite.com/this...
in quotes with the "URL to be Shortened" Input we created.shortURL
. These outputs are automatically created Magic Text outputs for the returned data. You can customize these outputs by clicking on them to change their name or type, or you can delete an output if you don't need it. Once done, click Save Custom Action.