_getDT
Gathers the IDs and Names of a chosen number of Marketing Sources, can also skip a number of entries before retrieving results.
Parameters
draw
A number which is echoed back to the caller. Useful for avoiding race conditions.
start
The number of entries skipped before the function starts retrieving Sources
length
The number of entries returned, if the "start" parameter is higher than 0, skipped entries are not included.
Examples
For this example: start = 0, length = 10
FM_api(
'MarketingSources_getDT',[
'draw' => 1,
'start' => 0,
'length' => 10
]
);
Result:
{
"data":[
["7","Test SourceA",""],
["8","Test SourceB",""],
["10","Test SourceC",""],
["11","Test SourceE",""],
["12","Test SourceD",""]
],
"draw":1,"recordsTotal":"5","recordsFiltered":"5"
}
For this example: start = 1, length = 1
FM_api(
'MarketingSources_getDT',[
'draw' => 2,
'start' => 1,
'length' => 1
]
);
Result:
{
"data":[
["8","Test SourceB",""]
],
"draw":2,"recordsTotal":"5","recordsFiltered":"5"
}
On Failure
If the "draw" parameter is not set
{"error":"missing or invalid parameter: draw"}
Last updated