Пример #1
0
        internal Community(PSAPI context)
        {
            var param = new
            {
                npsso          = context._npsso,
                device_profile = "mobile",
                grant_type     = "sso_cookie",
                scope          = "psn:sceapp,user:account.get,user:account.settings.privacy.get,user:account.settings.privacy.update,user:account.realName.get,user:account.realName.update,kamaji:get_account_hash,kamaji:communities_mobileapp,kamaji:satchel,kamaji:game_list,capone:report_submission",
                service_entity = "urn:service-entity:psn",
                ui             = "pr",
                duid           = "0000000d000400808F4B3AA3301B4945B2E3636E38C0DDFC",
                client_id      = "58f7f128-5325-41f1-bcff-7b590b7200cd",
                client_secret  = "BFogDNpBInrYB8s0"
            };
            var res = Http.Post(Consts.APIEndpoints.OAUTH_URL, param);

            if (res.HasError)
            {
                throw new PSNException(res.ErrorMessage.AsJson()["error_description"]);
            }

            _accessToken = res.AsJson()["access_token"];
        }
Пример #2
0
 internal Messages(PSAPI context)
 {
     _context = context;
 }
Пример #3
0
 internal Friend(PSAPI context)
 {
     _context = context;
 }
Пример #4
0
 internal Profile(PSAPI context)
 {
     _context = context;
     Info();
 }