Be a Supporter!

Newgrounds Wiki: result

Contains information returned by an API component.

Properties:

component - string
The name of the component that was executed (ie 'Medal.unlock').

data - object / array<object>
An object, or array of one-or-more objects (follows the structure of the corresponding 'call' property), containing any returned properties or errors.

echo - mixed
If you passed an 'echo' value in your call object, it will be echoed here.



Notes:
The 'data' object will always contain a 'success' property. If the call was unsuccessful, there will also be an 'error' property.