Skip to content
This repository was archived by the owner on Jan 10, 2024. It is now read-only.

Conversation

@tomgersic
Copy link
Contributor

/**
* Utility function to query the Chatter API and download a file
* Note, raw XMLHttpRequest because JQuery mangles the arraybuffer
* This should work on any browser that supports XMLHttpRequest 2 because arraybuffer is required.
* For mobile, that means iOS >= 5 and Android >= Honeycomb
* @author Tom Gersic
* @param path resource path relative to /services/data
* @param mimetype of the file
* @param callback function to which response will be passed
* @param [error=null] function to which request will be passed in case of error
* @param rety true if we've already tried refresh token flow once
**/

Signed-off-by: Tom Gersic tgersic@modelmetrics.com

… download a file

    /**
     * Utility function to query the Chatter API and download a file
     * Note, raw XMLHttpRequest because JQuery mangles the arraybuffer
     * This should work on any browser that supports XMLHttpRequest 2 because arraybuffer is required.
     * For mobile, that means iOS >= 5 and Android >= Honeycomb
     * @author Tom Gersic
     * @param path resource path relative to /services/data
     * @param mimetype of the file
     * @param callback function to which response will be passed
     * @param [error=null] function to which request will be passed in case of error
     * @param rety true if we've already tried refresh token flow once
     **/

Signed-off-by: Tom Gersic <tgersic@modelmetrics.com>
metadaddy pushed a commit that referenced this pull request Feb 2, 2012
Utility function to query the Chatter API and download a file.
@metadaddy metadaddy merged commit b814b20 into developerforce:master Feb 2, 2012
@metadaddy
Copy link
Contributor

Thanks, Tom - apologies for the delay!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants