Team API
The Team API is composed of 1 endpoint:
🔗Show Team
This endpoint is accessible by the read-only or read-write Organization API key which you can find in your organization settings. It returns informations about your Team:
- Team name,
- Team description,
- A list of projects of the Team is assigned to.
The call should be made using a GET
request.
/api/organizations/:organization_token/teams/:team_id.format [GET]
Where :team_id
is the ID of the Team that can be gotten on the Organization API. format
is one of xml
, json
or yaml
.
Data structure in JSON:
{
"id": 1,
"name": "The A Team!",
"description": "I\u2019ve had a few teams, but this is my best team",
"created_at": "2017-03-29T13:19:09Z",
"updated_at": "2017-04-03T09:05:31Z",
"projects": [{
"id": 386
}, {
"id": 399
}, {
"id": 406
}]
}
🔗Implementation Example in Ruby:
require 'net/http'
api_key = 'sekret'
http = Net::HTTP.new('webtranslateit.com', 443)
http.use_ssl = true
request = Net::HTTP::Get.new('/api/organizations/#{api_key}/teams/#{team_id}')
response = http.request(request)
🔗Implementation Example in PHP:
<?php
$api_key = "sekret";
$team_id = 1;
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_URL, "https://webtranslateit.com/api/organizations/" . $api_key . "/teams/" . $team_id . ".json");
$response = curl_exec($ch);
$p = json_decode($response, true);
print_r($p);
curl_close($ch);
?>
© 2009-2024 WebTranslateIt Software S.L. Tous droits réservés.
Termes d’utilisation
·
Politique de confidentialité
·
Politique de sécurité