VK API java sdk account.getProfiles访问被拒绝?

VK API java sdk account.getProfiles访问被拒绝?,java,api,vk,Java,Api,Vk,我正在玩VKAPI,并安装了一个应用程序,目前为止我已经安装了所有需要的东西。 但是,当我针对mzprofile调用account.GetProfiles方法时,我收到以下错误消息: {"error":{"error_code":15,"error_msg":"Access denied: no access to call this method","request_params":[{"key":"oauth","value":"1"},{"key":"method","value":"ac

我正在玩VKAPI,并安装了一个应用程序,目前为止我已经安装了所有需要的东西。 但是,当我针对
mz
profile调用
account.GetProfiles
方法时,我收到以下错误消息:

{"error":{"error_code":15,"error_msg":"Access denied: no access to call this method","request_params":[{"key":"oauth","value":"1"},{"key":"method","value":"account.getProfileInfo"},{"key":"uid","value":"430334214"}]}}
我的查询代码如下:

String  getProfile = "https://api.vk.com/method/account.getProfileInfo?uid="+userID+"&access_token="+oauth2Token;
URL profile = new URL(getProfile);
HttpURLConnection connection = (HttpURLConnection) profile .openConnection();
System.out.println("/#/Debug: "+profile .toString());
connection.setRequestMethod("GET");
int responseCode = connection.getResponseCode();
有人有主意吗?不幸的是,网上没有太多的英语。。。我已经挣扎了一个多小时试图弄明白这一点。。。 如果我只调用
getProfiles
方法,所有的工作都很有魅力,但我想获得更多的数据


干杯

您需要获取服务访问密钥才能查询account.GetProfiles。请点击链接:

https://vk.com/dev

选择一项“我的应用”->“设置”,并创建应用程序令牌。使用“服务令牌”向VKAPI发送请求。

不幸的是,它不起作用。我在请求中将其作为一个常规参数传递,相同的错误消息仍然存在……请阅读有关调用此方法的更多信息:,它仅适用于独立应用程序(移动)并且仅通过隐式流。