【问题标题】:Azure Mobile Services use from command line for testing从命令行使用 Azure 移动服务进行测试
【发布时间】:2013-06-13 06:45:23
【问题描述】:

我有一个 Windows Azure 移动服务,可以很好地与官方客户端配合使用。但是,如果我可以从命令行脚本运行我的测试而无需编写和编译代码,那就更好了。

如何参数化 curlwget 才能访问我的服务中的表和 API 脚本?

【问题讨论】:

    标签: mobile curl azure command-line wget


    【解决方案1】:

    这个有一些 curl 调用,可帮助对我的演示移动服务应用程序进行快速测试...

    请注意自定义标题“X-ZUMO-APPLICATION”以及您如何配置表的权限。最简单的方法是只使用应用程序密钥。

    Experimenting with Windows Azure Mobile Services

    例子:

    #read table
    curl --header X-ZUMO-APPLICATION:{apptoken} https://{servicenamespace}.azure-mobile.net/tables/{tablename}
    #invoke API script
    curl --header X-ZUMO-APPLICATION:{apptoken} https://{servicenamespace}.azure-mobile.net/api/{scriptname}
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-06-26
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多