Coder Social home page Coder Social logo

Comments (1)

curtishdev avatar curtishdev commented on August 12, 2024

Can you provide small def that will show eponse of this endpoint, I dont know what endpoint is it, thats why I asing you:
{
"_id": "0cfa707823534c17a32be0c5e1748da9",
"created": "2019-09-29T11:52:26.138Z",
"updated": "2023-08-20T18:55:25.045Z",
"rvn": 9361,
"wipeNumber": 5,
"accountId": "ade36c23e6a84faf93e72ead547b546e",
"profileId": "athena",
"version": "season25_2530_StoriesQuestBundleFix_Aug_2023",
"stats": {
"attributes": {
"past_seasons": [
{
"seasonNumber": 10,
"numWins": 0,
"numHighBracket": 0,
"numLowBracket": 0,
"seasonXp": 0,
"seasonLevel": 1,
"bookXp": 0,
"bookLevel": 1,
"purchasedVIP": false,
"numRoyalRoyales": 0
},
{
"seasonNumber": 11,
"numWins": 6,
"numHighBracket": 29,
"numLowBracket": 87,
"seasonXp": 55258,
"seasonLevel": 218,
"bookXp": 0,
"bookLevel": 100,
"purchasedVIP": true,
"numRoyalRoyales": 0
},
{
"seasonNumber": 12,
"numWins": 3,
"numHighBracket": 17,
"numLowBracket": 42,
"seasonXp": 26331,
"seasonLevel": 85,
"bookXp": 26331,
"bookLevel": 85,
"purchasedVIP": true,
"numRoyalRoyales": 0
},
{
"seasonNumber": 13,
"numWins": 12,
"numHighBracket": 36,
"numLowBracket": 126,
"seasonXp": 15161,
"seasonLevel": 96,
"bookXp": 15161,
"bookLevel": 96,
"purchasedVIP": true,
"numRoyalRoyales": 0
},
{
"seasonNumber": 14,
"numWins": 1,
"numHighBracket": 1,
"numLowBracket": 6,
"seasonXp": 5424,
"seasonLevel": 5,
"bookXp": 5424,
"bookLevel": 5,
"purchasedVIP": false,
"numRoyalRoyales": 0
},
{
"seasonNumber": 15,
"numWins": 4,
"numHighBracket": 20,
"numLowBracket": 108,
"seasonXp": 3504,
"seasonLevel": 85,
"bookXp": 3504,
"bookLevel": 85,
"purchasedVIP": true,
"numRoyalRoyales": 0
},
{
"seasonNumber": 16,
"numWins": 7,
"numHighBracket": 22,
"numLowBracket": 87,
"seasonXp": 18453,
"seasonLevel": 100,
"bookXp": 0,
"bookLevel": 100,
"purchasedVIP": true,
"numRoyalRoyales": 0
},
{
"seasonNumber": 17,
"numWins": 2,
"numHighBracket": 7,
"numLowBracket": 45,
"seasonXp": 20694,
"seasonLevel": 53,
"bookXp": 20694,
"bookLevel": 53,
"purchasedVIP": true,
"numRoyalRoyales": 0
},
{
"seasonNumber": 18,
"numWins": 0,
"numHighBracket": 0,
"numLowBracket": 0,
"seasonXp": 0,
"seasonLevel": 1,
"bookXp": 0,
"bookLevel": 1,
"purchasedVIP": true,
"numRoyalRoyales": 0
},
{
"seasonNumber": 19,
"numWins": 0,
"numHighBracket": 0,
"numLowBracket": 0,
"seasonXp": 0,
"seasonLevel": 1,
"bookXp": 0,
"bookLevel": 1,
"purchasedVIP": false,
"numRoyalRoyales": 0
},
{
"seasonNumber": 21,
"numWins": 5,
"numHighBracket": 11,
"numLowBracket": 25,
"seasonXp": 42832,
"seasonLevel": 52,
"bookXp": 42832,
"bookLevel": 52,
"purchasedVIP": true,
"numRoyalRoyales": 1
}

    async def account_info(info: dict, session: aiohttp.ClientSession = None) -> dict:
async with session.get(
    f"THIS ENDPOINT",
    headers={
        "Authorization": f"bearer {info['access_token']}",
        "content-type": "application/json"
    }
) as resp:
    print("\nAccount Info:\n")
    print((await resp.text())[:500])
    if resp.status != 200:
        return f"Sorry, the authorization code you supplied was not found. It is possible that it is no longer valid."
    else:
        account_data = await resp.json()
        return account_data

from fortniteresponsedumper.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.