/v1/authored
Kata a member has created
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
curl "https://api.oanor.com/codewars-api/v1/authored" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/codewars-api/v1/authored", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/codewars-api/v1/authored");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/codewars-api/v1/authored",
headers={"x-oanor-key": "oanor_test_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"data": {
"count": 142,
"source": "Codewars",
"authored": [
{
"id": "5e4bb05b698ef0001e3344bc",
"name": "Operations on sequences",
"rank": -5,
"tags": [
"Algorithms",
"Mathematics"
],
"languages": [
"prolog",
"python",
"java",
"fortran",
"rust",
"clojure",
"javascript",
"csharp",
"pascal",
"lua",
"perl",
"raku",
"elm",
"cobol",
"d",
"erlang",
"go"
],
"rank_name": "5 kyu",
"description": "Let an array or a list \n\n`arr = [x(1), x(2), x(3), x(4), ..., x(i), x(i+1), ..., x(m), x(m+1)]`\n\nwhere all `x(i)` are positive integers. \nThe length `lg` of this array will be a positive multiple of 4.\n\nLet \n\n`P = (x(1) ** 2 + x(2) ** 2) * (x(3) ** 2 + x(4) ** 2) * ... * (x(m) **",
"total_stars": null,
"total_attempts": null,
"total_completed": null
},
{
"id": "5e1f2234c5772a000fe7f7ce",
"name": "Transform",
"rank": null,
"tags": [
"Fundamentals"
],
"languages": [
"shell",
"perl"
],
"rank_name": null,
"description": "Let us consider, as an example, strings like the following:\n```\ns='\"Title\"\nDate class\n.\n.\n\"Connected\"\nfifo,\nisoYear,\ndaynum,\nargfirst,\nmonthend,\nweeknum,\nassoc.quantity,\nyearstart,\nrank,\ntoday.'\nor:\ns=\"\\\"Title\\\"\\nDate class \\n.\\n.\\n\\\"Connected\\\"\\nfifo, \\nisoYear, \\ndaynum, \\nargf",
"total_stars": null,
"total_attempts": null,
"total_completed": null
},
{
"id": "5df754981f177f0032259090",
"name": "A floating-point system",
"rank": -6,
"tags": [
"Fundamentals"
],
"languages": [
"java",
"kotlin",
"shell",
"ruby",
"python",
"rust"
],
"rank_name": "6 kyu",
"description": "A floating-point number can be represented as `mantissa * radix ^ exponent` (^ is raising radix to power exponent).\nIn this kata we will be given a positive floating-point number `aNumber` and we want to decompose it into a positive integer `mantissa` \ncomposed of
…