});--
You received this message because you are subscribed to the Google Groups "Amplify" group.
To unsubscribe from this group and stop receiving emails from it, send an email to amplifyjs+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
amplify.request( string resourceId [, hash data [, function callback ]] )
Request a resource.
resourceId: Identifier string for the resource.data: A set of key/value pairs of data to be sent to the resource.callback: A function to invoke if the resource is retrieved successfully.
amplify.request( hash settings )
Request a resource.
settings: A set of key/value pairs of settings for the request.resourceId: Identifier string for the resource.data (optional): Data associated with the request.success (optional): Function to invoke on success.error (optional): Function to invoke on error.--
I got the point where I went wrong. Just had a doubt - I can pass the successcallback as well as errorcallback only when I use the second signature by using the hash settings and in the first signature, I get just a callback, so we have to determine whether its successful or not using the status returned by the callback. I feel there should have been 2 callbacks in the first signature - a successcallback and an errorcallback ideally.
--