CMS未结付款数据限制

时间:2019-12-14 00:19:35

标签: asp.net-web-api ssis socrata soda

我终于可以解决将Web API导入我的SQL环境所需的代码了。但是,当我运行SSIS脚本组件包(脚本语言:Visual Studio C#2017)时,我只能检索到数以百万计的1000条记录。一位顾问提到,我可能必须将App令牌合并到我的代码中才能访问其他记录。

有人可以确认这是真的吗?如果是这样,应该如何编码?

这是我的“ ForEach”循环代码之前的代码:

    public override void CreateNewOutputRows()

    {


        //Set Webservice URL
        ServicePointManager.Expect100Continue = true;
        ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;



        string wUrl = "https://openpaymentsdata.cms.gov/resource/bqf5-h6wd.json";
        string appt = "MyAppToken";


        try

        {



            //Call getWebServiceResult to return our Article attributes

            List<Payment> outPutResponse = GetWebServiceResult(wUrl);

如果还有使用应用令牌的替代方法(例如在HTTP连接中),请告诉我。

1 个答案:

答案 0 :(得分:1)

想通了...

https://openpaymentsdata.cms.gov/resource/bqf5-h6wd.json?$limit=10000&$$app_token="MyAppToken"