codewars / codewars-api-docs

Codewars API v1 Docs
https://dev.codewars.com/
Apache License 2.0
23 stars 11 forks source link

I got some error response when I use codewars api #2

Closed no13bus closed 7 years ago

no13bus commented 9 years ago

When I type this: curl https://www.codewars.com/api/v1/users/no13bus I do not get some data like this:

{
    "username": "some_user",
    "name": "Some Person",
    "honor": 544,
    "clan": "some clan",
    "leaderboardPosition": 134,
    "skills": [
        "ruby",
        "c#",
        ".net",
        "javascript",
        "coffeescript",
        "nodejs",
        "rails"
    ],
    "ranks": {
        "overall": {
            "rank": -3,
            "name": "3 kyu",
            "color": "blue",
            "score": 2116
        },
        "languages": {
            "javascript": {
                "rank": -3,
                "name": "3 kyu",
                "color": "blue",
                "score": 1819
            },
            "ruby": {
                "rank": -4,
                "name": "4 kyu",
                "color": "blue",
                "score": 1005
            },
            "coffeescript": {
                "rank": -4,
                "name": "4 kyu",
                "color": "blue",
                "score": 870
            }
        }
    },
    "codeChallenges": {
        "totalAuthored": 3,
        "totalCompleted": 230
    }
}

But I get these data:

{"data":[{"id":"5265326f5fda8eb1160004c8","name":"Convert a Number to a String!","slug":"convert-a-number-to-a-string","completedLanguages":["python"],"completedAt":"2014-10-17T01:39:08Z"},{"id":"53d32bea2f2a21f666000256","name":"Largest Elements","slug":"largest-elements","completedLanguages":["python"],"completedAt":"2014-10-16T15:36:32Z"},{"id":"540de1f0716ab384b4000828","name":"Unpacking Arguments","slug":"unpacking-arguments","completedLanguages":["python"],"completedAt":"2014-10-16T15:27:55Z"},{"id":"5390bac347d09b7da40006f6","name":"Jaden Casing Strings","slug":"jaden-casing-strings","completedLanguages":["python"],"completedAt":"2014-10-16T13:21:29Z"},{"id":"50654ddff44f800200000001","name":"Broken Greetings","slug":"broken-greetings","completedLanguages":["python"],"completedAt":"2014-10-16T12:49:59Z"},{"id":"50654ddff44f800200000004","name":"Multiply","slug":"multiply","completedLanguages":["python"],"completedAt":"2014-10-16T12:13:52Z"}]}

why??

jhoffner commented 8 years ago

Thats odd. Are you sure? That link works as expected for me.

curl https://www.codewars.com/api/v1/users/no13bus
{"username":"no13bus","name":"no13bus","honor":9,"clan":"CCC","leaderboardPosition":72959,"skills":["python"],"ranks":{"overall":{"rank":-8,"name":"8 kyu","color":"white","score":15},"languages":{"python":{"rank":-8,"name":"8 kyu","color":"white","score":15}}},"codeChallenges":{"totalAuthored":0,"totalCompleted":7}}
no13bus commented 7 years ago

ok. thank you.