Guest User

Untitled

a guest
Nov 20th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. gapi.load('client', function(){
  2. gapi.client.load('drive', 'v3', function(){
  3. gapi.client.init({}
  4. ).then(function(){
  5. gapi.client.drive.files.list({
  6. 'q' : "name contains 'nv'",
  7. 'pageSize' : 10,
  8. 'fields' : "nextPageToken, files(id, name, webContentLink, folderColorRgb, thumbnailLink, description)",
  9. 'orderBy' : 'modifiedTime desc',
  10. }).then(function(respo){
  11. var token = respo.result.nextPageToken;
  12. gapi.client.drive.files.list({
  13. 'fields' : '*',
  14. 'pageToken' : token
  15. }).then(function(result){console.log(result.result);})
  16. })
  17. })
  18. })
  19. })
Add Comment
Please, Sign In to add comment