settings Params

Param name Description
id required . Must be String

The requested id

comments powered by <span class='logo-disqus'>Disqus</span>
GET /v2/quests_users/4
200
{
  "id": 4,
  "end_at": null,
  "quest_id": 1,
  "validated_at": null,
  "prct": null,
  "advancement": null,
  "created_at": "2017-03-06T14:59:36.625Z",
  "updated_at": "2017-03-06T14:59:36.625Z",
  "user": {
    "id": 53,
    "login": "chechewb",
    "url": "https://api.intra.42.fr/v2/users/chechewb"
  },
  "quest": {
    "id": 1,
    "name": "Level 14",
    "slug": "level-14",
    "kind": "main",
    "internal_name": null,
    "description": "Reach the level 14.",
    "cursus_id": 1,
    "campus_id": null,
    "created_at": "2017-03-06T14:59:36.606Z",
    "updated_at": "2017-03-06T14:59:36.606Z",
    "grade_id": null,
    "position": 1
  }
}
curl  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" "https://api.intra.42.fr/v2/quests_users/4"

{
  "id": 4,
  "end_at": null,
  "quest_id": 1,
  "validated_at": null,
  "prct": null,
  "advancement": null,
  "created_at": "2017-03-06T14:59:36.625Z",
  "updated_at": "2017-03-06T14:59:36.625Z",
  "user": {
    "id": 53,
    "login": "chechewb",
    "url": "https://api.intra.42.fr/v2/users/chechewb"
  },
  "quest": {
    "id": 1,
    "name": "Level 14",
    "slug": "level-14",
    "kind": "main",
    "internal_name": null,
    "description": "Reach the level 14.",
    "cursus_id": 1,
    "campus_id": null,
    "created_at": "2017-03-06T14:59:36.606Z",
    "updated_at": "2017-03-06T14:59:36.606Z",
    "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/4")
response.status
# => 200
response.parsed
# => {"id"=>4, "end_at"=>nil, "quest_id"=>1, "validated_at"=>nil, "prct"=>nil, "advancement"=>nil, "created_at"=>"2017-03-06T14:59:36.625Z", "updated_at"=>"2017-03-06T14:59:36.625Z", "user"=>{"id"=>53, "login"=>"chechewb", "url"=>"https://api.intra.42.fr/v2/users/chechewb"}, "quest"=>{"id"=>1, "name"=>"Level 14", "slug"=>"level-14", "kind"=>"main", "internal_name"=>nil, "description"=>"Reach the level 14.", "cursus_id"=>1, "campus_id"=>nil, "created_at"=>"2017-03-06T14:59:36.606Z", "updated_at"=>"2017-03-06T14:59:36.606Z", "grade_id"=>nil, "position"=>1}}