Coder Social home page Coder Social logo

google_docs_management's Introduction

About

How to use

# After downloading client_id.json...
$ bundle install --path vendor/bundle
$ bundle exec ruby read_files.rb #{FILE_ID}

Comments APIの問題:コメントした位置が特定できない

  • Webから作ったコメントには,anchorとしてkix IDが割り振られる.GET時に得られる Comment # anchorkix.*********** が入っている.(APIドキュメントと矛盾)

    • このanchorから,コメントをつけたハイライト箇所の前後の文を取得することができないのが問題.前後の文の手掛かりはcontentしかない.
  • いっぽうで,API経由で作る際に,anchorとしてJSONを入れてcreateする.すると,GET時に得られる Comment # anchor は JSONが入っている.定義されていないキーもそのまま見えている.

    • POST https://www.googleapis.com/drive/v3/files/fileId/comments で,下記のようなリクエストを送ると,コメントは作成されるものの,狙った箇所にハイライトされない:
{
  "content": "api content json ver 6",
  "anchor": "{\"r\":6,\"a\":[{\"line\":{\"n\":1,\"l\":1, \"ml\": 1, \"description\":\"revision 6 line 1 - 1\"}}]}",
  "quotedFileContent": {
    "value": "123456789",
    "mimeType": "text/html"
  }
}

今後

google_docs_management's People

Contributors

hackugyo avatar

Watchers

John D. Pope avatar  avatar

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.