Giter Site home page Giter Site logo

phigroslibrary-flaskapi's Introduction

Phigros Flask API Reference

Just Like Phigros Unlimited API, due to it's unstable (deprecated), so I write this.

API List

  • /api/phi/bests

Get Users Best, support Overflow songs, you can delete this limit.

args: Session | overflow (max:20) | songinfo Optional(bool) (Default:False)

{
    "status": true,
    "content": {
        "phi": true,
        "bests": [
            {
                "score": 1000000,
                "acc": 100.0,
                "level": "IN",
                "fc": true,
                "songId": "Adastraperaspera.RabbitHouse",
                "songname": "Ad astra per aspera",
                "difficulty": 15.8,
                "rks": 15.8
            },
            {
                "score": 972338,
                "acc": 99.57353210449219,
                "level": "AT",
                "fc": false,
                "songId": "Stasis.Maozon",
                "songname": "Stasis",
                "difficulty": 16.4,
                "rks": 16.090625251373435
            },
            {
                "score": 975114,
                "acc": 99.28541564941406,
                "level": "AT",
                "fc": false,
                "songId": "DESTRUCTION321.Normal1zervsBrokenNerdz",
                "songname": "DESTRUCTION 3,2,1",
                "difficulty": 16.6,
                "rks": 16.076981457484795
            }
            ...
        ],
        "PlayerID": "压压鸭ya",
        "ChallengeModeRank": 445,
        "RankingScore": 15.800082206726074
    }
}


  • /api/phi/best

Check User's best Songs.

args: songid | Session | diff: Optional(Default "IN") | songinfo Optional(bool) (Default:False)

  • tips: songid just like "DESTRUCTION321.Normal1zervsBrokenNerdz" || diff just like "EZ" "AT"
{
    "status": true,
    "content": {
        "record": {
            "score": 999383,
            "acc": 99.93145751953125,
            "level": "IN",
            "fc": true,
            "songId": "DESTRUCTION321.Normal1zervsBrokenNerdz",
            "songname": "DESTRUCTION 3,2,1",
            "difficulty": 15.9,
            "rks": 15.851600202364502
        },
        "PlayerID": "压压鸭ya",
        "ChallengeModeRank": 445,
        "RankingScore": 15.800082206726074
    }
}

  • /api/phi/info

User's Status, no others

args: session

{
    "status": true,
    "Content": {
        "PlayerID": "MoeMagicMango",
        "ChallengeModeRank": 245,
        "RankingScore": 13.175806999206543
    }
}
  • /api/phi/rand

songinfo Optional(bool) (Default:False)

{
    "status": true,
    "content": {
        "songid": "BetterGraphicAnimation.ルゼ",
        "songname": "Better Graphic Animation",
        "composer": "ルゼ",
        "level": "HD",
        "rating": 11.7
    }
}
  • /api/phi/song

args: songid

{
    "status": true,
    "content": {
        "songid": "BetterGraphicAnimation.ルゼ",
        "info": {
            "songname": "Better Graphic Animation",
            "composer": "ルゼ",
            "illustrator": "A-Zero Project",
            "chartDetail": {
                "EZ": {
                    "rating": 6.5,
                    "charter": "NerSAN"
                },
                "HD": {
                    "rating": 11.7,
                    "charter": "NerSAN"
                },
                "In": {
                    "rating": 15.3,
                    "charter": "縱連打の信者☆無極"
                },
                "level_list": [
                    6.5,
                    11.7,
                    15.3
                ]
            }
        }
    }
}
  • /api/phi/search

args: params

  • Use Difflib SequenceMatcher, maybe not work well :(
{
    "status": true,
    "content": {
        "song_name": "DESTRUCTION 3,2,1",
        "song_ratio": 0.7857142857142857,
        "song_id": "DESTRUCTION321.Normal1zervsBrokenNerdz"
    }
}
    
  • If cannot find this song():
{
    "message": "None",
    "status": false
}
    

...

License

AGPL-3.0 License

phigroslibrary-flaskapi's People

Stargazers

 avatar  avatar MiruClay avatar Pectics avatar  avatar MoeMagicMango avatar

Watchers

Kostas Georgiou avatar MoeMagicMango avatar

Forkers

waterbabythe6th

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.