Fetch one or multiple of your libraries

  • Get all libraries 

Endpoint

https://api.platform.easytranslate.com/strings-library/api/v1/teams/:team-id/libraries

In order to fetch all your libraries, you need to send a GET request. 

You need to use your autorization Bearer token to be able to send the request.  Simply add token as an attribute to the autorization section of your request and your access token as its value.

Then, you need to add the following variable's value to your endpoint path:

    • team_id: {{TEAM_ID}}
      Instead of {{TEAM_ID}}, you need to provide the team_id of your team.

Request example 

curl --location -g --request GET 'https://api.platform.easytranslate.com/strings-library/api/v1/teams/{{TEAM_ID}}/libraries'

 

Response example 

{
"data": [
{
"type": "library",
"id": "614996b611efb7091421a412",
"attributes": {
"name": "Your first library",
"status": "enabled",
"team_id": "a087b443-6a3b-41a0-ac88-ef9757c98a1d",
"user": {
"first_name": "Timmo",
"last_name": "Timmo",
"avatar_url": null,
"is_admin": true
},
"description": "Your library description for your team...",
"source_language": "en",
"languages": [
"de",
"da",
"en"
],
"overview": [
{
"language_code": "de",
"total_keys": 13,
"total_strings": 0,
"strings_translated": 0
},
{
"language_code": "da",
"total_keys": 13,
"total_strings": 0,
"strings_translated": 0
},
{
"language_code": "en",
"total_keys": 13,
"total_strings": 13,
"strings_translated": 100
}
],
"created_at": {
"date": "2021-09-21 08:24:22.587000",
"timezone_type": 1,
"timezone": "+00:00"
},
"modified_at": {
"date": "2021-09-21 08:24:22.587000",
"timezone_type": 1,
"timezone": "+00:00"
}
}
},
{
"type": "library",
"id": "6149970d43ee684c5342afa2",
"attributes": {
"name": "Your first library #1",
"status": "enabled",
"team_id": "a087b443-6a3b-41a0-ac88-ef9757c98a1d",
"user": {
"first_name": "Timmo",
"last_name": "Timmo",
"avatar_url": null,
"is_admin": true
},
"description": "Your library description for your team...",
"source_language": "en",
"languages": [
"de",
"da",
"en"
],
"overview": [
{
"language_code": "de",
"total_keys": 13,
"total_strings": 0,
"strings_translated": 0
},
{
"language_code": "da",
"total_keys": 13,
"total_strings": 0,
"strings_translated": 0
},
{
"language_code": "en",
"total_keys": 13,
"total_strings": 13,
"strings_translated": 100
}
],
"created_at": {
"date": "2021-09-21 08:25:49.765000",
"timezone_type": 1,
"timezone": "+00:00"
},
"modified_at": {
"date": "2021-09-21 08:25:49.765000",
"timezone_type": 1,
"timezone": "+00:00"
}
}
},
{
"type": "library",
"id": "6149a5af11efb7091421a447",
"attributes": {
"name": "EasyOrder",
"status": "enabled",
"team_id": "a087b443-6a3b-41a0-ac88-ef9757c98a1d",
"user": {
"first_name": "Timmo",
"last_name": "Timmo",
"avatar_url": null,
"is_admin": true
},
"description": "Easyorder Platform...",
"source_language": "en",
"languages": [
"de",
"da",
"en",
"fr_FR"
],
"overview": [
{
"language_code": "de",
"total_keys": 0,
"total_strings": 0,
"strings_translated": 0
},
{
"language_code": "da",
"total_keys": 0,
"total_strings": 0,
"strings_translated": 0
},
{
"language_code": "en",
"total_keys": 0,
"total_strings": 0,
"strings_translated": 0
}
],
"created_at": {
"date": "2021-09-21 09:28:15.731000",
"timezone_type": 1,
"timezone": "+00:00"
},
"modified_at": {
"date": "2021-09-21 09:28:25.944000",
"timezone_type": 1,
"timezone": "+00:00"
}
}
},
{
"type": "library",
"id": "6149a5c230c2d073b6148892",
"attributes": {
"name": "Your first library #3",
"status": "enabled",
"team_id": "a087b443-6a3b-41a0-ac88-ef9757c98a1d",
"user": {
"first_name": "Timmo",
"last_name": "Timmo",
"avatar_url": null,
"is_admin": true
},
"description": "Your library description for your team...",
"source_language": "en",
"languages": [
"de",
"da",
"en",
"fr_FR"
],
"overview": [
{
"language_code": "de",
"total_keys": 13,
"total_strings": 0,
"strings_translated": 0
},
{
"language_code": "da",
"total_keys": 13,
"total_strings": 0,
"strings_translated": 0
},
{
"language_code": "en",
"total_keys": 13,
"total_strings": 13,
"strings_translated": 100
}
],
"created_at": {
"date": "2021-09-21 09:28:34.126000",
"timezone_type": 1,
"timezone": "+00:00"
},
"modified_at": {
"date": "2021-09-21 09:28:48.849000",
"timezone_type": 1,
"timezone": "+00:00"
}
}
},
{
"type": "library",
"id": "6149a5e7321f917607242c72",
"attributes": {
"name": "Your first library #4",
"status": "enabled",
"team_id": "a087b443-6a3b-41a0-ac88-ef9757c98a1d",
"user": {
"first_name": "Timmo",
"last_name": "Timmo",
"avatar_url": null,
"is_admin": true
},
"description": "Your library description for your team...",
"source_language": "en",
"languages": [
"de",
"da",
"en"
],
"overview": [
{
"language_code": "de",
"total_keys": 13,
"total_strings": 0,
"strings_translated": 0
},
{
"language_code": "da",
"total_keys": 13,
"total_strings": 0,
"strings_translated": 0
},
{
"language_code": "en",
"total_keys": 13,
"total_strings": 13,
"strings_translated": 100
}
],
"created_at": {
"date": "2021-09-21 09:29:11.176000",
"timezone_type": 1,
"timezone": "+00:00"
},
"modified_at": {
"date": "2021-09-21 09:29:11.176000",
"timezone_type": 1,
"timezone": "+00:00"
}
}
},
{
"type": "library",
"id": "6149a61743ee684c5342afd7",
"attributes": {
"name": "Your first library #5",
"status": "enabled",
"team_id": "a087b443-6a3b-41a0-ac88-ef9757c98a1d",
"user": {
"first_name": "Timmo",
"last_name": "Timmo",
"avatar_url": null,
"is_admin": true
},
"description": "Your library description for your team...",
"source_language": "en",
"languages": [
"de",
"da",
"en",
"sw"
],
"overview": [
{
"language_code": "de",
"total_keys": 13,
"total_strings": 0,
"strings_translated": 0
},
{
"language_code": "da",
"total_keys": 13,
"total_strings": 0,
"strings_translated": 0
},
{
"language_code": "en",
"total_keys": 13,
"total_strings": 13,
"strings_translated": 100
}
],
"created_at": {
"date": "2021-09-21 09:29:59.629000",
"timezone_type": 1,
"timezone": "+00:00"
},
"modified_at": {
"date": "2021-09-21 09:30:07.921000",
"timezone_type": 1,
"timezone": "+00:00"
}
}
}
],
"meta": {
"copyright": "Copyright 2021 EasyTranslate A/S",
"environment": "testing"
}
}
  • Get a single library 

