Giter Club home page Giter Club logo

drive-ios-quickeditor's Introduction

ios-quickeditor

A sample text editor for iOS illustrating how to open and save files with the Google Drive API

Overview

Quickeditor is a sample Google Drive app written in Objective-C for iOS. It is a text editor capable of editing files with the MIME type text/* that are stored in a user's Google Drive

Prerequisites

To run this sample, you'll need:

  • Xcode 8.0 or greater.
  • CocoaPods dependency manager.
  • Access to the internet and a web browser.
  • A Google account with Google Drive enabled.

Building the sample

Enable the Drive API and Google Sign-in

  1. Use this wizard to create a new app or select an existing one.
  2. Enter "com.google.drive.samples.ios-quick-editor.ios-quickeditor into the field iOS Bundle ID and click the Continue button.
  3. Click the Google Sign-In icon and then click the Enable Google Sign-in button. Click the Continue button.
  4. Click the Download GoogleService-Info.plist button to download the configuration file. Take note of where you saved it. Click the Enable the Drive API button.
  5. Use the dropdown menu to select the same project you use in the previous wizard and click the Continue button.
  6. Close the wizard.

Fetch and build the app

  1. Clone the git repo

     git clone [email protected]:googledrive/ios-quickeditor.git
     cd ios-quickeditor
    
  2. Open ios-quickeditor/ios-quickeditor.xcworkspace in Xcode

  3. Replace GoogleService-Info.plist with the file you previously downloaded

  4. Add the URL scheme in ios-quickeditor-Info.plist with your reversed client ID.

  5. Open your project configuration: double-click the project name in the left tree view. Select your app from the TARGETS section, then select the Info tab, and expand the URL Types section.

  6. Click the + button, and add a URL scheme for your reversed client ID. To find this value, open the GoogleService-Info.plist configuration file, and look for the REVERSED_CLIENT_ID key. Copy the value of that key, and paste it into the URL Schemes box on the configuration page. Leave the other fields blank.

  7. Build the project and run it on the iOS simulator.

drive-ios-quickeditor's People

Contributors

naokigoogle avatar sqrrrl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

drive-ios-quickeditor's Issues

Getting an error "disallowed_useragent"

I have changed the client-Id, Client-secret . I'm gettint the following error.
This user--agent is not permitted to make an OAuth authorization request to Google as it is classfied as an embedded user agent (also known as web-view.). Per our policy, only browsers are permitted to make authorization request to Google

Navigation in sign in screen

How can i put navigation bar in google login screen?

Because if user don't want to sign in then there is no way to go back to the previous screen user must need to kill the application.

Thanks

ios simulator screen shot jul 11 2015 11 16 31 am

Cannot access any mime-type file from quickeditor

I tried changing the query.q 'mimeType' in method QEFilesListViewController.m / loadDriveFiles to try an access different kinds of files and received no files in the filter response. For example, I want to list google spreadsheets with mime type

     - (void)loadDriveFiles {
    GTLQueryDrive *query = [GTLQueryDrive queryForFilesList];
    query.q = @"mimeType = 'application/vnd.google-apps.spreadsheet'";

Is it only possible to access files created using the indicated clientId / clientSecret instead of being able to access files of any type created by any other app? If so, then how?

Dead Sample?

Drive API documentation still links here as a sample project. But looks like Authentication with code no longer works.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.