Team/id/Stations
From Oxygen.next Wiki
Returns the child station objects of the specified team.
URL: https://api.oxygennext.com/Team/{teamId}/Stations
Formats: xml, json
HTTP Method(s): GET
API rate limited (about Rate Limiting): true
Response (about return values):
XML example (truncated):
<ListOfStation> <Station> <LocationBranch>Development</LocationBranch> <LocationStreet>Carl-Zeiss-Stra?e 25-27</LocationStreet> <LocationCity>Garbsen</LocationCity> <LocationPostalCode>30827</LocationPostalCode> <LocationCountry>Deutschland</LocationCountry> <LocationFederalState>Niedersachsen</LocationFederalState> <LocationPlace>Bei Ben</LocationPlace> <ContactName>Ben</ContactName> <ContactPhone /> <ContactFax /> <ContactMobile /> <ContactEMail /> <Comments /> <SerialNumber /> <LastLogin>1/1/1753 12:00:00 AM</LastLogin> <LastUpdate>1/1/1753 12:00:00 AM</LastUpdate> <LastReboot>1/1/1753 12:00:00 AM</LastReboot> <Created>5/5/2008 5:32:48 PM</Created> <OxygenVersion /> <UpdaterVersion /> <RemainingDiskspace>0</RemainingDiskspace> <LocalIp /> <LocalSubnet /> <RebootStation>False</RebootStation> <MacAddress /> <ActivateKey readonly="true">45fbed28-4fec-453a-9db0-6648c5815257</ActivateKey> <DHCP readonly="true">False</DHCP> <GateWay readonly="true" /> <DNS1 readonly="true" /> <DNS2 readonly="true" /> <UpdateIntervalInMin>15</UpdateIntervalInMin> <ShutdownStation>False</ShutdownStation> <RestartPlayOut>False</RestartPlayOut> <TotalDiskSpaceInMB readonly="true">0</TotalDiskSpaceInMB> <InternetBandwidthinKbs readonly="true">0</InternetBandwidthinKbs> <InternetTrafficInMB readonly="true">0</InternetTrafficInMB> <CustomerNumber /> <ParentTeam>https://api.oxygennext.com/Team/33cd5db3-2d41-4b74-a648-c54b9b83edb6</ParentTeam> <TimeZoneKey /> <StationLink>https://api.oxygennext.com/Station/ccdf9aa4-cdf1-4ddf-a8af-dbca247f0336</StationLink> <Name>BenPlayer</Name> <Categories>https://api.oxygennext.com/Station/ccdf9aa4-cdf1-4ddf-a8af-dbca247f0336/Categories</Categories> <TimerEvents>https://api.oxygennext.com/Station/ccdf9aa4-cdf1-4ddf-a8af-dbca247f0336/TimerEvents/10-12-2009/To/10-19-2009</TimerEvents> <Playlist>https://api.oxygennext.com/Station/ccdf9aa4-cdf1-4ddf-a8af-dbca247f0336/Playlist</Playlist> <MessageFeeds>https://api.oxygennext.com/Station/ccdf9aa4-cdf1-4ddf-a8af-dbca247f0336/MessageFeeds</MessageFeeds> <TemplateCategories>https://api.oxygennext.com/Station/ccdf9aa4-cdf1-4ddf-a8af-dbca247f0336/TemplateCategories</TemplateCategories> <PlayoutChannels>https://api.oxygennext.com/Station/ccdf9aa4-cdf1-4ddf-a8af-dbca247f0336/PlayoutChannels</PlayoutChannels> <Screenshots>https://api.oxygennext.com/Station/ccdf9aa4-cdf1-4ddf-a8af-dbca247f0336/Screenshots</Screenshots> <Alerts>https://api.oxygennext.com/Station/ccdf9aa4-cdf1-4ddf-a8af-dbca247f0336/Alerts</Alerts> </Station> <Station> <LocationBranch>Development</LocationBranch> <LocationStreet>Carl-Zeiss-Stra?e 25-27</LocationStreet> <LocationCity>Garbsen</LocationCity> <LocationPostalCode>30827</LocationPostalCode> <LocationCountry>Deutschland</LocationCountry> <LocationFederalState>Niedersachsen</LocationFederalState> <LocationPlace>Bei Eddi</LocationPlace> <ContactName /> <ContactPhone /> <ContactFax /> <ContactMobile /> <ContactEMail /> <Comments /> <SerialNumber /> <LastLogin>1/1/1753 12:00:00 AM</LastLogin> <LastUpdate>1/1/1753 12:00:00 AM</LastUpdate> <LastReboot>1/1/1753 12:00:00 AM</LastReboot> <Created>5/5/2008 5:34:07 PM</Created> <OxygenVersion /> <UpdaterVersion /> <RemainingDiskspace>0</RemainingDiskspace> <LocalIp /> <LocalSubnet /> <MacAddress /> <RebootStation>False</RebootStation> <ActivateKey readonly="true">45fbed28-4fec-453a-9db0-6648c5815257</ActivateKey> <DHCP readonly="true">False</DHCP> <GateWay readonly="true" /> <DNS1 readonly="true" /> <DNS2 readonly="true" /> <UpdateIntervalInMin>15</UpdateIntervalInMin> <ShutdownStation>False</ShutdownStation> <RestartPlayOut>False</RestartPlayOut> <TotalDiskSpaceInMB readonly="true">0</TotalDiskSpaceInMB> <InternetBandwidthinKbs readonly="true">0</InternetBandwidthinKbs> <InternetTrafficInMB readonly="true">0</InternetTrafficInMB> <CustomerNumber /> <ParentTeam>https://api.oxygennext.com/Team/5e1b3cf8-24f3-4780-beed-3ef5cadf8ef2</ParentTeam> <TimeZoneKey /> <StationLink>https://api.oxygennext.com/Station/b47005ce-68f6-4b6e-84c0-666bfbc90b9e</StationLink> <Name>EddiPlayer</Name> <Categories>https://api.oxygennext.com/Station/b47005ce-68f6-4b6e-84c0-666bfbc90b9e/Categories</Categories> <TimerEvents>https://api.oxygennext.com/Station/b47005ce-68f6-4b6e-84c0-666bfbc90b9e/TimerEvents/10-12-2009/To/10-19-2009</TimerEvents> <Playlist>https://api.oxygennext.com/Station/b47005ce-68f6-4b6e-84c0-666bfbc90b9e/Playlist</Playlist> <MessageFeeds>https://api.oxygennext.com/Station/b47005ce-68f6-4b6e-84c0-666bfbc90b9e/MessageFeeds</MessageFeeds> <TemplateCategories>https://api.oxygennext.com/Station/b47005ce-68f6-4b6e-84c0-666bfbc90b9e/TemplateCategories</TemplateCategories> <PlayoutChannelshttps://api.oxygennext.com/Station/b47005ce-68f6-4b6e-84c0-666bfbc90b9e/PlayoutChannels</PlayoutChannels> <Screenshots>https://api.oxygennext.com/Station/b47005ce-68f6-4b6e-84c0-666bfbc90b9e/Screenshots</Screenshots> <Alerts>https://api.oxygennext.com/Station/b47005ce-68f6-4b6e-84c0-666bfbc90b9e/Alerts</Alerts> </Station> </ListOfStation>
Usage examples:
cURL (about cURL):
curl https://api.oxygennext.com/Team/df424f75-52f2-4232-b9a0-4178ddd05aa9/Stations
Do you have an example to share in the language of your choice? Please share!
C# Example:
XDocument user = XDocument.Parse(webClient.DownloadString(GetUserRootTeamLink() + "/Stations")); IEnumerable<XElement> query = from document in user.Elements("ListOfStation").Elements("Station") select document; var stations = new List<KeyValuePair<string, string>>(); foreach (XElement element in query) { stations.Add(new KeyValuePair<string, string>(element.Element("Name").Value, element.Element("StationLink").Value)); }
see also at Youtube Mashup Sample
