settings Params

Param name Description
id required . Must be String

The requested id

comments powered by <span class='logo-disqus'>Disqus</span>
GET /v2/scale_teams/1
200
{
  "id": 1,
  "scale_id": 1,
  "comment": null,
  "created_at": "2017-03-06T14:59:34.703Z",
  "updated_at": "2017-03-06T14:59:34.703Z",
  "feedback": null,
  "feedback_rating": null,
  "final_mark": null,
  "flag": {
    "id": 1,
    "name": "Ok",
    "positive": true,
    "icon": "check-4",
    "created_at": "2017-03-06T14:58:45.166Z",
    "updated_at": "2017-03-06T14:58:45.166Z"
  },
  "begin_at": "2017-03-08T19:00:00.000Z",
  "correcteds": "invisible",
  "corrector": "invisible",
  "truant": {},
  "scale": {
    "id": 1,
    "evaluation_id": 1,
    "name": "South Carolina vixens",
    "is_primary": true,
    "comment": "Rem dolor green juice. Et hammock taxidermy farm-to-table placeat bushwick tattooed. Ea sit celiac trust fund photo booth. Soluta aut iusto locavore aut tilde.",
    "introduction_md": "Synth enim twee vitae chillwave ut. Helvetica corporis pbr&b excepturi keytar quae inventore. Rem dolores et est numquam seitan qui.",
    "disclaimer_md": "Mlkshk illo lo-fi. Distillery vinyl actually literally meh franzen. Organic heirloom laudantium pbr&b venmo. Five dollar toast vinegar dolores farm-to-table.",
    "guidelines_md": "Et saepe aut doloribus farm-to-table aut selfies laboriosam. Quo quisquam corporis fugiat est migas.",
    "created_at": "2017-03-06T14:59:05.553Z",
    "correction_number": 3,
    "duration": 1800,
    "manual_subscription": true,
    "languages": [
      {
        "id": 2,
        "name": "English",
        "identifier": "en",
        "created_at": "2017-03-06T14:58:43.172Z",
        "updated_at": "2017-03-06T14:58:43.172Z"
      }
    ]
  },
  "feedbacks": []
}
curl  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" "https://api.intra.42.fr/v2/scale_teams/1"

{
  "id": 1,
  "scale_id": 1,
  "comment": null,
  "created_at": "2017-03-06T14:59:34.703Z",
  "updated_at": "2017-03-06T14:59:34.703Z",
  "feedback": null,
  "feedback_rating": null,
  "final_mark": null,
  "flag": {
    "id": 1,
    "name": "Ok",
    "positive": true,
    "icon": "check-4",
    "created_at": "2017-03-06T14:58:45.166Z",
    "updated_at": "2017-03-06T14:58:45.166Z"
  },
  "begin_at": "2017-03-08T19:00:00.000Z",
  "correcteds": "invisible",
  "corrector": "invisible",
  "truant": {},
  "scale": {
    "id": 1,
    "evaluation_id": 1,
    "name": "South Carolina vixens",
    "is_primary": true,
    "comment": "Rem dolor green juice. Et hammock taxidermy farm-to-table placeat bushwick tattooed. Ea sit celiac trust fund photo booth. Soluta aut iusto locavore aut tilde.",
    "introduction_md": "Synth enim twee vitae chillwave ut. Helvetica corporis pbr&b excepturi keytar quae inventore. Rem dolores et est numquam seitan qui.",
    "disclaimer_md": "Mlkshk illo lo-fi. Distillery vinyl actually literally meh franzen. Organic heirloom laudantium pbr&b venmo. Five dollar toast vinegar dolores farm-to-table.",
    "guidelines_md": "Et saepe aut doloribus farm-to-table aut selfies laboriosam. Quo quisquam corporis fugiat est migas.",
    "created_at": "2017-03-06T14:59:05.553Z",
    "correction_number": 3,
    "duration": 1800,
    "manual_subscription": true,
    "languages": [
      {
        "id": 2,
        "name": "English",
        "identifier": "en",
        "created_at": "2017-03-06T14:58:43.172Z",
        "updated_at": "2017-03-06T14:58:43.172Z"
      }
    ]
  },
  "feedbacks": []
}
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/scale_teams/1")
response.status
# => 200
response.parsed
# => {"id"=>1, "scale_id"=>1, "comment"=>nil, "created_at"=>"2017-03-06T14:59:34.703Z", "updated_at"=>"2017-03-06T14:59:34.703Z", "feedback"=>nil, "feedback_rating"=>nil, "final_mark"=>nil, "flag"=>{"id"=>1, "name"=>"Ok", "positive"=>true, "icon"=>"check-4", "created_at"=>"2017-03-06T14:58:45.166Z", "updated_at"=>"2017-03-06T14:58:45.166Z"}, "begin_at"=>"2017-03-08T19:00:00.000Z", "correcteds"=>"invisible", "corrector"=>"invisible", "truant"=>{}, "scale"=>{"id"=>1, "evaluation_id"=>1, "name"=>"South Carolina vixens", "is_primary"=>true, "comment"=>"Rem dolor green juice. Et hammock taxidermy farm-to-table placeat bushwick tattooed. Ea sit celiac trust fund photo booth. Soluta aut iusto locavore aut tilde.", "introduction_md"=>"Synth enim twee vitae chillwave ut. Helvetica corporis pbr&b excepturi keytar quae inventore. Rem dolores et est numquam seitan qui.", "disclaimer_md"=>"Mlkshk illo lo-fi. Distillery vinyl actually literally meh franzen. Organic heirloom laudantium pbr&b venmo. Five dollar toast vinegar dolores farm-to-table.", "guidelines_md"=>"Et saepe aut doloribus farm-to-table aut selfies laboriosam. Quo quisquam corporis fugiat est migas.", "created_at"=>"2017-03-06T14:59:05.553Z", "correction_number"=>3, "duration"=>1800, "manual_subscription"=>true, "languages"=>[{"id"=>2, "name"=>"English", "identifier"=>"en", "created_at"=>"2017-03-06T14:58:43.172Z", "updated_at"=>"2017-03-06T14:58:43.172Z"}]}, "feedbacks"=>[]}