約 5,111,097 件
https://w.atwiki.jp/api_programming/pages/55.html
下位ページ Content スプレッドシートの値を操作するまでの流れ SpreadSheetを開いた時に実行させる 入力するスプレッドシートを選択IDで開く 入力する(スプレッドシートの中の)シートを選択シート名で開く セルセルを選択するセル範囲を取得する セル範囲(単一セル)を取得する セルの最終行を取得する セルに値を操作するセルの値を読み取る セルに値を書き込む セルの値を消去する スプレッドシートの値を操作するまでの流れ SpreadSheetAppをつかってSpreadSheetを指定する SpreadSheetからSheetを指定する SheetからRange(セル範囲)を指定する Range(セル範囲)の値を書き込む/読み取る SpreadSheetを開いた時に実行させる エディタの時計のマークをクリックし、設定 http //galab.bathtimefish.com/google-apps-script-ru-men/shi-yongno-zhun-bei 入力するスプレッドシートを選択 IDで開く Spreadsheet ss = SpreadSheetApp.openById(id) SpreadSheetApp.openById 入力する(スプレッドシートの中の)シートを選択 シート名で開く Sheet sheet = SpreadSheet.getSheetByName(name) SpreadSheet.getSheetByName(name) セル セルを選択する セル範囲を取得する Range = sheet.getRange(row, column, numRows, numColumns) getRangeには、複数種類の引数パターンがオーバーライドされている。これはそのうちの一つ。 getRange セル範囲(単一セル)を取得する Range = Sheet.getRange(row, column) https //developers.google.com/apps-script/reference/spreadsheet/sheet#getRange%28Integer,Integer%29 セルの最終行を取得する sheet.getLastRow() getLastRow() セルに値を操作する セルの値を読み取る Object obj = Range.getValue() https //developers.google.com/apps-script/reference/spreadsheet/range#getValue%28%29 セルに値を書き込む range.setValue(value) setValue(value) http //www.bmoo.net/archives/2012/04/313823.html https //developers.google.com/apps-script/reference/spreadsheet/range#setValue%28Object%29 range.setValue(value) セルの値を消去する range.clearContent() clearContent
https://w.atwiki.jp/api_programming/pages/180.html
下位ページ Java Content URI batchGet シートのデータを取得する GET シートのデータを取得するHTTP request Query parameters Request body Response body 認証(scope) APPEND https //developers.google.com/sheets/?hl=ja URI https //sheets.googleapis.com batchGet シートのデータを取得する URL/通信方式GET https //sheets.googleapis.com/v4/spreadsheets/{spreadsheetId}/values batchGet URLspreadsheetId stringThe ID of the spreadsheet to retrieve data from. リクエストパラメータranges stringThe A1 notation of the values to retrieve. majorDimension enum(Dimension)The major dimension that results should use. For example, if the spreadsheet data is A1=1,B1=2,A2=3,B2=4, then requesting range=A1 B2,majorDimension=ROWS will return 1,2],[3,4, whereas requesting range=A1 B2,majorDimension=COLUMNS will return 1,3],[2,4. valueRenderOption enum(ValueRenderOption)How values should be represented in the output. dateTimeRenderOption enum(DateTimeRenderOption)How dates, times, and durations should be represented in the output. This is ignored if valueRenderOption is FORMATTED_VALUE. batchGet GET シートのデータを取得する HTTP request https //sheets.googleapis.com/v4/spreadsheets/{spreadsheetId}/values/{range} spreadsheetId stringThe ID of the spreadsheet to retrieve data from. スプレッドシートを開いたときの、https //docs.google.com/spreadsheets/d/{ここ}/edit#gid=0 range stringA1形式で記述。A1だけなら "A1" A1,A2,B1,B2なら"A1 B2" Query parameters Parameters majorDimension enum(Dimension), DIMENSION_UNSPECIFIED,ROWS,COLUMNS レスポンスに含まれる値が、行→列で値を返すか、列→行で値を返すか。A1=1,B1=2,A2=3,B2=4 で A1 B2 の値を要求したとき、ROWS なら [[1,2],[3,4]], COLUMNS なら [[1,3],[2,4]] が返る。 valueRenderOption enum(ValueRenderOption), FORMATTED_VALUE,UNFORMATTED_VALUE,FORMULA 返す値をどのように表現して返すか dateTimeRenderOption enum(DateTimeRenderOption),SERIAL_NUMBER,FORMATTED_STRING 日時をどのように表現して返すか GET https //sheets.googleapis.com/v4/spreadsheets/{spreadsheetID}/values/A1?dateTimeRenderOption=FORMATTED_STRING majorDimension=ROWS valueRenderOption=FORMATTED_VALUE key={YOUR_API_KEY} Request body The request body must be empty. Response body If successful, the response body contains an instance of ValueRange. { "range" " シート1 !A1", "majorDimension" "ROWS", "values" [ [ "September 18, 2016 at 05 16PM" ] ] } 認証(scope) https //www.googleapis.com/auth/drive https //www.googleapis.com/auth/drive.readonly https //www.googleapis.com/auth/spreadsheets https //www.googleapis.com/auth/spreadsheets.readonly https //developers.google.com/sheets/reference/rest/v4/spreadsheets.values/get?hl=ja APPEND 既存のデータ範囲を考えて、最後の行にデータを追加する。 ※ HTTPPOST https //sheets.googleapis.com/v4/spreadsheets/{spreadsheetId}/values/{range} append パスに設定するパラメータspreadsheetId stringThe ID of the spreadsheet to update. range stringThe A1 notation of a range to search for a logical table of data. Values will be appended after the last row of the table. 送信データに設定するパラメータvalueInputOption enum(ValueInputOption)How the input data should be interpreted. insertDataOption enum(InsertDataOption)How the input data should be inserted. Request bodyThe request body contains an instance of ValueRange. D14を起点として、開いている行を探して、2×2のデータを挿入したい。データは test11 test12 test21 test22 https //sheets.googleapis.com/v4/spreadsheets/aaaaa/values/D14 append?valueInputOption=USER_ENTERED key={YOUR_API_KEY} { "values" [ [ "test11", "test12" ], [ "test21", "test22" ] ] } レスポンス例 --ヘッダ-- cache-control private content-encoding gzip content-length 178 content-type application/json; charset=UTF-8 date Sun, 09 Oct 2016 09 02 52 GMT server ESF vary Origin, X-Origin, Referer --ボディ-- { "spreadsheetId" "aaaaa", "tableRange" " シート1 !D14 E15", "updates" { "spreadsheetId" "aaaaa", "updatedRange" " シート1 !D16 E17", "updatedRows" 2, "updatedColumns" 2, "updatedCells" 4 } } https //developers.google.com/sheets/reference/rest/v4/spreadsheets.values/append?hl=ja
https://w.atwiki.jp/api_programming/pages/184.html
下位ページ Content 値を取り出す Class Sheetsbuilderのコンストラクタパラメータ spreadsheets() Class SpreadSheetsValue Collection を操作するための accessor を取得する スプレッドシート Class Sheet.SpreadSheet.Value値を取得する 値を追加する Google Sheets API - Java Quickstart Google Sheets API - Google Sheets API これらのコレクションとの対応を考えればOK。 ただ多分よく使う Value Collection を使うために、Sheet - SpreadSheet を経由する。 Google Sheets API v4 値を取り出す ValueRange response = sheet.spreadsheets().values().get(spreadsheetId, range).execute(); Class Sheets スプレッドシートの読み書きを行うためのクラス。名前の似たSheetクラスがあるので、注意が必要。 Sheets builderのコンストラクタ public Sheets.Builder(transport, jsonFactory, httpRequestInitializer) パラメータ transport HTTP transport, which should normally be Google App Engine com.google.api.client.extensions.appengine.http.UrlFetchTransport そのまま new UrlFetchTransport() でOK. Android newCompatibleTransport from com.google.api.client.extensions.android.http.AndroidHttp Java com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport() jsonFactory - JSON factory, which may be Jackson com.google.api.client.json.jackson2.JacksonFactory そのまま new JacksonFactory() でOK. Google GSON com.google.api.client.json.gson.GsonFactory Android Honeycomb or higher com.google.api.client.extensions.android.json.AndroidJsonFactory httpRequestInitializer - HTTP request initializer or null for noneGoogle系? GoogleCredentialで良い? spreadsheets() spreadsheets() スプレッドシートにリクエストを送るためのaccessor Class SpreadSheets SpreadSheets Value Collection を操作するための accessor を取得する value() スプレッドシート [[get() https //developers.google.com/resources/api-libraries/documentation/sheets/v4/java/latest/com/google/api/services/sheets/v4/Sheets.Spreadsheets.html#get(java.lang.String)] Class Sheet.SpreadSheet.Value Sheet.SpreadSheet.Value 値を取得する get() 値を追加する append()
https://w.atwiki.jp/e04j0784_test/pages/19.html
Google Docs アカウントの取得 1. Googleトップページのログイン(右上)をクリック 2. 「Google アカウントをお持ちでない方はこちらから 今すぐアカウントを作成」をクリック 3. 必要事項を入力、熟読し、「同意して、アカウントを作成します」をクリック 4. 3で指定したメールアドレスにgoogleからメールが届くのでそれを受信して開く 5. 指定のURIをクリックして、「メールアドレスの確認が完了しました」と表示されれば登録完了 機能 メールを介してグーグル・ドックスにテキストやワード文書をアップロードする HTMLのウェブページやワード文書をPDFに変換 手動でHTMLを編集する 編集インターフェースを使ってブログを書く Google Docsの使い方 文書の作成手順 1. メニューバーの新規→文書で新規文書を開く 2. 「編集」タブで文書を入力する 3. 書式設定バーで文字の書式や文書の体裁を整える 4. 「挿入」タブで画像を配置する ・メニューバーの「画像」→「画像を挿入」→「参照」を選択する ・挿入する画像(ファイル)を選択し、画像の挿入をクリック 5. 画面右上の「保存」ボタンをクリックし、文書を保存する Google SpreadSheetsの使い方 1. メニューバーの新規→スプレッドシートで新規スプレッドシートを開く 2. 「編集」タブでデータを入力する 3. 画面右上の「保存」ボタンをクリック 4. 表示されたウィンドウに名前を入力してOKをクリックすれば保存完了
https://w.atwiki.jp/google/pages/10.html
table of contents(目次) Search(検索)Google Google Map Google translate Google Chrome Videos, games(動画、ゲーム)YouTube Music YouTube Google TV Chromecast Made by Google Device(Googleデバイス製)Pixel smart home Pixel Slate Nest Wifi go-anywhere(どこでも使える)Android OS Wear OS by Google Android Auto Chromebook call,text(通話、テキスト)Gmail Message Google Duo Google Chat always in order(いつも整理整頓)Google photos Google Contacts Google Keep Google Calendar Make your work more efficient(仕事を効率化)Google Docs Google Sheets Google Slides Google Drive develop one's businesses(ビジネスの成長を図る)Google Ads Google AdSense Google My Business Google Analytics Search(検索) Google Capture core information.You can easily find the latest information. コアな情報をキャッチ。最新情報を簡単に探せます。 Google Map You can use GPS navigation, traffic information, transfer information, and find nearby shops. GPS ナビ、交通情報、乗換案内を利用したり、近くのお店を探したりできます。 Google translate Translate audio, scanning, keyboard, and handwritten input into more than 100 languages. 音声、スキャン、キーボード、手書きで入力した内容を 100 以上の言語に翻訳できます。 Google Chrome It is a fast, simple and secure browser for all terminals. あらゆる端末に対応した、高速かつシンプルで安全なブラウザです。 Videos, games(動画、ゲーム) YouTube Music A new music streaming app created from YouTube. YouTube から生まれた、新しい音楽ストリーミング アプリ。 YouTube Find, play, and share your favorite videos and music. お気に入りの動画や音楽を探して、再生、共有できます。 Google TV Enjoy your favorite entertainment with Google. お気に入りのエンターテイメントをGoogle を活用して楽しみましょう。 Chromecast You can cast movies and music from your smartphone to your TV. 映画や音楽などをスマートフォンからテレビにキャストできます。 Made by Google Device(Googleデバイス製) Pixel Google s new smartphones bring. Google の新しいスマートフォンのご紹介。 smart home You can choose from a variety of sizes. さまざまなサイズからお選びいただけます。 Pixel Slate Work and play in a whole new way. 仕事も遊びも、まったく新しい方法で。 Nest Wifi Nest Wifi is a reliable, high-speed Wi-Fi system that covers the entire house.Smooth connectivity will be available in any room. Nest Wifi は家全体をカバーできる信頼性の高い高速 Wi-Fi システムです。どの部屋でもスムーズな接続を利用できるようになります。 go-anywhere(どこでも使える) Android OS evolve day by day Platform 日々進化するプラットフォーム Wear OS by Google Leave it to the clock.Manage fitness information and check for updates. 時計におまかせ。フィットネス情報を管理し最新情報もチェック。 Android Auto Voice control, navigation, and music are available in the car. 音声操作、ナビゲーション、音楽を車内でご利用いただけます。 Chromebook It s an easy-to-use laptop with a long battery life. 電池が長持ちする使いやすいノートパソコンです。 call,text(通話、テキスト) Gmail Google s secure and easy-to-use mail service.Organize your inbox according to category to save time. Google の安全で使いやすいメールサービス。カテゴリごとの分類で受信トレイを整理し、時間を節約できます。 Message A simple messaging app that connects with loved ones. 大切な人とつながれるシンプルなメッセージング アプリ。 Google Duo Simple, high-quality video calls (for Android and iOS). シンプルで高品質なビデオ通話(Android と iOS 対応)。 Google Chat With Google Chat, teams can safely exchange messages. Google Chat を使用すると、チームで安全にメッセージをやり取りできます。 always in order(いつも整理整頓) Google photos Organize all your photos and find them easily. すべての写真を整理し、簡単に探すことができます。 Google Contacts You can manage the addresses and phone numbers of family and friends in one place. 家族や友だちの住所や電話番号を 1 か所で管理できます。 Google Keep Wherever you are, you can record your thoughts as notes, lists, or voice notes. どこにいても、思いついたことをメモ、リスト、音声メモとして記録できます。 Google Calendar You can organize your schedule and event information and share it with important people. 予定やイベント情報を整理して大切な人たちと共有できます。 Make your work more efficient(仕事を効率化) Google Docs You can edit and share all documents wherever you are. どこにいても、すべてのドキュメントを編集、共有できます。 Google Sheets Smart spreadsheets that can be accessed from anywhere. どこからでもアクセスできるスマートなスプレッドシート。 Google Slides Share your story with a presentation that can be created and carried anywhere. 場所を問わずに作成して持ち運べるプレゼンテーションで、ストーリーを伝えましょう。 Google Drive Securely save, access, and share files. ファイルを安全に保存して、アクセス、共有できます。 develop one s businesses(ビジネスの成長を図る) Google Ads You can view ads when users search for your products and services. あなたが提供している商品やサービスについてユーザーが検索したときに、広告を表示できます。 Google AdSense monetize your content through advertising. あなたのコンテンツを広告で収益化しよう。 Google My Business It s a free tool that appeals to users who search Google or map your business. Google 検索やマップで検索したユーザーに、あなたのビジネスをアピールできる無料のツールです。 Google Analytics You can analyze user information across multiple channels. 複数のチャネルを対象にユーザーの情報を分析できます。 End up上へ
https://w.atwiki.jp/guide/pages/2278.html
Googleスプレッドシート表示(googlespreadsheets2) #googlespreadsheets2(埋め込みHTMLタグ){横幅,縦幅} と入力することで、Googleスプレッドシートをwikiページに表示します。 表示サイズの横幅、縦幅を指定しない場合、それぞれデフォルト500,300となります。 使用例)※ 使用例表示の都合上一部改行をしておりますが、プラグイン使用の際には改行せずにHTMLタグを入力ください。 #googlespreadsheets2(https //docs.google.com/spreadsheet/pub?key=0ArLurC_iHPSOdGRRUnF0LWtGVGRTTTF2M3NOS3k4WlE output=html){}
https://w.atwiki.jp/google/pages/11.html
table of contents(目次) table of contents(目次) What is Google Command? Google commandatari breakout Puc-man solitaire tic tac toe zerg rush 斜め or askew 一回転 or Do a barrel roll 再帰 or recursion Google binary Google gravity Google space elgooG Google guitar Google sphere Google underwater epic Google black Google sleeping internet https //www.google.com/teapot What is Google Command? [English] The google command is to put command characters in the search box using google, google chrome. [Japanese] Googleコマンドは、Google、Google chromeを使用して検索ボックスにコマンド文字を入力することです。 Google command atari breakout You can play with "atari breakout." 「ブロック崩し」で遊べる Puc-man You can play with "Pac-Man." 「パックマン」で遊べる solitaire You can play with "solitaire" 「ソリティア」で遊べる tic tac toe You can play with "tic tac toe" 「○☓ゲーム」で遊べる zerg rush You can play with "zerg rush" 「クリック撃退ゲーム」で遊べる 斜め or askew result in a skewed search 検索結果が傾く 一回転 or Do a barrel roll The search results revolve around. 検索結果が一回転する 再帰 or recursion Click did you mean recursion to return to the same screen and loop indefinitely 「もしかして 再帰」をクリックすると、同じ画面に戻り、無限ループする Google binary It s all binary. すべてが二進法になる Google gravity gravitational attachment 重力がつく Google space become weightless 無重力になる elgooG turn everything upside down すべてが反転する Google guitar ギターで遊べる guitar-playable Google sphere The character rotates. 文字が回転する Google underwater become a world of the sea 海の世界になる epic Google grow in size 巨大化する black Google be dyed jet-black 漆黒に染まる sleeping internet The brightness of the screen changes at regular intervals. 一定間隔で画面の明るさが変わる https //www.google.com/teapot The pot will pour the tea. ポットに触るとお茶が注げる up 上へ
https://w.atwiki.jp/kaitarou/pages/6.html
Google Data APIs Protocol ThisdocumentdescribestheprotocolusedbytheGoogledataAPIs( GData ),includinginformationaboutwhataquerylookslike,whatresultslooklike,andsoon.このドキュメントは、GoogledataAPIs( GData )が、どのようなquery(問い合わせ)やresults(結果)が使用されるのかの関連情報を情報を含んでいます。 ForotherinformationabouttheGoogledataAPIs,seetheGoogleDataAPIsOverviewdocument.GoogledataAPIsについての他の情報は、GoogleDataAPIsOverviewを参照して下さい。 Contents内容・目次 Audience対象読者 Examples例 Requesting a feed or other resourcefeedやその他リソースの要求 Inserting a new entry新しいエントリーの挿入 Searching for a string文字列の検索Updating an entryエントリーの更新Deleting an entryエントリーの削除 Protocol detailsプロトコル詳細 Document formatドキュメント・フォーマットQueries問い合わせOptimisticconcurrency(versioning)楽観的 同時実行Authentication認証Session stateセッション状態 Additional resources追加リソース Audience対象読者 ThisdocumentisintendedforanyonewantingtounderstandthedetailsoftheXMLformatandprotocolusedbytheGoogledataAPIs.このドキュメントは、GoogledataAPIsが使用するXMLフォーマットとプロトコルの詳細を知りたい、理解したいと思う人の為に意図される。 IfyoujustwanttowritecodethatusestheGDataclientAPIs,thenyoudon tneedtoknowthesedetails;instead, seethelinksinthesidebartodocumentationforthelanguage-specificclientlibraries.もし、GDataclientAPIsを使用するコードをただ書きたければ、これらの詳細を知る必要はありません。 その代わりに、言語に特化したクラスライブラリに関してのドキュメントへのリンクを参照して下さい。 If you want to understand the protocol, read this document.もし、あたながプロトコルを理解したい場合には、このドキュメントを読んで下さい。 Forexample,youmaywanttoreadthisdocumenttohelpyouwithanyofthefollowingtasks 例えば、以下のタスクについてあなたを手助けする為にこのドキュメントを読みたいと理由でもかまいません。 evaluating the GData architecture .GDataアーキテクチャ評価 coding using the protocol without using the provided GData libraries .提供されたGDataクラスライブラリを使用せずに、プロトコルをコーディングする writing a client library in a new language .新しい言語で、クラスライブラリをコーディングする ThisdocumentassumesthatyouunderstandthebasicsofXML,namespaces,syndicatedfeeds,andtheGET,POST,PUT,andDELETErequestsinHTTP, aswellasHTTP sconceptofa resource. Formoreinformationaboutthosethings,seetheAdditionalresourcessectionofthisdocument.このドキュメントは、XMLやnamespacesやsyndicatedfeedsの基礎知識とHTTPのGET,POST,PUT,,DELETE要求やHTTP sのリソースコンセプトを理解している前提で記述されています。 それらに関しての詳細な情報については、このドキュメントの追加リソースのセクションを参照して下さい。 This document doesn t rely on any particular programming language;このドキュメントは、特定のプログラミング言語には依存しません。youcansendandreceiveGDatamessagesusinganyprogramminglanguagethatletsyouissueHTTPrequestsandparseXML-basedresponses.HTTPrequestsを送信したりXMLベースのレスポンスを解析 プログラミング言語を使用して、GDataメッセージをHTTPでリクエストを出さたり、、XMLベースのレスポンス(GDataメッセージ)を解析させる事ができます。 Examples例 ThefollowingexamplesshowbareGDataprotocolrequestsyoumightsendandtheGData-formattedresultsyoumightreceive.次の例は、送信したrequestsによって受け取るだろうGData-formatted結果のGDataプロトコルそのものを示します。ForexamplesofhowtosendtherequestsusingJavaandC#,seethelanguage-specificclientlibrarylinksinthesidebar.JavaとC#を使用したrequestsを送信する例は、それぞれのクラスライブライブラリに特化したドキュメントリンクを参照して下さい。ForinformationaboutusingGDatawithGoogleCalendar,seetheGoogleCalendarDataAPIdocument.GoogleカレンダーがもっているGDataに関する情報については、GoogleCalendarDataAPIdocumentを参照して下さい。 Requesting a feed or other resource Assumethere safeedcalled/myFeed,andassumethatitcurrentlydoesn thappentocontainanyentries./myFeedというfeedがあると仮定して、そしてそれが現在どんなエントリーを含まないと仮定して下さい。To see it, send the following request to the server それを参照するには、サーバーへ次のリクエストを送信して下さい。 GET /myFeedThe server responds 200 OK ?xml version= 1.0 ? feed xmlns= http //www.w3.org/2005/Atom title Foo /title updated 2006-01-23T16 25 00-08 00 /updated id http //www.example.com/myFeed /id author name Jo March /name /author link href= /myFeed rel= self / /feed Notethatalthoughthefeeddoesn tcontainanyentries,itdoescontainmetadata,suchasatitleandanauthor sname.feedは、なにもエントリーを含んで無いにも関わらず、タイトルと著者の名前といったメタデータを含む事に注意してください。 Inserting a new entry To create a new entry, sendaPOSTrequest,andsupplyanewentryinGDataformat 新しいエントリーを作成する為には、GDataフォーマットで新しいエントリーを作成しPOSTrequestを送信して下さい。 POST /myFeed ?xml version= 1.0 ? entry xmlns= http //www.w3.org/2005/Atom author name Elizabeth Bennet /name email liz@example.com /email /author title type= text Entry 1 /title content type= text This is my entry /content /entry Notethatyoudon tsupplyid,link,orupdatedelements;theservercreatesthoseinresponsetoyourPOSTrequest.id、link、updatedの要素を提供しない事に注意して下さい。;サーバーは、あなたのPOSTrequestに応じてそれらを作成します。Alsonotethattheauthorofafeeddoesn thavetobethesamepersonastheauthorofanentry.さらにfeedの著者が、エントリーの作成と同一人物である必要がないことに注意してください。 The server responds 201 CREATED ?xml version= 1.0 ? entry xmlns= http //www.w3.org/2005/Atom id 1 /id link rel= edit href= http //example.com/myFeed/1/1/ / updated 2006-01-23T16 26 03-08 00 /updated author name Elizabeth Bennet /name email liz@example.com /email /author title type= text Entry 1 /title content type= text This is my entry /content /entry Searching for a string Todoafull-textsearchforaparticularstring,sendaGETrequestwiththeqparameter.特定の文字列用に全文検索を行う為には、qパラメーターを備えたGETrequestを送信して下さい。For more information about queryparameters, see Query requests.クエリー・パラメーターの詳細の詳細については、Queryrequestsを参照して下さい。 GET /myFeed?q=This Theserverrespondswithalltheentriesthatmatchthesearchstring This .(Inthiscasethere sonlyone.)サーバーは、検索文字列 This とマッチするすべてのエントリーで応答します。(この場合1つだけあります。) 200 OK ?xml version= 1.0 ? feed xmlns= http //www.w3.org/2005/Atom title Foo /title updated 2006-01-23T16 26 03-08 00 /updated id http //www.example.com/myFeed /id author name Jo March /name /author link href= /myFeed rel= self / entry id 1 /id link rel= edit href= http //example.com/myFeed/1/1/ / updated 2006-01-23T16 26 03-08 00 /updated author name Elizabeth Bennet /name email liz@example.com /email /author title type= text Entry 1 /title content type= text This is my entry /content /entry /feed Updating an entry Toupdateanexistingentry,usePUT,usingtheentry seditURI(asprovidedbytheserverinthepreviousexample).すでに存在するエントリーを更新するためには、エントリーの編集URIを使用した、PUTを使用して下さい。(前の例のサーバーによって提供される) (IfyourfirewalldoesnotallowPUT,thendoanHTTPPOSTandsetthemethodoverrideheaderasfollows X-HTTP-Method-Override PUT)(もし、あなたのファイアーウォールがPUTを許可しない時は、HTTPPOSTでヘッダーメソッドを次の通りにオーバーライドして下さい。(X-HTTP-Method-Override PUT)) Inthefollowingexample,we rechangingtheentry stextfromitsoldvalue( Thisismyentry )toanewvalue( Thisismyfirstentry. ) 次の例では、私達は、古い値 Thisismyentry から新しい値 Thisismyfirstentry. へテキストエントリーを変更しています。 PUT /myFeed/1/1/ ?xml version= 1.0 ? entry xmlns= http //www.w3.org/2005/Atom id 1 /id link rel= edit href= http //example.com/myFeed/1/1/ / updated 2006-01-23T16 28 05-08 00 /updated author name Elizabeth Bennet /name email liz@example.com /email /author title type= text Entry 1 /title content type= text This is my first entry. /content /entry The server responds 200 OK ?xml version= 1.0 ? entry xmlns= http //www.w3.org/2005/Atom id 1 /id link rel= edit href= http //example.com/myFeed/1/2/ / updated 2006-01-23T16 28 05-08 00 /updated author name Elizabeth Bennet /name email liz@example.com /email /author title type= text Entry 1 /title content type= text This is my first entry. /content /entry Note that the edit URI has changed; it now ends with /2/ insteadof /1/ .編集URIが、変わった事に注意して下さい。それは今、 /1/ では無く、 /2/ で終わります。The final number in the edit URI is a version number.編集URIの最終番号はバージョン・ナンバーである。Formoreinformationaboutversions,seetheOptimisticconcurrencysectionofthisdocument.バージョンに関してのより詳細な情報については、この文書内の、楽観的な同時実行のセクションを見てください。 To see the new entry in context, request the entire resource again コンテキストで新しいエントリーを見るためには、再度全エントリーを要求して下さい。 GET /myFeedThe server responds 200 OK ?xml version= 1.0 ? feed xmlns= http //www.w3.org/2005/Atom title Foo /title updated 2006-01-23T16 28 05-08 00 /updated id http //www.example.com/myFeed /id author name Jo March /name /author link href= /myFeed rel= self / entry id 1 /id link rel= edit href= http //example.com/myFeed/1/2/ / updated 2006-01-23T16 28 05-08 00 /updated author name Elizabeth Bennet /name email liz@example.com /email /author title type= text Entry 1 /title content type= text This is my first entry. /content /entry /feed Deleting an entry Todeleteanexistingentry,sendaDELETErequest,usingtheentry seditURI(asprovidedbytheserverinthepreviousexample).既存のエントリーを削除する為には、編集URIを使用してDELETEリクエストを送信してください。(前の例におけるサーバーによって提供された) (IfyourfirewalldoesnotallowDELETE,thendoanHTTPPOSTandsetthemethodoverrideheaderasfollows X-HTTP-Method-Override DELETE.)(もし、あなたのファイアーウォールがDELETEを許可しない時は、HTTPPOSTのヘッダーメソッドを次の通りにオーバーライドして下さい。(X-HTTP-Method-Override DELETE.)) DELETE /myFeed/1/2/ The server responds 200 OK DoanotherGETtoseethatthefeednowcontainsnoentries 別のGETが、今のfeedを含まない事を見てください。 GET /myFeedThe server responds 200 OK ?xml version= 1.0 ? feed xmlns= http //www.w3.org/2005/Atom title Foo /title updated 2006-01-23T16 30 11-08 00 /updated id http //www.example.com/myFeed /id author name Jo March /name /author link href= /myFeed rel= self / /feed If the deletion fails, then the server responds with an error code.もし削除が失敗した場合、サーバーは、エラーコードで応答します。 For more information, see HTTP status codes, later in this document.より詳細については、後でこの文書内のHTTPstatuscodesを参照して下さい。 Protocol detailsプロトコル詳細 This section describes the GData document format and query syntax.このセクションは、GDataドキュメント・フォーマット及び、query(問い合わせ)のsyntax(文法。規則)について詳しく記述します。 Document formatドキュメント・フォーマット GData, Atom, and RSS 2.0 all share the same basic data model GData、AtomとRSS2.0はすべて同じ基本データモデルを共有します:a container that holds both some global data and anynumberofentries.グローバルなデータおよびいくつもエントリーのを格納するcontainer(コンテナー)Foreachprotocol,theformatisdefinedbyabaseschema,butitcanbeextendedusingforeignnamespaces.それぞれのプロトコルは、基礎のスキーマによって定義されます、しかし、外部のnamespacesを使用して拡張する事が出来ます。 GDatacanuseeithertheAtomsyndicationformat(forbothreadsandwrites)ortheRSSformat(forreadsonly).GDataは、Atomsyndicationformat(読み取りと書き込みの両方のための)と、RSSformat(読み取り専用の)どちらかを使用することが出来ます Atom is GData s default format.Atomは、GDataのデフォルトのフォーマットです。TorequestaresponseinRSSformat,usethe/alt=rss/parameter;RSSフォーマットでの応答を要求するためには、/alt=rss/parameter を使用して下さい。for more information, see Query requests.詳細については、Queryrequestsを参照して下さい。 WhenyourequestdatainRSSformat,GDatasuppliesafeed(orotherrepresentationoftheresource)inRSSformat.RSSフォーマットでのデータを要求する場合、GDataはRSSフォーマットでfeed(かリソースの他の表現)を供給します。Ifthere snoequivalentRSSpropertyforagivenGDataproperty,GDatausestheAtomproperty,labelingitwithanappropriatenamespacetoindicatethatit sanextensiontoRSS.もし、GDataの与えられたpropertyと同等のRSSpropertyが無い場合、GDataは、それがRSSに対する拡張であることを示す適切なネーム空間のラベルを付けてAtomを使用します。 Note MostGDatafeedsinAtomformatusetheAtomnamespaceasthedefaultnamespacebyspecifyinganxmlnsattributeonthefeedelement;注:ほとんどのGDatafeedsは、要素でxmlnsattributeを指定することによって、Atomformatの使用にdefaultnamespaceとしてAtomnamespaceを使用しますsee the examples section for examples of how to do that.それを使用する方法に関しては、例セクションを参照して下さい。Thus,theexamplesinthisdocumentdon texplicitlyspecifyatom forelementsinanAtom-formatfeed.従って、このドキュメント注の例は、明示的にatomを指定しません:Atom-formatfeed要素のためです。 ThefollowingtablesshowtheAtomandRSSrepresentationsoftheelementsoftheschema.次のテーブルは、原子とRSSのスキーマの要素を表示し示します。AlldatanotmentionedinthesetablesistreatedasplainXMLandshowsupthesameinbothrepresentations.これらのテーブルで述べられてないデータは、すべてXMLとして明白に扱われ、両方同じ表現を示します。Unlessindicatedotherwise,theXMLelementsinagivencolumnareinthenamespacecorrespondingtothatcolumn.もし他の方法で示されなければ、与えられたカラムのXML要素は、そのカラムに対応するネーム空間にあります。This summary uses standard XPath notation この要約は、標準のXPath表記法を使います inparticular,slashesshowtheelementhierarchy,andan@signindicatesanattributeofanelement.特に,/ (スラッシュ)は要素階層を示し,@印は要素の属性を示す。 In each of the following tables, the highlighted items are required.次のテーブルで、強調表示された項目は、要求される項目です。 The following table shows the elements of a GData feed 次のテーブルが、GDatafeedの要素を示します FeedSchemaItem AtomRepresentation RSSRepresentation Feed Title /feed/title /rss/channel/title Feed ID /feed/id /rss/channel/atom id Feed HTML Link /feed/link[@rel= alternate ][@type= text/html ]/@href /rss/channel/link Feed Description /feed/subtitle /rss/channel/description Feed Language /feed/@xml lang /rss/channel/language Feed Copyright /feed/rights /rss/channel/copyright Feed Author /feed/author/name /feed/author/email (Requiredincertaincases;seeAtomspecification.) /rss/channel/managingEditor Feed Last Update Date /feed/updated (RFC3339format) /rss/channel/lastBuildDate (RFC822format) Feed Category /feed/category/@term /rss/channel/category Feed Category Scheme /feed/category/@scheme /rss/channel/category/@domain Feed Generator /feed/generator /feed/generator/@uri /rss/channel/generator Feed Icon /feed/icon /rss/channel/image/url (unless there s also alogo,inwhichcasetheiconisn tincludedinthefeed) Feed Logo /feed/logo /rss/channel/image/url The following tableshowstheelementsofaGDatasearch-resultsfeed.次のテーブルはGDataの検索結果のfeedの要素を示したものだ。 NotethatGDataexposessomeoftheOpenSearch1.1Responseelementsinitssearch-resultsfeeds.GDataがその検索-結果feedsでOpenSearch1.1Responseelementsの一部をさらすことに注意して下さい。 SearchResultFeedSchemaItem Atom Representation RSS/OpenSearchRepresentation Number of Search Results /feed/opensearch totalResults /rss/channel/opensearch totalResults Search Result Start Index /feed/opensearch startIndex /rss/channel/opensearch startIndex Number of Search Results Per Page /feed/opensearch itemsPerPage /rss/channel/opensearch itemsPerPage The following table shows the elements of a GData entry 次のテーブルは、GDataのエントリー要素を示したものです。 Entry Schema Item Atom Representation RSS Representation Entry ID /feed/entry/id /rss/channel/item/guid Entry Version ID Optionally embedded in EditURI (see theOptimistic concurrencysectionofthisdocument). Entry Title /feed/entry/title /rss/channel/item/title Entry Link /feed/entry/link /rss/channel/item/link/rss/channel/item/enclosure/rss/channel/item/comments Entry Summary /feed/entry/summary (Required in certain cases; see Atom specification.) /rss/channel/item/atom summary Entry Content /feed/entry/content (If no content element, then entry must contain at least one link rel= alternate element.) /rss/channel/item/description Entry Author /feed/entry/author/name /feed/entry/author/email (Required in certain cases; see Atom specification.) /rss/channel/item/author Entry Category /feed/entry/category/@term /rss/channel/item/category Entry Category Scheme /feed/entry/category/@scheme /rss/channel/item/category/@domain Entry Publication Date /feed/entry/published (RFC 3339) /rss/channel/item/pubDate (RFC 822) Entry Update Date /feed/entry/updated (RFC3339) /rss/channel/item/atom updated (RFC 3339) Queries問い合わせ Thissectiondescribeshowtousethequerysystem.このセクションでは、問い合わせシステムの使用方法を記述します。 Query model design tenets問い合わせモデル設計主義Thequerymodelisintentionallyverysimple.問い合わせモデルは計画的で非常に簡単である。The basic tenets are 基本的な主義は次のとおりである ・Queries are expressed as HTTP URIs, rather thanasHTTPheadersoraspartofthepayload.HTTPヘッダーとしてまたはペイロードの一部として表現されるよりもQueriesはHTTPURIsとして表現される。One benefit of thisapproach is thatyoucan link to a query.このアプローチの1つの利点は問い合わせにリンクすることができることである。・Predicates are scoped to a single item.クエリの述部は、単一項目に対して有効です。Thus,there snowaytosendacorrelationquery such as find all emails frompeoplewho sentmeatleast10emailstoday. 従って、今日10通以上送信した人のすべてのEメールのような相関関係のクエリの方法はありません。・The set of properties thatqueriescanpredicateonisverylimited;mostqueries are simply full textsearchqueries.このセットのプロパティは非常に限定されています。ほとんどのクエリは、単に全文検索です。・Result ordering is up to the implementation.結果の命令は、実施までです。・Theprotocolisnaturallyextensible.このプロトコルは、当然拡張可能です。Ifyouwanttoexposeadditionalpredicatesorsortingin your service, you candosoeasilythrough theintroductionofnewparameters.もしあなたのサービスが、ソートや述語(条件)などの付加的な処理を追加する場合には、新しいパラメータを導入すれば容易にできます。 Query requestsクエリ リクエスト A client queries a GData service by issuing an HTTPGETrequest.クライアントは、HTTPGETリクエストを出すことにより、GDataサービスに問い合わせします。The query URI consists oftheresource sURI(calledFeedURIinAtom)followedby query parameters.問い合わせURIは、リソースのURI(AtomのFeedURIと呼ばれる)の後に続くクエリのパラメータから構成される。Mostqueryparametersarerepresentedastraditional?name=value[ ...]URLparameters.ほとんどのクエリパラメータは、従来と同様です。URLパラメータ?name=value[ ...]Category parameters are handleddifferently; seebelow.カテゴリー・パラメーターは違う様に扱われます。以下を見てください。For example, if the FeedURI ishttp //www.example.com/feeds/jo,thenyoumightsendaquerywiththefollowing URI 例えば、FeedURIがhttp //www.example.com/feeds/joである場合、以下のURIをもつクエリを送るでしょう http //www.example.com/feeds/jo?q=Darcy updated-min=2005-04-19T15 30 00 GData services support HTTP Conditional GET.GDataサービスはHTTPの条件付きのGETを支援します。They set the Last-Modifiedresponseheaderbaseduponthevalueofthe atom updated element in thereturnedfeedorentry.それらは、返された最終更新のレスポンスヘッダーのfeedかentry内の atom updated 要素valueに基づいてセットされます。A client can sendthis value backasthevalueoftheIf-Modified-Sincerequestheader to avoidretrievingthecontentagainifithasn t changed.クライアントは、それが変わっていない場合には、再び内容を検索することを回避するリクエストヘッダーの場合のためにこの値を送り返すことが出来ます。If the content hasn tchangedsincetheIf-Modified-Sincetime,thentheGDataservice returns a 304(NotModified)HTTPresponse.もし、その時間が変更ない場合、それからGDataサービスは304(変更されない)HTTPの応答を戻します。。 A GData service must support category queries and alt queries;GDataサービスはカテゴリークエリおよびaltクエリをサポートしなければいけません。support for other parameters is optional.他のパラメーターに対するサポートは、選択が自由です。Passing a standard parameter not understoodbyagivenserviceresultsina403Forbidden response.特定のサービスによって理解されない標準パラメータを渡す場合には、403Forbiddenresponseを返します。Passing an unsupportednonstandardparameterresultsina400BadRequestresponse.サポートされていない標準外のパラメータを渡す事は、400BadRequestresponseを返します。For information on otherstatuscodes, seethe HTTPstatuscodessectionofthisdocument.他のステイタスコードの情報については、この文書のHTTPのステイタスコードセクションを見てください。 The standard query parametersaresummarizedinthefollowingtable.標準的なクエリパラメータは次のテーブルに要約されています。All parameter values need to be URL encoded.すべてのパラメータの値はURLエンコードされている必要があります。 Parameter Meaning Notes q Full-text query string When creating a query, list search termsseparatedbyspaces,inthe form q=term1 term2 term3.問い合わせを作成する場合、検索用語リストは、スペースで区切った形でq=term1term2term3 (As with all of the query parameter values, the spaces must be URLencoded.)(問い合わせのすべてのパラメータ値のと同じように、スペースは、URLエンコードしなくてはいけません) The GData service returns all entries that match allofthesearchterms(like using AND between terms).GDataサービスは、検索対象用語のすべて一致した結果を返します。(用語間のスペースがANDのように) Like Google s web search, a GData service searchesoncompletewords(andrelated words with the same stem), not substrings.GoogleWebの検索のようなsubstringsではなく、完全一致の単語(先頭から最後まで同じ単語)で検索します。 To search for an exact phrase, enclose the phraseinquotationmarks q= exactphrase .正確な句を検索するために、句を引用符で囲んでください。 q= exactphrase To exclude entries that match a given term, use the form q=-term.ある特定の言葉に一致させる記入項目を除くためには、q=-termのように句の前に-を付けてください。 The search is case-insensitive.探索はケース無感覚です。 Example to search for all entries that contain theexactphrase ElizabethBennet and the word Darcy but don t contain theword Austen , use the following query ?q= Elizabeth Bennet Darcy -Austen例:正確な句「エリザベス・ベネット」および単語「ダーシー」を含んでいるが、単語「オースティン」を含んでいないすべての エントリーを探索するために、次のクエリを使用する ?q= ElizabethBennet Darcy-Austen /category Category filter ・List each category as if it were part oftheresource sURI,in the form /categoryname/this is an exception totheusualname=valueform.・それが、URIの一部のようにリストしてください。通常の形式の例外として、形式 /categoryname/this ・List all categories before any other query parameters.・他のqueryparametersの前にすべてのカテゴリをリストアップして下さい。 ・Precede thefirstcategorywith /-/ to make clear that it s acategory.・それがカテゴリである事を明確にするために、カテゴリの前に/-/を付加してください。 For example, if Jo s feed has a category for entries aboutFritz,youcouldrequest those entries like this 例えば、JofeedにFritzについてのカテゴリーを持っていれば、以下のようにそれらのentry項目を要求可能です。 ・You can query on multiple categories bylistingmultiplecategory parameters, separated by slashes.・多数のカテゴリーをスラッシュによって分割する事で、多数のカテゴリーリストとして問い合わせする事が出来る。 The GData service returns all entries that match all ofthecategories(like using AND between terms).GDataサービスは、すべてに一致するエントリーをかえす。(AND検索) For example http //www.example.com/feeds/jo/-/Fritz/Lauriereturns entries that match both categories. 例えば、http //www.example.com/feeds/jo/-/Fritz/Laurieは、両方のカテゴリーと一致する項目を返します。 ・To do an OR between terms, use a pipecharacter(|),URL-encoded as %7C. ・(|)によって用語を分割することで、ORとすることもできる。(|)は、%7CとしてURLエンコードされる。 For example http //www.example.com/feeds/jo/-/Fritz%7CLauriereturns entries that match either category.例えば、http //www.example.com/feeds/jo/-/Fritz%7CLaurieは、どちらかのカテゴリーに一致する項目を返します。 ・An entry matches a specified category if the entry is inacategory that has a matching term or label, as defined in theAtomspecification.・そのエントリーが、Atomの仕様で定義されているエントリーと一致する場合には、エントリーが用語かラベルに一致します。 (Roughly, the term is the internal string used by the software to identifythecategory, while the label is the human-readable string presented to a user in auserinterface.)(大体、用語( term )は、カテゴリーを識別するためにソフトウェアで使用される文字列です。 ラベル( label )が、ユーザーインタフェースで使用される文字列です。) ・To exclude entries that match a given category, usetheform /-categoryname/.・ある特定のカテゴリーを除外する場合には、/-categoryname/ を使用しなさい。 ・To query for a category that has a schemesuch as category scheme= urn google.com term= public / you must place theschemein curly braces before the category name.・schemesuchを持っているカテゴリを問い合わせる場合には、 categoryscheme= urn google.com term= public / カテゴリーの前から{}(中括弧)のペアを使ってください。 For example /{urn google.com}public. To match acategorythat has no scheme, use an empty pair of curly braces.例えば、/{urn google.com}public. schemeを持たないカテゴリを一致させるには、{}を一組使ってください。 If you don t specify curly braces, then categories in any schemewillmatch.もし、{}を使用しなければ、すべてのschemeと一致するでしょう。 ・Theabovefeatures can be combined. ・それらの特徴は、組み合わせる事が出来ます。For example /A%7C-{urn google.com}B/-C means (A OR(NOTB)) AND (NOT C). 例えば、/A%7C-{urn google.com}B/-C (A OR(NOTB)) AND (NOT C)を意味します。 author Entry author The service returns entries where the author name and/oremail address match your query string.サービスは、あなたのquery文字列に一致する、作者名前および/またはEメールアドレスを返します。 alt Alternative representation type If you don t specify an alt parameter, the service returnsan Atom feed.もし、altパラメータを使用しなければ、サーバーはAtomfeedを返します。 This is equivalent to alt=atom.これは、alt=atom と同じです。 alt=rss returns an RSS 2.0 result feed.alt=rss を指定すると、RSS2.0を返します。 updated-min updated-max Bounds on the entry publication date Use the RFC 3339 timestamp format.RFC3339タイムスタンプ・フォーマットを使用してください。 For example 2005-08-09T10 57 00-08 00.例えば、 2005-08-09T10 57 00-08 00. Thelower bound is inclusive, whereas the upper bound is exclusive.上限は、排他的であるが、下限は、包括的である。 start-index 1-based index of the first result to beretrieved Note that this isn t a general cursoring mechanism.これが一般的なcursoring メカニズムでないことに注意しなさい。 If you first send a query with ?start-index=1 max-results=10 and then send another query with ?start-index=11 max-results=10, the service cannot guarantee that the results are equivalent to ?start-index=1 max-results=20, because insertions and deletions could have taken place in between the two queries.最初に ?start-index=1 max-results=10 の付加されたクエリを送れば、そしてだれかが、?start-index=11 max-results=10の付加されたクエリを送れば、 サービスは、挿入と削除が2つの問い合わせの間に起こったかもしれないので、結果が同じであることを保証しません。 max-results Maximum number of results to be retrieved For any service that has a default max-results value (to limit default feed size), you can specify a very large number if you want to receive the entire feed.デフォルトでfeedの制限がある場合、サービス全体のfeedを取得したいと思えば、あなたが指定すればとても大きなSizeを指定することが出来ます entryID ID of a specific entry to be retrieved If you specify an entry ID, you can t specify any other parameters.もし、entry IDをすれば、ほかのパラメータは指定できません。 The form of the entry ID is determined by the GData service.entry IDの形式は、GDataサービスによって定められています。 Unlike most of the other query parameters, entry ID is specified as part of the URI, not as a name=value pair.他のほとんどのqueryパラメータと違い、entry IDは、name=value のペア形式じゃなくURLの一部として指定されます。 Example http //www.example.com/feeds/jo/entry1.例:http //www.example.com/feeds/jo/entry1.
https://w.atwiki.jp/ce00582/pages/5753.html
html head script type="text/javascript" src="https //www.google.com/jsapi" /script script src="pop.js" /script title pop /title /head body p id="chart" /p /body /html google.load( visualization , 1 , { packages [ geomap ]}); google.setOnLoadCallback(drawChart); function drawChart() { var query = new google.visualization.Query( https //docs.google.com/spreadsheet/ccc?key=0Atc7WttLh-m7dFdMSzdIXzF2dFpKczZ3a3M0YURTTFE usp=drive_web#gid=0 ); query.send(handleQueryResponse); } function handleQueryResponse(response) { if (response.isError()) {alert("Error"); return; } var data = response.getDataTable(); var options = {}; options[ region ] = JP ; var container = document.getElementById( chart ); var geomap = new google.visualization.GeoMap(container); geomap.draw(data,options); }
https://w.atwiki.jp/devlabo/pages/29.html
参考ページ:PhpSpreadsheetのTIPSあれこれ https //qiita.com/BRSF/items/ed32311d48161be7c719 参考にさせていただきました。ありがとうございます。