Logo Text Blaze

  • Docs
  • Community
  • Documentation

    Loading...

    Community Forums

    Loading...
Add to Chrome –  It's Free! Go to Dashboard ›
Commands

{urlsend}

Summary: Sends a message to a URL when a snippet is inserted
Sample Usage
...we will deliver {formtext: name=count} widgets.

{note}Sends a message to acme.com/log_delivery with the widget count when this snippet is inserted{endnote}

{urlsend: https://example.com/log_delivery?widgets={=count}}
_

Settings


Setting NameTypeDescription
General URL Settings
_urlThe URL to request. Fox example, https://example.com/page
methodGET/POST/...The HTTP method used to make the request. Defaults to GET.
bodytextThe body of the request.
headersKey/Value ListA list of headers. For example, Content-Type=text/json,Authorization=Basic 12345
General Command Settings
trimyes/no/left/rightIf yes whitespace is removed before and after the command. If left, only whitespace to the left is removed. If right, only whitespace to the right is removed.
urlsend is a Connected Snippet command. Connected Snippets are advanced commands currently in Beta. They may change in the future.

The urlsend command allows you to send a message to a server when a snippet is inserted. This can be used for logging snippet usage, or even saving the variables that were used in a snippet.

The command's first positional setting is the URL you want to send data to.

You also have access to settings like method, body, and headers so you can specify the data you want to send.

If the URL contains characters that have special significance in Text Blaze commands, they must be escaped with backslashes. Notably {, }, \ and ; should be escaped by placing a single \ before them.

For example, { would become \{ and \ would become \\.

See the Escaping Special Characters section of the Formula Blaze Reference page to learn more.

You can develop your own server application to collect and store data from the urlsend command.

As a simpler and free approach, we have found that Google Forms works well to collect data. See this example.

See also the {urlload} command for loading data from a server into your snippet.

Sharing connected snippets with others

When sharing snippets with others, snippets containing the urlsend command may only be shared with members of your Text Blaze Business organization.

  • Guides
    • Quick Start
    • Sharing Snippet Folders
    • Dynamic Commands
    • Date and Time
    • Autopilot
    • Forms
    • Tidying Whitespace
    • Lists
    • Teams and Organizations
  • Tutorial Videos
  • Showcase
  • Frequently Asked Questions
  • Formula Reference
  • Dynamic Commands
    • Using Dynamic Commands
    • {=} (Formula Command)
    • {click}
    • {clipboard}
    • {cursor}
    • {error}
    • {formdate}
    • {formmenu}
    • {formparagraph}
    • {formtext}
    • {formtoggle}
    • {if}
    • {import}
    • {key}
    • {link}
    • {note}
    • {repeat}
    • {site}
    • {snippet}
    • {time}
    • {user}
    • {wait}
  • Connected Snippets
    • Connected Snippets Overview
    • {image}
    • {urlload}
    • {urlsend}
    • {dbselect}
    • {dbinsert}
    • {dbupdate}
    • {dbdelete}
  • Command Packs
    • Capitalize
    • Gmail
    • LinkedIn
    • Randomize

About

Plans and Pricing
Sharing Snippets
Text Blaze for Business
Forms
Autopilot
Dynamic Commands
Command Packs

Support

Get Started with Text Blaze
Contact Us
Documentation
Community Forum
Blog

Solution for

Teams
Customer Support
Recruiters
Education
Healthcare
Sales
Property Managers

Other

Privacy Policy
Terms of Service
Open Source Licenses
Affiliate
© 2023 Blaze Today Inc