I am not sure this is the right place for this kind of question, if not, please point me in the right direction - thanks.
After searching a lot in many different places, I think You are my last hope :)
I have used the Google Drive API V3 Quickstart sample and I have it working however I have a few concerns.
I wonder what would happen if Google changes the API by adding a new functionality to the com.google.api.services.drive.model.File
when I call the different methods (like getId()
og getName()
) to get the info i need from my files. See the last System.out.printf()
in the sample below.
Sample code:
...
public static void main(String[] args) throws IOException {
// Build a new authorized API client service.
Drive service = getDriveService();
// Print the names and IDs for up to 10 files.
FileList result = service.files().list()
.setPageSize(10)
.setFields("nextPageToken, files(id, name)")
.execute();
List<File> files = result.getFiles();
if (files == null || files.size() == 0) {
System.out.println("No files found.");
} else {
System.out.println("Files:");
for (File file : files) {
System.out.printf("%s (%s)\n", file.getName(), file.getId());
}
}
}
....
Is something like that (adding new methods to the API) going to break the code?
I´ll of course be using any relevant error handling, however I don't really want to have to go back and change something in the code because new stuff have been added from third part.
Maybe what i´m asking is how the conversion of JSON is handled "behind the scenes" and if this conversation can handle new members to the JSON code without breaking..
Maybe Google never changes anything and just provide us with a new version of the API
I´m sure Google have thought of this, but thats not an acceptable argument to my client :)
I really appreciate any help in this matter.