live_help Notes

assignment This action requires one of theses roles: Basic staff

settings Params

Param name Description
user_id optional . Must be String

The user id or slug

id required . Must be String

The requested id

comments powered by <span class='logo-disqus'>Disqus</span>
GET /v2/user_candidatures/62
200
{
  "id": 62,
  "user_id": 62,
  "birth_date": "1993-11-06",
  "gender": "male",
  "zip_code": "42412-5031",
  "country": "Kashyyyk",
  "birth_city": "East Miloberg",
  "birth_country": "Geonosis",
  "postal_street": "3147 Aufderhar Underpass",
  "postal_complement": null,
  "postal_city": "East Fanny",
  "postal_zip_code": null,
  "postal_country": null,
  "contact_affiliation": null,
  "contact_last_name": null,
  "contact_first_name": null,
  "contact_phone1": null,
  "contact_phone2": null,
  "max_level_memory": null,
  "max_level_logic": null,
  "other_information": null,
  "language": null,
  "meeting_date": null,
  "piscine_date": null,
  "created_at": "2017-11-21T17:08:56.880Z",
  "updated_at": "2017-11-21T17:08:56.880Z",
  "phone": null,
  "email": "sebulba@pacocharice.name",
  "pin": null,
  "phone_country_code": null,
  "hidden_phone": null
}
curl  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" "https://api.intra.42.fr/v2/user_candidatures/62"

{
  "id": 62,
  "user_id": 62,
  "birth_date": "1993-11-06",
  "gender": "male",
  "zip_code": "42412-5031",
  "country": "Kashyyyk",
  "birth_city": "East Miloberg",
  "birth_country": "Geonosis",
  "postal_street": "3147 Aufderhar Underpass",
  "postal_complement": null,
  "postal_city": "East Fanny",
  "postal_zip_code": null,
  "postal_country": null,
  "contact_affiliation": null,
  "contact_last_name": null,
  "contact_first_name": null,
  "contact_phone1": null,
  "contact_phone2": null,
  "max_level_memory": null,
  "max_level_logic": null,
  "other_information": null,
  "language": null,
  "meeting_date": null,
  "piscine_date": null,
  "created_at": "2017-11-21T17:08:56.880Z",
  "updated_at": "2017-11-21T17:08:56.880Z",
  "phone": null,
  "email": "sebulba@pacocharice.name",
  "pin": null,
  "phone_country_code": null,
  "hidden_phone": null
}
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/user_candidatures/62")
response.status
# => 200
response.parsed
# => {"id"=>62, "user_id"=>62, "birth_date"=>"1993-11-06", "gender"=>"male", "zip_code"=>"42412-5031", "country"=>"Kashyyyk", "birth_city"=>"East Miloberg", "birth_country"=>"Geonosis", "postal_street"=>"3147 Aufderhar Underpass", "postal_complement"=>nil, "postal_city"=>"East Fanny", "postal_zip_code"=>nil, "postal_country"=>nil, "contact_affiliation"=>nil, "contact_last_name"=>nil, "contact_first_name"=>nil, "contact_phone1"=>nil, "contact_phone2"=>nil, "max_level_memory"=>nil, "max_level_logic"=>nil, "other_information"=>nil, "language"=>nil, "meeting_date"=>nil, "piscine_date"=>nil, "created_at"=>"2017-11-21T17:08:56.880Z", "updated_at"=>"2017-11-21T17:08:56.880Z", "phone"=>nil, "email"=>"sebulba@pacocharice.name", "pin"=>nil, "phone_country_code"=>nil, "hidden_phone"=>nil}