创建API以访问Google电子表格

时间:2017-12-15 10:41:18

标签: api google-apps-script google-sheets

我想让远程用户可以使用Google电子表格。此用户希望使用API​​请求来访问电子表格。实施的最佳方式是什么? 使用Web应用程序还是使用Execution API?

1 个答案:

答案 0 :(得分:0)

如果电子表格不是protected,您可以使用电子表格openById轻松访问它。

<Grid>
    <Button Content="Enable Editing" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Width="100" Click="BtnEnable_Click"/>
    <Button Content="Disable Editing" HorizontalAlignment="Left" Margin="115,10,0,0" VerticalAlignment="Top" Width="100" Click="BtnDisable_Click"/>

    <Grid Name="grid" Background="AliceBlue" Margin="10,37,10,10">
        <Button Content="Button" HorizontalAlignment="Left" Margin="83,44,0,0" VerticalAlignment="Top" Width="75"/>
        <Ellipse Fill="#FFF4F4F5" HorizontalAlignment="Left" Height="100" Margin="207,100,0,0" Stroke="Black" VerticalAlignment="Top" Width="100"/>
        <Rectangle Fill="#FFF4F4F5" HorizontalAlignment="Left" Height="100" Margin="33,134,0,0" Stroke="Black" VerticalAlignment="Top" Width="100"/>
    </Grid>
</Grid>