如何在框中获取用户详细信息?

时间:2018-12-28 07:31:46

标签: .net box-api

我已经为box api和客户端生成了一个管理令牌,该如何从中获取构建应用程序的box id和user id?

我要获取帐户和用户ID

这是我的令牌生成代码:-

        string clientId = "ClientId";
        string clientSecret = "ClientSecret";
        string enterpriseId = "enterpriseId";
        string jwtPrivateKeyPassword = "privateKeyPassword";
        string jwtPublicKeyId = "public key id";
        string jwtPrivateKey = "private key";


        BoxConfig config = new BoxConfig(clientId, clientSecret, enterpriseId, jwtPrivateKey, jwtPrivateKeyPassword, jwtPublicKeyId);

        var boxJWT = new BoxJWTAuth(config);

        var adminToken = boxJWT.AdminToken();
        var client = boxJWT.AdminClient(adminToken);

0 个答案:

没有答案