Endpoint 

https://api.platform.easytranslate.com/strings-library/api/v1/teams/:team-id/libraries/:library-id

In order to fetch all your libraries, you need to send a GET request. 

You need to use your autorization Bearer token to be able to send the request.  Simply add token as an attribute to the autorization section of your request and your access token as its value.

Then, you need to add the following variable's value to your endpoint path:

    • team_id: {{TEAM_ID}}
      Instead of {{TEAM_ID}}, you need to provide the team_id of your team.
    • library-id: {{LIBRARY_ID}}
      Instead of {{LIBRARY_ID}}, you need to provide the library_id of the library you wish to fetch. 

Request example

curl --location -g --request GET 'https://api.platform.easytranslate.com/strings-library/api/v1/teams/{{TEAM_ID}}/libraries/{{LIBRARY_ID}}'

 

Response example 

{
"data": {
"type": "library",
"id": "615f002cbb6ca535d96ea202",
"attributes": {
"name": "Your first library #0",
"status": "enabled",
"team_id": "166ecd95-29d6-47dd-823c-d9d3f85fa709",
"user": {
"first_name": "Captain",
"last_name": "Deadpool",
"is_admin": true
},
"description": "Your library description for your team...",
"source_language": "en",
"languages": [
"de",
"da",
"en"
],
"overview": [
{
"language_code": "de",
"total_keys": 13,
"total_strings": 0,
"strings_translated": 0
},
{
"language_code": "da",
"total_keys": 13,
"total_strings": 0,
"strings_translated": 0
},
{
"language_code": "en",
"total_keys": 26,
"total_strings": 0,
"strings_translated": 0
}
],
"created_at": "2021-10-07T14:11:56.749000Z",
"modified_at": "2021-10-07T14:11:56.749000Z"
}
},
"meta": {
"copyright": "Copyright 2021 EasyTranslate A/S",
"environment": "testing"
}
}