I created a service account, got json configuration file and I request an access token using it. The response is ok, I receive token. When I upload file using it everything is ok, but when I try to view files from a folder it returns error message
Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.
My service account only needs to access own files, it doesn't access files of any other users. My code for viewing files (right now I try to debug the response):
public List<String> getFilesList() {
Http http = new Http();
HttpRequest req = new HttpRequest();
req.setMethod('GET');
req.setEndpoint('https://www.googleapis.com/drive/v2/files?accessToken='+accessToken');
HttpResponse resp = http.send(req);
System.debug(resp);
System.debug(resp.getBody());
return null;
}