Support Center

Utilities API

Last Updated: Dec 27, 2013 03:22AM EST
utils.get_env
  • (no parameters required)
Returns environment information about your current browser connection:
{
   "remote_addr": "<your IP>",
   "location": {
         "country_code"   : "<country code like US>",
         "country_name"   : "<country name like United States>",
         "region"         : "<region/state like CA>",
         "city"           : "<city like San Francisco>"      
   },
   "date_time": "<YYYY-MM-DD HH:MM:SS>"
}



utils.upload
  • "file" or "url"
This API call is used to upload digital assets from a local computer or from an external address onto the WebForce servers. The idea of this call is to be used from a form submission (with a type="file" input field) where the name of the form field should be named as "file". Another option is with an AJAX call by specifying a URL to be downloaded onto the cluster of servers.

   "url": "a temporary URL that can be used in other API calls",
   "content_length": "<size of the digital asset>"
}



utils.get_da
  • auth_token
  • daid
Returns information about a digital asset on our servers
{
   "url": "<the URL of the digital asset>",
   "content_length": "<file size of the digital asset>"
}

Liquid error: undefined method `gsub' for nil:NilClass

assistly@premium-webhelp.com
http://assets0.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete