settings Params

Param name Description
id required . Must be String

The requested id

GET /v2/messages/87
200
{
  "id": 87,
  "author": {
    "id": 39,
    "login": "anskywal",
    "url": "https://api.intra.42.fr/v2/users/anskywal"
  },
  "content": "Polaroid tote bag authentic knausgaard hashtag raw denim meggings vhs. Master tote bag readymade. Vinyl keytar listicle thundercats bitters master.\nPork belly cleanse microdosing letterpress shoreditch literally. Loko small batch next level mustache park helvetica +1. Fashion axe flannel green juice bitters cardigan tilde food truck 8-bit. Quinoa marfa diy vhs.\nDistillery cray cronut sartorial. Mumblecore marfa authentic. Pour-over cold-pressed irony.",
  "content_html": null,
  "replies": [
    {
      "id": 89,
      "author": {
        "id": 64,
        "login": "dacaedus",
        "url": "https://api.intra.42.fr/v2/users/dacaedus"
      },
      "content": "Hoodie mumblecore etsy cray knausgaard tattooed bespoke kale chips. Sriracha typewriter flexitarian meh bespoke. Truffaut migas cred 90's chambray direct trade readymade. Chambray bespoke twee sartorial venmo brunch kitsch farm-to-table. Knausgaard bespoke brooklyn gastropub hoodie slow-carb actually.\nIntelligentsia meh heirloom. Single-origin coffee lomo retro narwhal blog. Paleo kickstarter occupy kale chips crucifix. Jean shorts kombucha venmo keytar lumbersexual before they sold out. Knausgaard vinegar williamsburg austin seitan kombucha keffiyeh.\nMicrodosing park swag locavore pbr&b single-origin coffee. Flannel yr you probably haven't heard of them scenester pabst salvia before they sold out park. Kale chips aesthetic xoxo. Distillery williamsburg trust fund pitchfork authentic leggings. Flannel lumbersexual whatever fashion axe pour-over intelligentsia chartreuse banh mi.",
      "content_html": null,
      "replies": [],
      "created_at": "2017-11-22T13:42:19.219Z",
      "updated_at": "2017-11-22T13:42:20.419Z",
      "parent_id": 87,
      "is_root": false,
      "messageable_id": 9,
      "messageable_type": "Topic",
      "votes_count": {
        "upvote": 0,
        "downvote": 1,
        "trollvote": 0,
        "problem": 0
      },
      "user_votes": {
        "upvote": false,
        "downvote": false,
        "trollvote": false,
        "problem": false
      },
      "readings": 0
    },
    {
      "id": 90,
      "author": {
        "id": 115,
        "login": "anakskyw",
        "url": "https://api.intra.42.fr/v2/users/anakskyw"
      },
      "content": "Venmo pitchfork fashion axe authentic wolf ethical five dollar toast tattooed. Occupy lo-fi mixtape. Chartreuse cray pabst. Poutine pug artisan bicycle rights crucifix truffaut meggings direct trade. Marfa scenester food truck whatever echo cred kale chips sriracha.\nTote bag 90's ethical. Selvage pabst blue bottle bushwick. Selfies kombucha you probably haven't heard of them. Cray chicharrones franzen dreamcatcher xoxo celiac lumbersexual.\nVinyl yolo biodiesel. Banh mi marfa butcher. Normcore iphone lo-fi tilde park bicycle rights bitters irony.",
      "content_html": null,
      "replies": [],
      "created_at": "2017-11-22T13:42:19.287Z",
      "updated_at": "2017-11-22T13:42:20.554Z",
      "parent_id": 87,
      "is_root": false,
      "messageable_id": 9,
      "messageable_type": "Topic",
      "votes_count": {
        "upvote": 0,
        "downvote": 1,
        "trollvote": 0,
        "problem": 0
      },
      "user_votes": {
        "upvote": false,
        "downvote": false,
        "trollvote": false,
        "problem": false
      },
      "readings": 0
    }
  ],
  "created_at": "2017-11-22T13:42:19.098Z",
  "updated_at": "2017-11-22T13:42:20.564Z",
  "parent_id": null,
  "is_root": false,
  "messageable_id": 9,
  "messageable_type": "Topic",
  "votes_count": {
    "upvote": 0,
    "downvote": 0,
    "trollvote": 0,
    "problem": 0
  },
  "user_votes": {
    "upvote": false,
    "downvote": false,
    "trollvote": false,
    "problem": false
  },
  "readings": 0
}
curl  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" "https://api.intra.42.fr/v2/messages/87"

{
  "id": 87,
  "author": {
    "id": 39,
    "login": "anskywal",
    "url": "https://api.intra.42.fr/v2/users/anskywal"
  },
  "content": "Polaroid tote bag authentic knausgaard hashtag raw denim meggings vhs. Master tote bag readymade. Vinyl keytar listicle thundercats bitters master.\nPork belly cleanse microdosing letterpress shoreditch literally. Loko small batch next level mustache park helvetica +1. Fashion axe flannel green juice bitters cardigan tilde food truck 8-bit. Quinoa marfa diy vhs.\nDistillery cray cronut sartorial. Mumblecore marfa authentic. Pour-over cold-pressed irony.",
  "content_html": null,
  "replies": [
    {
      "id": 89,
      "author": {
        "id": 64,
        "login": "dacaedus",
        "url": "https://api.intra.42.fr/v2/users/dacaedus"
      },
      "content": "Hoodie mumblecore etsy cray knausgaard tattooed bespoke kale chips. Sriracha typewriter flexitarian meh bespoke. Truffaut migas cred 90's chambray direct trade readymade. Chambray bespoke twee sartorial venmo brunch kitsch farm-to-table. Knausgaard bespoke brooklyn gastropub hoodie slow-carb actually.\nIntelligentsia meh heirloom. Single-origin coffee lomo retro narwhal blog. Paleo kickstarter occupy kale chips crucifix. Jean shorts kombucha venmo keytar lumbersexual before they sold out. Knausgaard vinegar williamsburg austin seitan kombucha keffiyeh.\nMicrodosing park swag locavore pbr&b single-origin coffee. Flannel yr you probably haven't heard of them scenester pabst salvia before they sold out park. Kale chips aesthetic xoxo. Distillery williamsburg trust fund pitchfork authentic leggings. Flannel lumbersexual whatever fashion axe pour-over intelligentsia chartreuse banh mi.",
      "content_html": null,
      "replies": [],
      "created_at": "2017-11-22T13:42:19.219Z",
      "updated_at": "2017-11-22T13:42:20.419Z",
      "parent_id": 87,
      "is_root": false,
      "messageable_id": 9,
      "messageable_type": "Topic",
      "votes_count": {
        "upvote": 0,
        "downvote": 1,
        "trollvote": 0,
        "problem": 0
      },
      "user_votes": {
        "upvote": false,
        "downvote": false,
        "trollvote": false,
        "problem": false
      },
      "readings": 0
    },
    {
      "id": 90,
      "author": {
        "id": 115,
        "login": "anakskyw",
        "url": "https://api.intra.42.fr/v2/users/anakskyw"
      },
      "content": "Venmo pitchfork fashion axe authentic wolf ethical five dollar toast tattooed. Occupy lo-fi mixtape. Chartreuse cray pabst. Poutine pug artisan bicycle rights crucifix truffaut meggings direct trade. Marfa scenester food truck whatever echo cred kale chips sriracha.\nTote bag 90's ethical. Selvage pabst blue bottle bushwick. Selfies kombucha you probably haven't heard of them. Cray chicharrones franzen dreamcatcher xoxo celiac lumbersexual.\nVinyl yolo biodiesel. Banh mi marfa butcher. Normcore iphone lo-fi tilde park bicycle rights bitters irony.",
      "content_html": null,
      "replies": [],
      "created_at": "2017-11-22T13:42:19.287Z",
      "updated_at": "2017-11-22T13:42:20.554Z",
      "parent_id": 87,
      "is_root": false,
      "messageable_id": 9,
      "messageable_type": "Topic",
      "votes_count": {
        "upvote": 0,
        "downvote": 1,
        "trollvote": 0,
        "problem": 0
      },
      "user_votes": {
        "upvote": false,
        "downvote": false,
        "trollvote": false,
        "problem": false
      },
      "readings": 0
    }
  ],
  "created_at": "2017-11-22T13:42:19.098Z",
  "updated_at": "2017-11-22T13:42:20.564Z",
  "parent_id": null,
  "is_root": false,
  "messageable_id": 9,
  "messageable_type": "Topic",
  "votes_count": {
    "upvote": 0,
    "downvote": 0,
    "trollvote": 0,
    "problem": 0
  },
  "user_votes": {
    "upvote": false,
    "downvote": false,
    "trollvote": false,
    "problem": false
  },
  "readings": 0
}
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/messages/87")
response.status
# => 200
response.parsed
# => {"id"=>87, "author"=>{"id"=>39, "login"=>"anskywal", "url"=>"https://api.intra.42.fr/v2/users/anskywal"}, "content"=>"Polaroid tote bag authentic knausgaard hashtag raw denim meggings vhs. Master tote bag readymade. Vinyl keytar listicle thundercats bitters master.\nPork belly cleanse microdosing letterpress shoreditch literally. Loko small batch next level mustache park helvetica +1. Fashion axe flannel green juice bitters cardigan tilde food truck 8-bit. Quinoa marfa diy vhs.\nDistillery cray cronut sartorial. Mumblecore marfa authentic. Pour-over cold-pressed irony.", "content_html"=>nil, "replies"=>[{"id"=>89, "author"=>{"id"=>64, "login"=>"dacaedus", "url"=>"https://api.intra.42.fr/v2/users/dacaedus"}, "content"=>"Hoodie mumblecore etsy cray knausgaard tattooed bespoke kale chips. Sriracha typewriter flexitarian meh bespoke. Truffaut migas cred 90's chambray direct trade readymade. Chambray bespoke twee sartorial venmo brunch kitsch farm-to-table. Knausgaard bespoke brooklyn gastropub hoodie slow-carb actually.\nIntelligentsia meh heirloom. Single-origin coffee lomo retro narwhal blog. Paleo kickstarter occupy kale chips crucifix. Jean shorts kombucha venmo keytar lumbersexual before they sold out. Knausgaard vinegar williamsburg austin seitan kombucha keffiyeh.\nMicrodosing park swag locavore pbr&b single-origin coffee. Flannel yr you probably haven't heard of them scenester pabst salvia before they sold out park. Kale chips aesthetic xoxo. Distillery williamsburg trust fund pitchfork authentic leggings. Flannel lumbersexual whatever fashion axe pour-over intelligentsia chartreuse banh mi.", "content_html"=>nil, "replies"=>[], "created_at"=>"2017-11-22T13:42:19.219Z", "updated_at"=>"2017-11-22T13:42:20.419Z", "parent_id"=>87, "is_root"=>false, "messageable_id"=>9, "messageable_type"=>"Topic", "votes_count"=>{"upvote"=>0, "downvote"=>1, "trollvote"=>0, "problem"=>0}, "user_votes"=>{"upvote"=>false, "downvote"=>false, "trollvote"=>false, "problem"=>false}, "readings"=>0}, {"id"=>90, "author"=>{"id"=>115, "login"=>"anakskyw", "url"=>"https://api.intra.42.fr/v2/users/anakskyw"}, "content"=>"Venmo pitchfork fashion axe authentic wolf ethical five dollar toast tattooed. Occupy lo-fi mixtape. Chartreuse cray pabst. Poutine pug artisan bicycle rights crucifix truffaut meggings direct trade. Marfa scenester food truck whatever echo cred kale chips sriracha.\nTote bag 90's ethical. Selvage pabst blue bottle bushwick. Selfies kombucha you probably haven't heard of them. Cray chicharrones franzen dreamcatcher xoxo celiac lumbersexual.\nVinyl yolo biodiesel. Banh mi marfa butcher. Normcore iphone lo-fi tilde park bicycle rights bitters irony.", "content_html"=>nil, "replies"=>[], "created_at"=>"2017-11-22T13:42:19.287Z", "updated_at"=>"2017-11-22T13:42:20.554Z", "parent_id"=>87, "is_root"=>false, "messageable_id"=>9, "messageable_type"=>"Topic", "votes_count"=>{"upvote"=>0, "downvote"=>1, "trollvote"=>0, "problem"=>0}, "user_votes"=>{"upvote"=>false, "downvote"=>false, "trollvote"=>false, "problem"=>false}, "readings"=>0}], "created_at"=>"2017-11-22T13:42:19.098Z", "updated_at"=>"2017-11-22T13:42:20.564Z", "parent_id"=>nil, "is_root"=>false, "messageable_id"=>9, "messageable_type"=>"Topic", "votes_count"=>{"upvote"=>0, "downvote"=>0, "trollvote"=>0, "problem"=>0}, "user_votes"=>{"upvote"=>false, "downvote"=>false, "trollvote"=>false, "problem"=>false}, "readings"=>0}