Project List
Returns user projects.
Request type: POST
API Endpoint
https://api.translized.com/project/list
Parameters
None
Example requests
- cURL
- Javascript Fetch
- Javascript Axios
- Kotlin
- Swift
curl -X POST -H "Content-Type: application/json" \
-H "api-token: 42cf5fec-a74c-4a53-8ebc-86a4e52b7ce6" \
https://api.translized.com/project/list
fetch('https://api.translized.com/project/list', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-token': '42cf5fec-a74c-4a53-8ebc-86a4e52b7ce6',
},
})
.then((response) => response.json())
.then((data) => console.log(data))
.catch((error) => console.error(error));
const response = await axios.post(
'https://api.translized.com/project/list',
{
headers: {
'Content-Type': 'application/json',
'api-token': '42cf5fec-a74c-4a53-8ebc-86a4e52b7ce6',
},
}
);
const data = response.result;
val response = client.post<ProjectListResponse>("/project/list")
val data = response.result
let response = client.post("/project/list")
let data = response.result
Example response
{
"result": [
{
"id": "A3KJtLw4as",
"name": "Translized",
"createdAt": "2021-08-30T12:26:36.295Z"
},
{
"id": "L43AkT4ms",
"name": "Acme",
"createdAt": "2021-08-30T12:26:36.295Z"
}
]
}