我也尝试简单地运行包括在salesforce sdk中的模板应用程序,但是我仍然会遇到错误。
我的代码是:使用的api_version是v35.0。
sendRequest("SELECT Name From CONTACTS");
private void sendRequest(String soql) throws UnsupportedEncodingException {
RestRequest restRequest = RestRequest.getRequestForQuery(getString(R.string.api_version), soql);
if(restClient!=null) {
restClient.sendAsync(restRequest, new RestClient.AsyncRequestCallback() {
@Override
public void onSuccess(RestRequest request, RestResponse result) {
}
@Override public void onError(Exception exception) { exception.printStackTrace(); }任何帮助都将不胜感激。谢谢
发布于 2016-04-21 11:32:26
这已经解决了,我需要在引导配置文件中授予刷新令牌的权限,作为基于用户刷新令牌的soql查询auth。
https://stackoverflow.com/questions/36257435
复制相似问题