Closed graypegg closed 8 years ago
I agree about 1. Reasoning about 2, 3: The example call is sufficiently abstract as to allow developers to get the point, sort of like pseudo-code would. We're only dealing with a simple request here, so I think language tabs are overkill. Also, since the fetch API isn't available yet in Node we need to enable CORS first #21 for that to make sense.
Agreed, the current example makes it sufficiently clear how to use the API, so no need to execute points 2 or 3 I think.
@toish I added a rudimentary webserver just for the API as per your request. Cross-domain fetch() is now implemented by @tschoffelen. While icons are continuously delivered to server, these changes will be reflected later during the day.
The example API call on the website is:
It doesn't explain the purpose very well (cb isn't synonymous with call back functions)
, and doesn't offer any useable code.(nvm, realized this is the Request API could be better explained though, possible as an option in a language selector like checkbox 3?), jQuery's AJAX function or both, instead of pseudo-code.