settings Params

Param name Description
id required . Must be String

The requested id

GET /v2/translations/3
200
{
  "id": 3,
  "translatable_id": 3,
  "translatable_type": "Tag",
  "language_id": 2,
  "fields": {
    "name": "GBmu",
    "description": null
  },
  "created_at": "2017-11-22T13:40:59.783Z",
  "updated_at": "2017-11-22T13:40:59.795Z",
  "user_id": null,
  "default": true,
  "up_to_date": true,
  "translations_structure_id": 11,
  "translations_structure": {
    "id": 11,
    "searchable_by": [
      "name"
    ],
    "identified_by": [
      "name"
    ],
    "structures_kind": "simple",
    "up_to_date": true,
    "fields_organisation": {
      "name": "string",
      "description": "text"
    },
    "type_name": "Tag",
    "created_at": "2017-11-22T13:40:59.444Z",
    "updated_at": "2017-11-22T13:40:59.444Z"
  }
}
curl  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" "https://api.intra.42.fr/v2/translations/3"

{
  "id": 3,
  "translatable_id": 3,
  "translatable_type": "Tag",
  "language_id": 2,
  "fields": {
    "name": "GBmu",
    "description": null
  },
  "created_at": "2017-11-22T13:40:59.783Z",
  "updated_at": "2017-11-22T13:40:59.795Z",
  "user_id": null,
  "default": true,
  "up_to_date": true,
  "translations_structure_id": 11,
  "translations_structure": {
    "id": 11,
    "searchable_by": [
      "name"
    ],
    "identified_by": [
      "name"
    ],
    "structures_kind": "simple",
    "up_to_date": true,
    "fields_organisation": {
      "name": "string",
      "description": "text"
    },
    "type_name": "Tag",
    "created_at": "2017-11-22T13:40:59.444Z",
    "updated_at": "2017-11-22T13:40:59.444Z"
  }
}
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/translations/3")
response.status
# => 200
response.parsed
# => {"id"=>3, "translatable_id"=>3, "translatable_type"=>"Tag", "language_id"=>2, "fields"=>{"name"=>"GBmu", "description"=>nil}, "created_at"=>"2017-11-22T13:40:59.783Z", "updated_at"=>"2017-11-22T13:40:59.795Z", "user_id"=>nil, "default"=>true, "up_to_date"=>true, "translations_structure_id"=>11, "translations_structure"=>{"id"=>11, "searchable_by"=>["name"], "identified_by"=>["name"], "structures_kind"=>"simple", "up_to_date"=>true, "fields_organisation"=>{"name"=>"string", "description"=>"text"}, "type_name"=>"Tag", "created_at"=>"2017-11-22T13:40:59.444Z", "updated_at"=>"2017-11-22T13:40:59.444Z"}}