settings Params

Param name Description
id required . Must be String

The requested id

GET /v2/quests_users/3
200
{
  "id": 3,
  "end_at": null,
  "quest_id": 1,
  "validated_at": null,
  "prct": null,
  "advancement": null,
  "created_at": "2017-11-22T13:42:11.480Z",
  "updated_at": "2017-11-22T13:42:11.480Z",
  "user": {
    "id": 15,
    "login": "mwindu",
    "url": "https://api.intra.42.fr/v2/users/mwindu"
  },
  "quest": {
    "id": 1,
    "name": "Level 14",
    "slug": "level-14",
    "kind": "main",
    "internal_name": null,
    "description": "Reach the level 14.",
    "cursus_id": 2,
    "campus_id": null,
    "created_at": "2017-11-22T13:42:11.464Z",
    "updated_at": "2017-11-22T13:42:11.464Z",
    "grade_id": null,
    "position": 1
  }
}
curl  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" "https://api.intra.42.fr/v2/quests_users/3"

{
  "id": 3,
  "end_at": null,
  "quest_id": 1,
  "validated_at": null,
  "prct": null,
  "advancement": null,
  "created_at": "2017-11-22T13:42:11.480Z",
  "updated_at": "2017-11-22T13:42:11.480Z",
  "user": {
    "id": 15,
    "login": "mwindu",
    "url": "https://api.intra.42.fr/v2/users/mwindu"
  },
  "quest": {
    "id": 1,
    "name": "Level 14",
    "slug": "level-14",
    "kind": "main",
    "internal_name": null,
    "description": "Reach the level 14.",
    "cursus_id": 2,
    "campus_id": null,
    "created_at": "2017-11-22T13:42:11.464Z",
    "updated_at": "2017-11-22T13:42:11.464Z",
    "grade_id": null,
    "position": 1
  }
}
require "oauth2"
UID = "Your application uid"
SECRET = "Your application secret"
client = OAuth2::Client.new(UID, SECRET, site: "https://api.intra.42.fr")
token = client.client_credentials.get_token

response = token.get("/v2/quests_users/3")
response.status
# => 200
response.parsed
# => {"id"=>3, "end_at"=>nil, "quest_id"=>1, "validated_at"=>nil, "prct"=>nil, "advancement"=>nil, "created_at"=>"2017-11-22T13:42:11.480Z", "updated_at"=>"2017-11-22T13:42:11.480Z", "user"=>{"id"=>15, "login"=>"mwindu", "url"=>"https://api.intra.42.fr/v2/users/mwindu"}, "quest"=>{"id"=>1, "name"=>"Level 14", "slug"=>"level-14", "kind"=>"main", "internal_name"=>nil, "description"=>"Reach the level 14.", "cursus_id"=>2, "campus_id"=>nil, "created_at"=>"2017-11-22T13:42:11.464Z", "updated_at"=>"2017-11-22T13:42:11.464Z", "grade_id"=>nil, "position"=>1}}