Class ContentLoader
- java.lang.Object
-
- All Implemented Interfaces:
IConfigurableObject
,INotScriptFriendly
,ISupportsDeprecation
,IDiffableObject
,IAvatar
,IEntityLifeCycleEvent
,IPersistable
,IServiceProvider
,ITaggableObject
,IDependencyScannableObject
,IEntityDefinition
,IPersistableObject<java.lang.String>
,IDesignTimeSecurable
,IDesignTimeSecurableEntity
,IRunTimeSecurable
,IRunTimeSecurableEntity
,ISecurable
,IVisibilitySecurable
,IVisibilitySecurableEntity
,IAspectContainer
,INamedObject
,java.io.Serializable
@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public class ContentLoader extends Resource
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.thingworx.entities.RootEntity
BASIC_PROPERTY_DEFINITIONS, EXCLUDED_ENTITY_TYPES_IN_PROJECT
-
Fields inherited from class com.thingworx.types.NamedObject
NAME_COMPARATOR
-
-
Constructor Summary
Constructors Constructor Description ContentLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
Delete(java.lang.String url, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Boolean withCookies, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme)
Service Category: Delete Service Description: Invoke an HTTP delete request on a URL.java.lang.String
GetCookies(java.lang.String url, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme)
Service Category: Cookies Service Description: Issue a URL call and get the returned cookies back.org.json.JSONObject
GetJSON(java.lang.String url, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Boolean withCookies, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme)
Service Category: JSON Service Description: Get json content from a URL.java.lang.String
GetText(java.lang.String url, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Boolean withCookies, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme, java.lang.Boolean appendHeader)
Service Category: Text Service Description: Get text content from a URL.org.w3c.dom.Document
GetXML(java.lang.String url, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Boolean withCookies, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme)
Service Category: XML Service Description: Get XML content from a URL.byte[]
LoadBinary(java.lang.String url, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme)
Service Category: Binary Service Description: Load binary content from a URL.byte[]
LoadImage(java.lang.String url, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme)
Service Category: Image Service Description: Load image content from a URL.org.json.JSONObject
LoadJSON(java.lang.String url, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Boolean withCookies, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme)
Service Category: JSON Service Description: Load JSON content from a URL.java.lang.String
LoadMediaEntity(java.lang.String name, java.lang.String description, TagCollection tags, java.lang.String url, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme)
Service Category: Image Service Description: Load an image via URL and create/update a media entity.java.lang.String
LoadText(java.lang.String url, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Boolean withCookies, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme, java.lang.Boolean appendHeader)
Service Category: Text Service Description: Load text content from a URL.org.w3c.dom.Document
LoadXML(java.lang.String url, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Boolean withCookies, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme)
Service Category: XML Service Description: Load XML Content from a URL.byte[]
PostBinary(java.lang.String url, byte[] content, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme)
Service Category: Binary Service Description: Load binary content from a URL via HTTP POST.byte[]
PostImage(java.lang.String url, byte[] content, java.lang.String mimeType, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme)
Service Category: Image Service Description: Load Image content from a URL via HTTP POST.org.json.JSONObject
PostJSON(java.lang.String url, org.json.JSONObject content, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Boolean withCookies, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme)
Service Category: JSON Service Description: Load JSON content from a URL via HTTP POST.org.json.JSONObject
PostMultipart(java.lang.String url, java.lang.String repository, java.lang.String pathOnRepository, java.lang.Object partsToSend, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme)
org.json.JSONObject
PostMultipart(java.lang.String url, java.lang.String repository, java.lang.String pathOnRepository, java.lang.Object partsToSend, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme, java.lang.Boolean useUTF8Encoding)
Service Category: Multipart Service Description: Multipart data upload from Thingworx to and external target via HTTP POST.java.lang.String
PostText(java.lang.String url, java.lang.String content, java.lang.String contentType, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Boolean withCookies, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme)
Service Category: Text Service Description: Load text content from a URL via HTTP POST.org.w3c.dom.Document
PostXML(java.lang.String url, org.w3c.dom.Document content, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Boolean withCookies, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme)
Service Category: XML Service Description: Load XML content from a URL via HTTP POST.byte[]
PutBinary(java.lang.String url, byte[] content, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme)
Service Category: Binary Service Description: Load binary content from a URL via HTTP PUT.org.json.JSONObject
PutJSON(java.lang.String url, org.json.JSONObject content, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Boolean withCookies, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme)
Service Category: JSON Service Description: Load JSON content from a URL via HTTP PUT.java.lang.String
PutText(java.lang.String url, java.lang.String content, java.lang.String contentType, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Boolean withCookies, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme)
Service Category: Text Service Description: Load text content from a URL via HTTP PUT.org.w3c.dom.Document
PutXML(java.lang.String url, org.w3c.dom.Document content, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Boolean withCookies, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme)
Service Category: XML Service Description: Load XML content from a URL via HTTP PUT.-
Methods inherited from class com.thingworx.resources.Resource
getEntityType
-
Methods inherited from class com.thingworx.entities.ServiceProviderEntity
getInstancePublicServiceDefinitions, getInstanceServiceDefinition, getInstanceServiceDefinitions, initializeEntity, preInitializeEntity, processAPIServiceRequest, processServiceRequest
-
Methods inherited from class com.thingworx.entities.RootEntity
AddConfigurationTableDefinition, AddConfigurationTableDefinition, addDesignTimePermission, AddDesignTimePermission, addRunTimePermission, AddRunTimePermission, AddTags, addVisibilityPermission, AddVisibilityPermission, CheckDesignTimePermission, CheckDesignTimePermissionForGroup, CheckDesignTimePermissionForUser, CheckPermission, CheckPermissionForGroup, CheckPermissionForUser, cleanupEntity, DeleteAllConfigurationTableRows, DeleteConfigurationTable, DeleteConfigurationTableRows, DeleteConfigurationTableRows, deleteDesignTimePermission, DeleteDesignTimePermission, deleteRunTimePermission, DeleteRunTimePermission, deleteVisibilityPermission, DeleteVisibilityPermission, dispose, getAspects, GetAvatar, getAvatarContent, GetAvatarURL, GetConfigurationChangeHistory, getConfigurationSetting, getConfigurationTable, GetConfigurationTable, GetConfigurationTableDefinition, GetConfigurationTableRow, GetConfigurationTables, GetDescription, getDesignTimePermissions, GetDesignTimePermissions, GetDesignTimePermissionsAsJSON, getDocumentationContent, getEntityTypeAsString, GetEventDefinition, GetEventDefinitions, GetHomeMashup, GetIncomingDependencies, GetIncomingDependenciesAsNetwork, GetInstanceMetadataAsJSON, GetInstanceMetadataWithPermissionsAsJSON, GetLastModifiedDate, GetMetadata, GetMetadataAsJSON, GetMetadataWithPermissionsAsJSON, GetOutgoingDependencies, GetOutgoingDependenciesAsNetwork, getOwner, GetOwner, GetPermissionsForCurrentUser, GetPermissionsForGroup, GetPermissionsForUser, GetProjectName, GetPropertyDefinition, GetPropertyDefinitions, getRunTimePermissions, GetRunTimePermissions, GetRunTimePermissionsAsJSON, GetServiceDefinition, GetServiceDefinitions, getStringConfigurationSetting, getStringConfigurationSettingWithDefault, GetSummaryInformation, getTags, GetTags, GetTagsAsInfoTable, getVisibilityPermissions, GetVisibilityPermissions, GetVisibilityPermissionsAsJSON, HasIncomingDependencies, HasOutgoingDependencies, isEditable, isEditableExtensionObject, isEditableSystemObject, isExtensionObject, IsMultiRowTable, isOwner, isSystemObject, isThemeObject, isVisible, isVisible, ListDeprecatedUsage, persistDesignTimePermissions, persistRunTimePermissions, persistVisibilityPermissions, RemoveTags, SaveConfigurationTables, SetAvatar, setConfigurationSetting, SetConfigurationTable, SetConfigurationTableRows, SetDescription, setDesignTimePermissions, SetDesignTimePermissionsAsJSON, setDocumentationContent, setExtensionObject, SetHomeMashup, setLastModifiedDate, SetMultiRowConfigurationTable, setOwner, SetOwner, SetProjectName, setRunTimePermissions, SetRunTimePermissionsAsJSON, setStringConfigurationSetting, SetTags, setVisibilityPermissions, SetVisibilityPermissionsAsJSON, toJSON, toJSONDefinition, UpdateProjectDependencies, validateConfiguration
-
Methods inherited from class com.thingworx.persistence.common.PersistableNamedObject
getID, hasID, isTransient
-
Methods inherited from class com.thingworx.types.NamedObject
getDescription, getName, setDescription, setName, toValueCollection
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.thingworx.types.INamedObject
getDescription, getName
-
Methods inherited from interface com.thingworx.entities.interfaces.IPersistable
getID, hasID
-
Methods inherited from interface com.thingworx.security.permissions.ISecurable
getID, getName
-
Methods inherited from interface com.thingworx.deprecation.ISupportsDeprecation
getDeprecated, isDeprecated, isDeprecatedBefore, since
-
-
-
-
Method Detail
-
GetCookies
@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String GetCookies(java.lang.String url, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme) throws java.lang.Exception
- Service Category:
- Cookies
- Service Description:
- Issue a URL call and get the returned cookies back.
- Parameters:
url
- URL to load - STRINGusername
- Optional user name credential - STRINGpassword
- Optional password credential - STRINGheaders
- Optional HTTP headers - JSONignoreSSLErrors
- Ignore SSL Certificate Errors - BOOLEANtimeout
- Optional timeout in seconds - NUMBERuseNTLM
- Use NTLM Authentication - BOOLEANworkstation
- Auth workstation - STRINGdomain
- Auth domain - STRINGuseProxy
- Use Proxy server - BOOLEANproxyHost
- Proxy host - STRINGproxyPort
- Proxy port - INTEGERproxyScheme
- Proxy scheme - STRING- Returns:
- result Cookies - STRING
- Throws:
java.lang.Exception
- If an error occurs
-
Delete
@ThingworxExtensionApiMethod(since={6,6}) public void Delete(java.lang.String url, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Boolean withCookies, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme) throws java.lang.Exception
- Service Category:
- Delete
- Service Description:
- Invoke an HTTP delete request on a URL.
- Parameters:
url
- URL to load - STRINGusername
- Optional user name credential - STRINGpassword
- Optional password credential - STRINGheaders
- Optional HTTP headers - JSONignoreSSLErrors
- Ignore SSL Certificate Errors - BOOLEANwithCookies
- Include cookies in response - BOOLEANtimeout
- Optional timeout in seconds - NUMBERuseNTLM
- Use NTLM Authentication - BOOLEANworkstation
- Auth workstation - STRINGdomain
- Auth domain - STRINGuseProxy
- Use Proxy server - BOOLEANproxyHost
- Proxy host - STRINGproxyPort
- Proxy port - INTEGERproxyScheme
- Proxy scheme - STRING- Throws:
java.lang.Exception
- If an error occurs
-
GetText
@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String GetText(java.lang.String url, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Boolean withCookies, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme, java.lang.Boolean appendHeader) throws java.lang.Exception
- Service Category:
- Text
- Service Description:
- Get text content from a URL.
- Parameters:
url
- URL to load - STRINGusername
- Optional user name credential - STRINGpassword
- Optional password credential - STRINGheaders
- Optional HTTP headers - JSONignoreSSLErrors
- Ignore SSL Certificate Errors - BOOLEANwithCookies
- Include cookies in response - BOOLEANtimeout
- Optional timeout in seconds - NUMBERuseNTLM
- Use NTLM Authentication - BOOLEANworkstation
- Auth workstation - STRINGdomain
- Auth domain - STRINGuseProxy
- Use Proxy server - BOOLEANproxyHost
- Proxy host - STRINGproxyPort
- Proxy port - INTEGERproxyScheme
- Proxy scheme - STRINGappendHeader
- Append header in response; optional: default value is true - BOOLEAN- Returns:
- result Loaded content as text content - STRING
- Throws:
java.lang.Exception
- If an error occurs
-
GetXML
@ThingworxExtensionApiMethod(since={6,6}) public org.w3c.dom.Document GetXML(java.lang.String url, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Boolean withCookies, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme) throws java.lang.Exception
- Service Category:
- XML
- Service Description:
- Get XML content from a URL.
- Parameters:
url
- URL to load - STRINGusername
- Optional user name credential - STRINGpassword
- Optional password credential - STRINGheaders
- Optional HTTP headers - JSONignoreSSLErrors
- Ignore SSL Certificate Errors - BOOLEANwithCookies
- Include cookies in response - BOOLEANtimeout
- Optional timeout in seconds - NUMBERuseNTLM
- Use NTLM Authentication - BOOLEANworkstation
- Auth workstation - STRINGdomain
- Auth domain - STRINGuseProxy
- Use Proxy server - BOOLEANproxyHost
- Proxy host - STRINGproxyPort
- Proxy port - INTEGERproxyScheme
- Proxy scheme - STRING- Returns:
- result Loaded content as text content - XML
- Throws:
java.lang.Exception
- If an error occurs
-
GetJSON
@ThingworxExtensionApiMethod(since={6,6}) public org.json.JSONObject GetJSON(java.lang.String url, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Boolean withCookies, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme) throws java.lang.Exception
- Service Category:
- JSON
- Service Description:
- Get json content from a URL.
- Parameters:
url
- URL to load - STRINGusername
- Optional user name credential - STRINGpassword
- Optional password credential - STRINGheaders
- Optional HTTP headers - JSONignoreSSLErrors
- Ignore SSL Certificate Errors - BOOLEANwithCookies
- Include cookies in response - BOOLEANtimeout
- Optional timeout in seconds - NUMBERuseNTLM
- Use NTLM Authentication - BOOLEANworkstation
- Auth workstation - STRINGdomain
- Auth domain - STRINGuseProxy
- Use Proxy server - BOOLEANproxyHost
- Proxy host - STRINGproxyPort
- Proxy port - INTEGERproxyScheme
- Proxy scheme - STRING- Returns:
- result Loaded content as text content - JSON
- Throws:
java.lang.Exception
- If an error occurs
-
LoadXML
@ThingworxExtensionApiMethod(since={6,6}) public org.w3c.dom.Document LoadXML(java.lang.String url, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Boolean withCookies, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme) throws java.lang.Exception
- Service Category:
- XML
- Service Description:
- Load XML Content from a URL.
- Parameters:
url
- URL to load - STRINGusername
- Optional user name credential - STRINGpassword
- Optional password credential - STRINGheaders
- Optional HTTP headers - JSONignoreSSLErrors
- Ignore SSL Certificate Errors - BOOLEANwithCookies
- Include cookies in response - BOOLEANtimeout
- Optional timeout in seconds - NUMBERuseNTLM
- Use NTLM Authentication - BOOLEANworkstation
- Auth workstation - STRINGdomain
- Auth domain - STRINGuseProxy
- Use Proxy server - BOOLEANproxyHost
- Proxy host - STRINGproxyPort
- Proxy port - INTEGERproxyScheme
- Proxy scheme - STRING- Returns:
- result Loaded content as XML document - XML
- Throws:
java.lang.Exception
- If an error occurs
Additional Information:
If the parsing of the header fails, an exception is logged and the request execution continues. If the client code, which is expecting the header, has an exception (because the parsing of the header object previously failed), you can debug and find the header parsing errors in the logs.
-
LoadText
@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String LoadText(java.lang.String url, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Boolean withCookies, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme, java.lang.Boolean appendHeader) throws java.lang.Exception
- Service Category:
- Text
- Service Description:
- Load text content from a URL.
- Parameters:
url
- URL to load - STRINGusername
- Optional user name credential - STRINGpassword
- Optional password credential - STRINGheaders
- Optional HTTP headers - JSONignoreSSLErrors
- Ignore SSL Certificate Errors - BOOLEANwithCookies
- Include cookies in response - BOOLEANtimeout
- Optional timeout in seconds - NUMBERuseNTLM
- Use NTLM Authentication - BOOLEANworkstation
- Auth workstation - STRINGdomain
- Auth domain - STRINGuseProxy
- Use Proxy server - BOOLEANproxyHost
- Proxy host - STRINGproxyPort
- Proxy port - INTEGERproxyScheme
- Proxy scheme - STRINGappendHeader
- Append header in response; optional: default value is true - BOOLEAN- Returns:
- result Loaded content as text content - STRING
- Throws:
java.lang.Exception
- If an error occurs
Additional Information:
If the parsing of the header fails, an exception is logged and the request execution continues. If the client code, which is expecting the header, has an exception (because the parsing of the header object previously failed), you can debug and find the header parsing errors in the logs.
-
LoadImage
@ThingworxExtensionApiMethod(since={6,6}) public byte[] LoadImage(java.lang.String url, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme) throws java.lang.Exception
- Service Category:
- Image
- Service Description:
- Load image content from a URL.
- Parameters:
url
- URL to load - STRINGusername
- Optional user name credential - STRINGpassword
- Optional password credential - STRINGheaders
- Optional HTTP headers - JSONignoreSSLErrors
- Ignore SSL Certificate Errors - BOOLEANtimeout
- Optional timeout in seconds - NUMBERuseNTLM
- Use NTLM Authentication - BOOLEANworkstation
- Auth workstation - STRINGdomain
- Auth domain - STRINGuseProxy
- Use Proxy server - BOOLEANproxyHost
- Proxy host - STRINGproxyPort
- Proxy port - INTEGERproxyScheme
- Proxy scheme - STRING- Returns:
- result Loaded content as an image primitive - IMAGE
- Throws:
java.lang.Exception
- If an error occurs
-
LoadBinary
@ThingworxExtensionApiMethod(since={6,6}) public byte[] LoadBinary(java.lang.String url, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme) throws java.lang.Exception
- Service Category:
- Binary
- Service Description:
- Load binary content from a URL.
- Parameters:
url
- URL to load - STRINGusername
- Optional user name credential - STRINGpassword
- Optional password credential - STRINGheaders
- Optional HTTP headers - JSONignoreSSLErrors
- Ignore SSL Certificate Errors - BOOLEANtimeout
- Optional timeout in seconds - NUMBERuseNTLM
- Use NTLM Authentication - BOOLEANworkstation
- Auth workstation - STRINGdomain
- Auth domain - STRINGuseProxy
- Use Proxy server - BOOLEANproxyHost
- Proxy host - STRINGproxyPort
- Proxy port - INTEGERproxyScheme
- Proxy scheme - STRING- Returns:
- result Loaded content as an blob/binary primitive - BLOB
- Throws:
java.lang.Exception
- If an error occurs
-
LoadJSON
@ThingworxExtensionApiMethod(since={6,6}) public org.json.JSONObject LoadJSON(java.lang.String url, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Boolean withCookies, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme) throws java.lang.Exception
- Service Category:
- JSON
- Service Description:
- Load JSON content from a URL.
- Parameters:
url
- URL to load - STRINGusername
- Optional user name credential - STRINGpassword
- Optional password credential - STRINGheaders
- Optional HTTP headers - JSONignoreSSLErrors
- Ignore SSL Certificate Errors - BOOLEANwithCookies
- Include cookies in response - BOOLEANtimeout
- Optional timeout in seconds - NUMBERuseNTLM
- Use NTLM Authentication - BOOLEANworkstation
- Auth workstation - STRINGdomain
- Auth domain - STRINGuseProxy
- Use Proxy server - BOOLEANproxyHost
- Proxy host - STRINGproxyPort
- Proxy port - INTEGERproxyScheme
- Proxy scheme - STRING- Returns:
- result Loaded content as a JSON Object - JSON
- Throws:
java.lang.Exception
- If an error occurs
Additional Information:
If the parsing of the header fails, an exception is logged and the request execution continues. If the client code, which is expecting the header, has an exception (because the parsing of the header object previously failed), you can debug and find the header parsing errors in the logs.
-
PostText
@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String PostText(java.lang.String url, java.lang.String content, java.lang.String contentType, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Boolean withCookies, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme) throws java.lang.Exception
- Service Category:
- Text
- Service Description:
- Load text content from a URL via HTTP POST.
- Parameters:
url
- URL to load - STRINGcontent
- Posted content as string - STRINGcontentType
- Posted content type as string - STRINGusername
- Optional user name credential - STRINGpassword
- Optional password credential - STRINGheaders
- Optional HTTP headers - JSONignoreSSLErrors
- Ignore SSL Certificate Errors - BOOLEANwithCookies
- Include cookies in response - BOOLEANtimeout
- Optional timeout in seconds - NUMBERuseNTLM
- Use NTLM Authentication - BOOLEANworkstation
- Auth workstation - STRINGdomain
- Auth domain - STRINGuseProxy
- Use Proxy server - BOOLEANproxyHost
- Proxy host - STRINGproxyPort
- Proxy port - INTEGERproxyScheme
- Proxy scheme - STRING- Returns:
- result Loaded content as string - STRING
- Throws:
java.lang.Exception
- If an error occurs
Additional Information:
If the parsing of the header fails, an exception is logged and the request execution continues. If the client code, which is expecting the header, has an exception (because the parsing of the header object previously failed), you can debug and find the header parsing errors in the logs.
-
PostMultipart
@ThingworxExtensionApiMethod(since={7,2,1}) public org.json.JSONObject PostMultipart(java.lang.String url, java.lang.String repository, java.lang.String pathOnRepository, java.lang.Object partsToSend, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme) throws java.lang.Exception
- Parameters:
url
- URL to load - STRINGrepository
- Repository to get file from to upload - STRINGpathOnRepository
- Path on repository to file - STRINGpartsToSend
- Infotable where each field is a part to send - INFOTABLEusername
- Optional user name credential - STRINGpassword
- Optional password credential - STRINGheaders
- Optional HTTP headers - JSONignoreSSLErrors
- Ignore SSL Certificate Errors - BOOLEANtimeout
- Optional timeout in seconds - NUMBERuseNTLM
- Use NTLM Authentication - BOOLEANworkstation
- Auth workstation - STRINGdomain
- Auth domain - STRINGuseProxy
- Use Proxy server - BOOLEANproxyHost
- Proxy host - STRINGproxyPort
- Proxy port - INTEGERproxyScheme
- Proxy scheme - STRING- Throws:
java.lang.Exception
- If an error occurs
-
PostMultipart
@ThingworxExtensionApiMethod(since={9,4,4}) public org.json.JSONObject PostMultipart(java.lang.String url, java.lang.String repository, java.lang.String pathOnRepository, java.lang.Object partsToSend, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme, java.lang.Boolean useUTF8Encoding) throws java.lang.Exception
- Service Category:
- Multipart
- Service Description:
- Multipart data upload from Thingworx to and external target via HTTP POST.
- Parameters:
url
- URL to load - STRINGrepository
- Repository to get file from to upload - STRINGpathOnRepository
- Path on repository to file - STRINGpartsToSend
- Infotable where each field is a part to send - INFOTABLEusername
- Optional user name credential - STRINGpassword
- Optional password credential - STRINGheaders
- Optional HTTP headers - JSONignoreSSLErrors
- Ignore SSL Certificate Errors - BOOLEANtimeout
- Optional timeout in seconds - NUMBERuseNTLM
- Use NTLM Authentication - BOOLEANworkstation
- Auth workstation - STRINGdomain
- Auth domain - STRINGuseProxy
- Use Proxy server - BOOLEANproxyHost
- Proxy host - STRINGproxyPort
- Proxy port - INTEGERproxyScheme
- Proxy scheme - STRINGuseUTF8Encoding
- Supports with UTF8 characters - BOOLEAN- Returns:
- result Response as JSON Object - JSON
- Throws:
java.lang.Exception
- If an error occurs
-
PostImage
@ThingworxExtensionApiMethod(since={6,6}) public byte[] PostImage(java.lang.String url, byte[] content, java.lang.String mimeType, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme) throws java.lang.Exception
- Service Category:
- Image
- Service Description:
- Load Image content from a URL via HTTP POST.
- Parameters:
url
- URL to load - STRINGcontent
- Posted content as image - IMAGEmimeType
- Mime Type - STRINGusername
- Optional user name credential - STRINGpassword
- Optional password credential - STRINGheaders
- Optional HTTP headers - JSONignoreSSLErrors
- Ignore SSL Certificate Errors - BOOLEANtimeout
- Optional timeout in seconds - NUMBERuseNTLM
- Use NTLM Authentication - BOOLEANworkstation
- Auth workstation - STRINGdomain
- Auth domain - STRINGuseProxy
- Use Proxy server - BOOLEANproxyHost
- Proxy host - STRINGproxyPort
- Proxy port - INTEGERproxyScheme
- Proxy scheme - STRING- Returns:
- result Loaded content as BLOB Object - BLOB
- Throws:
java.lang.Exception
- If an error occurs
-
PostBinary
@ThingworxExtensionApiMethod(since={6,6}) public byte[] PostBinary(java.lang.String url, byte[] content, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme) throws java.lang.Exception
- Service Category:
- Binary
- Service Description:
- Load binary content from a URL via HTTP POST.
- Parameters:
url
- URL to load - STRINGcontent
- Posted content as image - BLOBusername
- Optional user name credential - STRINGpassword
- Optional password credential - STRINGheaders
- Optional HTTP headers - JSONignoreSSLErrors
- Ignore SSL Certificate Errors - BOOLEANtimeout
- Optional timeout in seconds - NUMBERuseNTLM
- Use NTLM Authentication - BOOLEANworkstation
- Auth workstation - STRINGdomain
- Auth domain - STRINGuseProxy
- Use Proxy server - BOOLEANproxyHost
- Proxy host - STRINGproxyPort
- Proxy port - INTEGERproxyScheme
- Proxy scheme - STRING- Returns:
- result Loaded content as BLOB Object - BLOB
- Throws:
java.lang.Exception
- If an error occurs
-
PostJSON
@ThingworxExtensionApiMethod(since={6,6}) public org.json.JSONObject PostJSON(java.lang.String url, org.json.JSONObject content, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Boolean withCookies, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme) throws java.lang.Exception
- Service Category:
- JSON
- Service Description:
- Load JSON content from a URL via HTTP POST.
- Parameters:
url
- URL to load - STRINGcontent
- Posted content as JSON object - JSONusername
- Optional user name credential - STRINGpassword
- Optional password credential - STRINGheaders
- Optional HTTP headers - JSONignoreSSLErrors
- Ignore SSL Certificate Errors - BOOLEANwithCookies
- Include cookies in response - BOOLEANtimeout
- Optional timeout in seconds - NUMBERuseNTLM
- Use NTLM Authentication - BOOLEANworkstation
- Auth workstation - STRINGdomain
- Auth domain - STRINGuseProxy
- Use Proxy server - BOOLEANproxyHost
- Proxy host - STRINGproxyPort
- Proxy port - INTEGERproxyScheme
- Proxy scheme - STRING- Returns:
- result Loaded content as JSON Object - JSON
- Throws:
java.lang.Exception
- If an error occurs
Additional Information:
If the parsing of the header fails, an exception is logged and the request execution continues. If the client code, which is expecting the header, has an exception (because the parsing of the header object previously failed), you can debug and find the header parsing errors in the logs.
-
PostXML
@ThingworxExtensionApiMethod(since={6,6}) public org.w3c.dom.Document PostXML(java.lang.String url, org.w3c.dom.Document content, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Boolean withCookies, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme) throws java.lang.Exception
- Service Category:
- XML
- Service Description:
- Load XML content from a URL via HTTP POST.
- Parameters:
url
- URL to load - STRINGcontent
- Posted content as XML document. The xml content must start with an xml declaration, ie <?xml version="1.0" encoding="UTF-8"?> - XMLusername
- Optional user name credential - STRINGpassword
- Optional password credential - STRINGheaders
- Optional HTTP headers - JSONignoreSSLErrors
- Ignore SSL Certificate Errors - BOOLEANwithCookies
- Include cookies in response - BOOLEANtimeout
- Optional timeout in seconds - NUMBERuseNTLM
- Use NTLM Authentication - BOOLEANworkstation
- Auth workstation - STRINGdomain
- Auth domain - STRINGuseProxy
- Use Proxy server - BOOLEANproxyHost
- Proxy host - STRINGproxyPort
- Proxy port - INTEGERproxyScheme
- Proxy scheme - STRING- Returns:
- result Loaded content as XML document - XML
- Throws:
java.lang.Exception
- If an error occurs
Additional Information:
If the parsing of the header fails, an exception is logged and the request execution continues. If the client code, which is expecting the header, has an exception (because the parsing of the header object previously failed), you can debug and find the header parsing errors in the logs.
-
PutJSON
@ThingworxExtensionApiMethod(since={6,6}) public org.json.JSONObject PutJSON(java.lang.String url, org.json.JSONObject content, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Boolean withCookies, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme) throws java.lang.Exception
- Service Category:
- JSON
- Service Description:
- Load JSON content from a URL via HTTP PUT.
- Parameters:
url
- URL to load - STRINGcontent
- Posted content as JSON object - JSONusername
- Optional user name credential - STRINGpassword
- Optional password credential - STRINGheaders
- Optional HTTP headers - JSONignoreSSLErrors
- Ignore SSL Certificate Errors - BOOLEANwithCookies
- Include cookies in response - BOOLEANtimeout
- Optional timeout in seconds - NUMBERuseNTLM
- Use NTLM Authentication - BOOLEANworkstation
- Auth workstation - STRINGdomain
- Auth domain - STRINGuseProxy
- Use Proxy server - BOOLEANproxyHost
- Proxy host - STRINGproxyPort
- Proxy port - INTEGERproxyScheme
- Proxy scheme - STRING- Returns:
- result Loaded content as JSON Object - JSON
- Throws:
java.lang.Exception
- If an error occurs
Additional Information:
If the parsing of the header fails, an exception is logged and the request execution continues. If the client code, which is expecting the header, has an exception (because the parsing of the header object previously failed), you can debug and find the header parsing errors in the logs.
-
PutBinary
@ThingworxExtensionApiMethod(since={6,6}) public byte[] PutBinary(java.lang.String url, byte[] content, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme) throws java.lang.Exception
- Service Category:
- Binary
- Service Description:
- Load binary content from a URL via HTTP PUT.
- Parameters:
url
- URL to load - STRINGcontent
- Posted content as image - BLOBusername
- Optional user name credential - STRINGpassword
- Optional password credential - STRINGheaders
- Optional HTTP headers - JSONignoreSSLErrors
- Ignore SSL Certificate Errors - BOOLEANtimeout
- Optional timeout in seconds - NUMBERuseNTLM
- Use NTLM Authentication - BOOLEANworkstation
- Auth workstation - STRINGdomain
- Auth domain - STRINGuseProxy
- Use Proxy server - BOOLEANproxyHost
- Proxy host - STRINGproxyPort
- Proxy port - INTEGERproxyScheme
- Proxy scheme - STRING- Returns:
- result Loaded content as BLOB Object - BLOB
- Throws:
java.lang.Exception
- If an error occurs
-
PutText
@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String PutText(java.lang.String url, java.lang.String content, java.lang.String contentType, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Boolean withCookies, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme) throws java.lang.Exception
- Service Category:
- Text
- Service Description:
- Load text content from a URL via HTTP PUT.
- Parameters:
url
- URL to load - STRINGcontent
- Posted content as string - STRINGcontentType
- Posted content type as string - STRINGusername
- Optional user name credential - STRINGpassword
- Optional password credential - STRINGheaders
- Optional HTTP headers - JSONignoreSSLErrors
- Ignore SSL Certificate Errors - BOOLEANwithCookies
- Include cookies in response - BOOLEANtimeout
- Optional timeout in seconds - NUMBERuseNTLM
- Use NTLM Authentication - BOOLEANworkstation
- Auth workstation - STRINGdomain
- Auth domain - STRINGuseProxy
- Use Proxy server - BOOLEANproxyHost
- Proxy host - STRINGproxyPort
- Proxy port - INTEGERproxyScheme
- Proxy scheme - STRING- Returns:
- result Loaded content as a string - STRING
- Throws:
java.lang.Exception
- If an error occurs
Additional Information:
If the parsing of the header fails, an exception is logged and the request execution continues. If the client code, which is expecting the header, has an exception (because the parsing of the header object previously failed), you can debug and find the header parsing errors in the logs.
-
PutXML
@ThingworxExtensionApiMethod(since={6,6}) public org.w3c.dom.Document PutXML(java.lang.String url, org.w3c.dom.Document content, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Boolean withCookies, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme) throws java.lang.Exception
- Service Category:
- XML
- Service Description:
- Load XML content from a URL via HTTP PUT.
- Parameters:
url
- URL to load - STRINGcontent
- Posted content as XML document - XMLusername
- Optional user name credential - STRINGpassword
- Optional password credential - STRINGheaders
- Optional HTTP headers - JSONignoreSSLErrors
- Ignore SSL Certificate Errors - BOOLEANwithCookies
- Include cookies in response - BOOLEANtimeout
- Optional timeout in seconds - NUMBERuseNTLM
- Use NTLM Authentication - BOOLEANworkstation
- Auth workstation - STRINGdomain
- Auth domain - STRINGuseProxy
- Use Proxy server - BOOLEANproxyHost
- Proxy host - STRINGproxyPort
- Proxy port - INTEGERproxyScheme
- Proxy scheme - STRING- Returns:
- result Loaded content as XML document - XML
- Throws:
java.lang.Exception
- If an error occurs
Additional Information:
If the parsing of the header fails, an exception is logged and the request execution continues. If the client code, which is expecting the header, has an exception (because the parsing of the header object previously failed), you can debug and find the header parsing errors in the logs.
-
LoadMediaEntity
@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String LoadMediaEntity(java.lang.String name, java.lang.String description, TagCollection tags, java.lang.String url, java.lang.String username, java.lang.String password, org.json.JSONObject headers, java.lang.Boolean ignoreSSLErrors, java.lang.Double timeout, java.lang.Boolean useNTLM, java.lang.String workstation, java.lang.String domain, java.lang.Boolean useProxy, java.lang.String proxyHost, java.lang.Integer proxyPort, java.lang.String proxyScheme) throws java.lang.Exception
- Service Category:
- Image
- Service Description:
- Load an image via URL and create/update a media entity.
- Parameters:
name
- Name of the media entity to save or update - STRINGdescription
- Description for the media entity to save - STRINGtags
- Tags for the media entity to save - TAGSurl
- URL to load an image - STRINGusername
- Optional user name credential - STRINGpassword
- Optional password credential - STRINGheaders
- Optional HTTP headers - JSONignoreSSLErrors
- Ignore SSL Certificate Errors - BOOLEANtimeout
- Optional timeout in seconds - NUMBERuseNTLM
- Use NTLM Authentication - BOOLEANworkstation
- Auth workstation - STRINGdomain
- Auth domain - STRINGuseProxy
- Use Proxy server - BOOLEANproxyHost
- Proxy host - STRINGproxyPort
- Proxy port - INTEGERproxyScheme
- Proxy scheme - STRING- Returns:
- result Loaded content as image - IMAGELINK
- Throws:
java.lang.Exception
- If an error occurs
-
-