将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 填入表格