Spectrum and waveform as coordinate pairs
Deprecated
POST
/GetFFT
const url = 'https://api.eianalytic.com/ApiWeb.svc/GetFFT';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"machinecode":1,"fileid":1,"Token":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.eianalytic.com/ApiWeb.svc/GetFFT \ --header 'Content-Type: application/json' \ --data '{ "machinecode": 1, "fileid": 1, "Token": "example" }'Deprecated — use GetFFT_Base64.
Returns two matrices: the first is the waveform, the second the
spectrum. In each, X and Y have the same length.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
machinecode
required
integer
fileid
required
File id, from GetHistoryMeasures.
integer
Token
required
The database token returned by Login. Sent in the request body, not
in a header.
string
Examplegenerated
{ "machinecode": 1, "fileid": 1, "Token": "example"}Responses
Section titled “Responses”Waveform first, spectrum second.
Media typeapplication/json
Array<object>
object
Key
The Key half of every response envelope.
object
StatusNumber
required
0 means OK. See the Conventions page for the full table.
integer
Description
required
string
Configs
Present on some responses; empty in the documented examples.
Array<object>
object
Value
Array<object>
One series as coordinate pairs. X and Y are the same length.
object
X
Array<number>
Y
Array<number>
Example
[ { "Key": { "StatusNumber": 0, "Description": "OK" } }]