Our goal is for Newgrounds to be ad free for everyone! Become a Supporter today and help make this dream a reality!

Newgrounds Wiki: result

Contains information returned by an API component.


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.

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