Skip to content
This repository has been archived by the owner on Jul 5, 2021. It is now read-only.

Reference of v4 forward forward

TheSnowfield edited this page Apr 23, 2021 · 2 revisions
arguments description optional
token access token NO
any arguments / /

Explain

This API can forward the request to original arcapi

The raw data from arcapi stored in content

  • compatible with arcapi bearer authentication mode
  • all arguments are no limited
  • supported GET and POST

Example 0x00

POST request

https://example.com/ v4/arc/forward /friend/me/add

POST https://example.com/v4/arc/forward/friend/me/add HTTP/1.1
Accept-Encoding: identity
Authorization: Bearer YOUR ACCESS TOKEN
Connection: Keep-Alive

friend_code=000000001

Return data

{
    "status": 0,
    "content": {
        "success": true,
        "value": {
            "user_id": 114514,
            "updatedAt": "2020-02-13T12:04:12.604Z",
            "createdAt": "2020-02-13T12:04:12.604Z",
            "friends": [
                {
                    "user_id": 114515,
                    "name": "Hikari",
                    "recent_score": [],
                    "character": 0,
                    "join_date": 1145141145141,
                    "rating": 0,
                    "is_skill_sealed": false,
                    "is_char_uncapped": true,
                    "is_char_uncapped_override": false,
                    "is_mutual": true
                }
            ]
        }
    }
}

Example 0x01

GET request

https://example.com/ v4/arc/forward /score/song/friend?song_id=grievouslady&difficulty=2&start=0&limit=1

GET https://example.com/v4/arc/forward/score/song/friend?song_id=grievouslady&difficulty=2&start=0&limit=1 HTTP/1.1
Accept-Encoding: identity
Authorization: Bearer YOUR ACCESS TOKEN
Connection: Keep-Alive

Return data

{
    "status": 0,
    "content": {
        "success": true,
        "value": [
            {
                "user_id": 114514,
                "song_id": "grievouslady",
                "difficulty": 0,
                "score": 0,
                "shiny_perfect_count": 0,
                "perfect_count": 0,
                "near_count": 0,
                "miss_count": 0,
                "health": 0,
                "modifier": 0,
                "time_played": 1145141145141,
                "clear_type": 0,
                "best_clear_type": 0,
                "name": "Hikari",
                "character": 0
            }
        ]
    }
}

Error status

status description
0 everything is OK
-1 invalid token
-2 invalid token
-3 illegal forward url
-233 unknown error occurred
Clone this wiki locally