You need to sign in to do that
Don't have an account?
puja
Google Document API
Hi,
i want to read the data from the Goole Document Api.I get the name of the Word document from the google doc in my apex controller.But i have no idea about how i read that document file.
Please help
Thanks in advanced.
Go through this link https://developers.google.com/google-apps/app-apis and read Google API & and add Classes related to it to ur salesforce Org.
i have already added all the classes in my org .
i have find out all the document via the folowing code
public List<SelectOption> getDocuments() {
List<SelectOption> options = new List<SelectOption>();
docMap = new Map<String,String>();
options.add(new SelectOption('','--None--'));
GoogleData documents = service.getDocuments();
documents.dump();
String idVal;
String[] tokens;
System.debug(' documents==='+documents);
if( documents != null ) {
for(xmldom.element entry: documents.entries){
idVal = entry.getElementByTagName('id').nodeValue;
tokens = idVal.split('/');
idVal = tokens[tokens.size()-1];
System.debug(' title==='+entry.getElementByTagName('title'));
options.add(new SelectOption(idVal,
entry.getElementByTagName('title').nodeValue));
System.debug(' documents==='+entry.getElementByTagName('content'));
}
}
return options ;
}
in dropdown .
Now i want to read data from the selected Document file.
Hi Puja. Did you find a way to read the selected file?