Documentation

bizproc.provider.add

bizproc.provider.add registers new SMS-provider in a workflow.

Parameters

Parameter Description
CODE Internal provider ID.
Permissible symbols a-z, A-Z, 0-9, period, hyphen and underscore.
TYPE Type of provider.
HANDLER URL of the application, to which the data will be sent.
NAME Name of provider. Can be a string or an associative array of localized strings.
DESCRIPTION Description of provider. Can be a string or an associative array of localized strings.

Example

		var params = {
			CODE: 'provider1',
			TYPE: 'SMS',
			HANDLER: 'http:///',
			NAME: 'Provider SMS.com',
			DESCRIPTION: 'Provider SMS.com'
		};

		BX24.callMethod(
			'bizproc.provider.add',
			params,
			function(result)
			{
				if(result.error())
					alert("Error: " + result.error());
				else
					alert("Success: " + result.data());
			}
		);

© «Bitrix24», 2001-2024
Up