Return values of a promise

Started by ben, June 12, 2017, 10:45:35 PM

Previous topic - Next topic

ben

Hello,

how do i know which values a promise returns?

Example:
The parameters of "IMatch.appInfo" are explained in the documentation (https://www.photools.com/dev-center/doc/imatch/IMatch.html#appInfo).
If i look into the sample app "My App" then is uses the following return values:
"response.app.localName"


Where can i find this in the documentation?

Thanks for your help,
Ben

Mario

1. You can see the full response in the NET panel of your browser.
2. You can dump the full response via this statement:

console.log(JSON.stringify(response,null,2))

to the IMatch Output Panel or the console of your browser.

I did not make the effort to list each response member in the documentation. They are usually self-explanatory by name.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook