this set of functions looks great, but what is missing for me is a "getWorksheetCell" function, because I also want to pull data from google spreadsheets into matlab. I don't know java well enough to write one myself.
The code below should work (replace connectNAuthorize function in the package with the one below)
urlread should be provided by Matlab.
The 'writely' token is for Google Spreadsheets, the 'wise' token is for Google Docs.
Once you have the tokens you can use the other functions in the package.
Hope this helps,
Claudiu
%%%%%%%%%%%%%%%%%%%%%%
userName='...@gmail.com';
password='...';
[authorized, aTokenS]=connectNAuthorize(userName, password,'writely');
if (~authorized)
result=-1;
return;
end
[authorized, aToken]=connectNAuthorize(userName, password,'wise');
if (~authorized)
result=-1;
return;
end
function [authorized, aToken]=connectNAuthorize(userName, password,service)