Search code examples
google-docs-api

Determine if Google account is premium


My application uses Google Docs (through OAuth) to open and save files. Now when uploading Microsoft Office documents to Google Docs they are converted to native Google Docs, which works for both free and premium Google accounts.

Given that I use OAuth is there any way to reliably determine whether the account is premium and supports uploading of unconverted documents?


Solution

  • One should be looking for

    <docs:feature>
        <docs:featureName>upload_any</docs:featureName>
    </docs:feature>
    

    in metadata feed for the account: Metadata Feed.

    Look at this thread if there are problems with getting it working.