live_help Notes

assignment This action requires one of theses roles: Advanced tutor

settings Params

Param name Description
flash_id optional . Must be String

The flash id

id required . Must be String

The requested id

GET /v2/flash_users/28
200
{
  "id": 28,
  "flash_id": 2,
  "seen": true,
  "end_at": "2016-06-13T18:40:57.031Z",
  "user": {
    "id": 10292,
    "login": "mguilbau",
    "url": "http://localhost:13000/v2/users/mguilbau"
  }
}
curl  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" "https://api.intra.42.fr/v2/flash_users/28"

{
  "id": 28,
  "flash_id": 2,
  "seen": true,
  "end_at": "2016-06-13T18:40:57.031Z",
  "user": {
    "id": 10292,
    "login": "mguilbau",
    "url": "http://localhost:13000/v2/users/mguilbau"
  }
}
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/flash_users/28")
response.status
# => 200
response.parsed
# => {"id"=>28, "flash_id"=>2, "seen"=>true, "end_at"=>"2016-06-13T18:40:57.031Z", "user"=>{"id"=>10292, "login"=>"mguilbau", "url"=>"http://localhost:13000/v2/users/mguilbau"}}