c# - 如何在 Salesforce 中检索 API 限制信息?
问题描述
我正在检索我的服务并在成功登录后调用以下命令
SforceService myservice = null;
LimitInfo apiLimits = null;
if (myservice.LimitInfoHeaderValue != null)
mylimits = myservice.LimitInfoHeaderValue.limitInfo[0];
但 myservice.LimitInfoHeaderValue 始终为 null ?我会假设它会在成功登录时填充数据?
解决方案
推荐阅读
- java - “return”没有返回到调用函数
- java - 从库 jar 文件访问资源文件时,流已关闭
- google-api - 使用 Google Drive v3 API 删除共享文件夹中其他用户的文件
- go - 如何访问cgo中的全局变量?
- javascript - 获取 Express 中的请求数
- javascript - 如何将用户从 NodeJS 服务器发布到页面?
- javascript - 如何突出显示所有 div 并为每个 div 添加一种导航
- node.js - 如何修复更新与nodeJS中发送的ID不同的ID的PUT路由
- android - 如何解决在 setContentView() 之后返回 Null 的 findViewByID()
- python - 自动分配给 Python 默认参数的参数