將json 填入表格
UPDATE: 5/13/2020 - New Share Dialog Box steps available below.
更新:5/13/2020-下面提供了`` 新共享''對話框步驟。
Thanks Erica H!
謝謝埃里卡H!
Are you building a prototype dynamic web application and need to collaborate with non-developers?
您是否正在構建動態Web應用程序原型并需要與非開發人員合作?
I have been to a hackathon before and experienced participating with the knowledge on how to develop an application but lacked the skill or time to implement a full-stack web application in the 3-day sprint. That time may skill was way too low to even help out and was sidelined to watch tutorials and study HTML and CSS.
我之前參加過一次黑客馬拉松,并有豐富的經驗來參與有關如何開發應用程序的知識,但是缺乏在3天的沖刺中實現全棧Web應用程序的技能或時間。 那個時候的技能太低了,甚至無法幫上忙,并被旁聽了教程和學習HTML和CSS。
The result? I have learned a lot but I wished I could've contributed more.
結果? 我學到了很多東西,但我希望自己能做得更多。
In one of the hackathons I have participated in recently, I encountered a similar problem. This time around I was not the newbie. I had non-engineers who wanted to help in building our prototype web application. Luckily, we stumbled upon a Google Spreadsheets as a way for our non-engineers to mock up our database and have the back-end developers connect to Google Sheets JSON Endpoint and parse it.
在我最近參加的一次黑客馬拉松中,我遇到了類似的問題。 這次我不是新手。 我有一些非工程師想要幫助構建我們的原型Web應用程序。 幸運的是,我們偶然發現了Google Spreadsheets,這是一種讓非工程師模擬我們的數據庫并使后端開發人員連接到Google Sheets JSON Endpoint并進行解析的方法。
With this guide, you'll be able to:
有了本指南,您將能夠:
- Create a spreadsheet in Google Spreadsheets. 在Google Spreadsheets中創建電子表格。
- Publish the spreadsheet to the web. 將電子表格發布到網絡上。
- Generate a JSON endpoint. 生成JSON端點。
- Open the spreadsheet for public collaboration. 打開電子表格以進行公共協作。
- Pass the JSON endpoint to your back-end developer. 將JSON端點傳遞給您的后端開發人員。
After this tutorial, you'll be able to join teams and say, "I can help with the back-end!".
學習完本教程后,您將可以加入團隊并說:“我可以為后端提供幫助!”。
第1節:創建Google表格 (Section 1: Creating a Google Sheet)
Step 1:
第1步:
Go to Google Sheets
轉到Google表格
Step 2:
第2步:
Create a new spreadsheet
創建一個新的電子表格
第2節:將您的Google表格發布到網絡上 (Section 2: Publishing your Google Sheets to the web)
Note: New Share Dialog Box update as of 5/13/2020, located after Step 2.
注意:“新共享”對話框將于2020年5月13日更新,位于步驟2之后。
Step 1:
第1步:
Click File > Publish to the web…
點擊文件 > 發布到網絡...
Step 2:
第2步:
Click Publish, then OK
點擊發布 ,然后點擊確定
Step 3:
第三步:
No need to do anything here
不用在這里做任何事
更新:5/13/2020-新建共享對話框 (UPDATE: 5/13/2020 - New Share Dialog Box)
Step 1:Click Share
步驟1:按一下[共用]
Step 2:
第2步:
Click "Change to anyone with the link"
點擊“使用鏈接更改為任何人”
Step 3:
第三步:
Click "Done"
點擊“完成”
第4節:將Google表格用作JSON端點 (Section 4: Using your Google Sheets as JSON endpoint)
Step 1:
第1步:
Copy the template URL and paste in the address bar:
復制模板URL并粘貼在地址欄中:
https://spreadsheets.google.com/feeds/cells/YOURGOOGLESHEETCODE/SHEETPAGENUMBER/public/full?alt=json
https://spreadsheets.google.com/feeds/cells/YOURGOOGLESHEETCODE/SHEETPAGENUMBER/public/full?alt=json
Step 2:
第2步:
Go to your opened Google Sheets and check the address bar
轉到打開的Google表格,然后檢查地址欄
Step 3:
第三步:
Go to the template URL and replace
轉到模板URL并替換
YOURGOOGLESHEETCODE with 1ifbWzueslEP5-_ysP6gg7o_NaHQmqF8LlXBfStCwFMs
YOURGOOGLESHEETCODE與1ifbWzueslEP5-_ysP6gg7o_NaHQmqF8LlXBfStCwFMs
SHEETPAGENUMBER to 1
SHEETPAGENUMBER至1
Step 4:
第4步:
Retrieve JSON URL
檢索JSON URL
https://spreadsheets.google.com/feeds/cells/1ifbWzueslEP5-_ysP6gg7o_NaHQmqF8LlXBfStCwFMs/1/public/full?alt=json
https://spreadsheets.google.com/feeds/cells/1ifbWzueslEP5-_ysP6gg7o_NaHQmqF8LlXBfStCwFMs/1/public/full?alt=json
第5節:公開您的Google表格(用于協作和數據輸入) (Section 5: Making your Google Sheets public (for collaboration and data entry))
第1步: (Step 1:)
On the top right, click Share
點擊右上角的共享
Step 2:
第2步:
Add a name, click Save
添加名稱,單擊保存
Step 3:
第三步:
Click Advanced
點擊高級
Step 4:
第4步:
Click Change…
點擊更改...
Step 5:
步驟5:
Click On?—?Public on the web, then Save
單擊“ 打開” —“在網絡上公開” ,然后單擊“ 保存”。
常見陷阱: (Common Gotchas:)
If you receive the response below, please check your URL and make sure you use the Google Sheets code in the address bar.
如果您收到以下答復,請檢查您的URL并確保使用地址欄中的Google表格代碼。
If you receive the response below, please go back to Section 2: Publishing your Google Sheets to the web.
如果您收到以下答復,請返回至第2節:將Google表格發布到網絡上。
Clark Jason Ngo - Graduate Teaching Assistant - Technology Institute - City University of Seattle |…Join LinkedIn * Passionate to nurture new software developers. Technical Skills: Git, MVC, JavaScript, NodeJS, ReactJS…www.linkedin.com
Clark Jason Ngo-西雅圖城市大學技術學院研究生教學助理|… 加入LinkedIn *熱情地培養新的軟件開發人員。 技術技能:Git,MVC,JavaScript,NodeJS,ReactJS… www.linkedin.com
翻譯自: https://www.freecodecamp.org/news/cjn-google-sheets-as-json-endpoint/
將json 填入表格