如何使用访问令牌对vk组进行授权vk sdk

时间:2018-11-01 21:03:40

标签: java authorization vk-sdk

我有以下代码:

  GroupAuthResponse response = apiClient.oauth()
            .groupAuthorizationCodeFlow(authData.getAPP_ID(), authData.getCLIENT_SECRET(), authData.getREDIRECT_URI(), authData.getCode())
            .execute();

    this.actor = new GroupActor(groupId, response.getAccessTokens().get(groupId));

authData是一个数据类,其中包含我需要的数据,一切正确,我将对其进行检查。但我需要获得授权才能使用从组(或反向)授权应用程序中获得的访问令牌。

0 个答案:

没有答案