transform

POSTALL,EAI/SetAccountLicenses

IN THIS PAGE

Arguments

licenseKeysCharacter

A CRLF delimited list of license keys to set for an Account

Returns

resultJSON Object

Returns an object with these properties:

errorboolean

true if there was an error

errorTextstring
resultobject
countLicensesAdded

count of the number of license keys added to the account

Description

Set the license keys for a TransForm account.

CURL 

CURL --insecure -H "apikey:Your_api_key" -H "content-type: application/json" -H "accept: application/json" -d "{"""licenseKeys""":value_of_licenseKeys}" "https://transform.alphasoftware.com/transformAPIVersion1.a5svc/SetAccountLicenses"

Node 

var request = require('request')
var path = 'https://transform.alphasoftware.com/transformAPIVersion1.a5svc/SetAccountLicenses';
var data = {"licenseKeys": "value_of_licenseKeys"};
var dataJSON = JSON.stringify(data)
request.post(
	{
		headers: {apikey: "Your_api_key"},   
		url: path, 
		form: dataJSON}, 
		function(err,httpResponse,body){
			if(err) console.log(err)
			console.log(body)
	}
)

Xbasic 

dim apikey as c = "Your_api_key"
dim postdata as c
postdata = <<%txt%
{
    "licenseKeys": "value_of_licenseKeys"
}

%txt%

dim url as c = "/SetAccountLicenses"
dim pr as p
pr = a5dialogHelper_transformAPIQuery(url,postdata,apikey)
if pr.error = .f. then
	dim result as c 
	result = pr.result
else
	dim errorText as c 
	errorText = pr.errorText
end if