Get the project
curl --request GET \
--url https://api.tolk.every-day.io/v1/project \
--header 'Authorization: Bearer <token>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tolk.every-day.io/v1/project",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.tolk.every-day.io/v1/project', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"slug": "<string>",
"name": "<string>",
"type": "laravel",
"sourceLocale": "<string>",
"contentVersion": 123,
"languages": [
{
"locale": "<string>",
"name": "<string>",
"isRtl": true,
"fallback": "<string>"
}
],
"exportProfiles": [
{
"slug": "<string>",
"name": "<string>",
"format": "laravel_php",
"locales": [
"<string>"
]
}
]
}
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Project
Get the project
The project of the token: its slug, name and type, the source locale, the content version and the languages (the source first). There is no project in the URL: the token decides.
GET
/
project
Get the project
curl --request GET \
--url https://api.tolk.every-day.io/v1/project \
--header 'Authorization: Bearer <token>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tolk.every-day.io/v1/project",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.tolk.every-day.io/v1/project', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"slug": "<string>",
"name": "<string>",
"type": "laravel",
"sourceLocale": "<string>",
"contentVersion": 123,
"languages": [
{
"locale": "<string>",
"name": "<string>",
"isRtl": true,
"fallback": "<string>"
}
],
"exportProfiles": [
{
"slug": "<string>",
"name": "<string>",
"format": "laravel_php",
"locales": [
"<string>"
]
}
]
}
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}