Encoding URL Parts
If you use the params
section of the config, @pixiebrix/get
brick will automatically URL encode the values you provide.
Many RESTful APIs however vary the URL path for resources. In these cases, you must manually encode the value to avoid problems with spaces and special characters
Currently, the best way to do this is using the nunjucks template engine support. For the variable, use the urlencode
filter followed by a safe
filter. The safe
filter prevents additional escaping. For more information on these nunjucks filters, see the nunjucks filter documentation
Last updated