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/languages_users/27
200
{
  "id": 27,
  "language_id": 2,
  "user_id": 27,
  "position": 1,
  "created_at": "2017-03-06T14:58:51.013Z"
}
curl  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" "https://api.intra.42.fr/v2/languages_users/27"

{
  "id": 27,
  "language_id": 2,
  "user_id": 27,
  "position": 1,
  "created_at": "2017-03-06T14:58:51.013Z"
}
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/languages_users/27")
response.status
# => 200
response.parsed
# => {"id"=>27, "language_id"=>2, "user_id"=>27, "position"=>1, "created_at"=>"2017-03-06T14:58:51.013Z"}