{"action":"created","issue":{"url":"https://api.github.com/repos/iwonbigbro/gsync/issues/69","labels_url":"https://api.github.com/repos/iwonbigbro/gsync/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/iwonbigbro/gsync/issues/69/comments","events_url":"https://api.github.com/repos/iwonbigbro/gsync/issues/69/events","html_url":"https://github.com/iwonbigbro/gsync/issues/69","id":36273921,"number":69,"title":"gsync only create directories","user":{"login":"richardh538","id":7962831,"avatar_url":"https://avatars.githubusercontent.com/u/7962831?v=3","gravatar_id":"","url":"https://api.github.com/users/richardh538","html_url":"https://github.com/richardh538","followers_url":"https://api.github.com/users/richardh538/followers","following_url":"https://api.github.com/users/richardh538/following{/other_user}","gists_url":"https://api.github.com/users/richardh538/gists{/gist_id}","starred_url":"https://api.github.com/users/richardh538/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardh538/subscriptions","organizations_url":"https://api.github.com/users/richardh538/orgs","repos_url":"https://api.github.com/users/richardh538/repos","events_url":"https://api.github.com/users/richardh538/events{/privacy}","received_events_url":"https://api.github.com/users/richardh538/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":23,"created_at":"2014-06-23T09:16:32Z","updated_at":"2015-01-06T13:38:48Z","closed_at":null,"body":"Hello,\r\n\r\nI have a directory that I wish to sync with google drive.\r\nMy directory, temp, contain one text file, with the name apan.txt and content \"apan\"\r\n\r\n$ gsync -r --progress -v temp/ drive://temp\r\n./\r\napan.txt\r\n           0   0%     0.00B/s    0:00:00\r\nsent 0 bytes  received 0 bytes  0.00 bytes/sec\r\n\r\nHowever, only the directory temp is created on the google drive.\r\n\r\nWhat do I do wrong?\r\n\r\n/Richard"},"comment":{"url":"https://api.github.com/repos/iwonbigbro/gsync/issues/comments/68865762","html_url":"https://github.com/iwonbigbro/gsync/issues/69#issuecomment-68865762","issue_url":"https://api.github.com/repos/iwonbigbro/gsync/issues/69","id":68865762,"user":{"login":"jeztucker","id":3853794,"avatar_url":"https://avatars.githubusercontent.com/u/3853794?v=3","gravatar_id":"","url":"https://api.github.com/users/jeztucker","html_url":"https://github.com/jeztucker","followers_url":"https://api.github.com/users/jeztucker/followers","following_url":"https://api.github.com/users/jeztucker/following{/other_user}","gists_url":"https://api.github.com/users/jeztucker/gists{/gist_id}","starred_url":"https://api.github.com/users/jeztucker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeztucker/subscriptions","organizations_url":"https://api.github.com/users/jeztucker/orgs","repos_url":"https://api.github.com/users/jeztucker/repos","events_url":"https://api.github.com/users/jeztucker/events{/privacy}","received_events_url":"https://api.github.com/users/jeztucker/received_events","type":"User","site_admin":false},"created_at":"2015-01-06T13:38:48Z","updated_at":"2015-01-06T13:38:48Z","body":"As johanels indicated, the gsync utility is set to use pre-defined Google API key / credentials when shipped.\r\n\r\nThis means that by default all users will utilise the data limit (typically 10m API requests per day).\r\n\r\nTherefore, you need to create your own Google API Project with associated key / credentials.\r\n\r\nMethod to resolve this:\r\n\r\n1. Goto: https://console.developers.google.com/project/\r\n2. Create a new project and go to that Projects Dashboard, then:\r\n3. Enable an API -> Set Drive API to On\r\n4. APIs & Auth -> Consent Screen\r\nConfigure the consent screen, set a project name 'gsync-myusername' (or suchlike) and any relevant information\r\n5. APIs & Auth -> Credentials -> Create new client ID\r\nSelect 'installed application'\r\nType: Other\r\n6. As root, edit /usr/local/lib/python2.7/dist-packages/libgsync/drive/client_json.py and modify the client_id and client_secret to reflect your newly generated client credentials\r\n7. Also apply fix #66\r\n8. As your required (suggest non-root..) user, run gsync --authenticate and follow the instructions as per the standard docs\r\n9. Uploading of files will work, against your own personal API requests quota\r\n\r\nAll the best,\r\n\r\nJez\r\n\r\n\r\n"}}