Aquileo | Recent changes to How Tohttps://sourceforge.net/p/shoutcastapi/wiki/How%2520To/Recent changes to How ToenTue, 12 Jul 2016 13:40:45 -0000- Aquileo | How To modified by Ortegahttps://sourceforge.net/p/shoutcastapi/wiki/How%2520To/<div class="markdown_content"><pre></pre>
</div>OrtegaTue, 12 Jul 2016 13:40:45 -0000https://sourceforge.netd5b149a029798dfd5a97f1c783f99860ea5c7bc4
- Aquileo | How To modified by Ortegahttps://sourceforge.net/p/shoutcastapi/wiki/How%2520To/<div class="markdown_content"><pre>--- v1
+++ v2
@@ -1,3 +1,4 @@
+:::java
Contructor
ShoutCastAPI sc = new ShoutCastAPI("YOU-API-KEY");
//Get station by genre
</pre>
</div>OrtegaTue, 12 Jul 2016 13:35:29 -0000https://sourceforge.netf0030db68877bc20cfecfbec4dd8963cc3a749e0
- Aquileo | How To modified by Ortegahttps://sourceforge.net/p/shoutcastapi/wiki/How%2520To/<div class="markdown_content"><p>Contructor<br/>
ShoutCastAPI sc = new ShoutCastAPI("YOU-API-KEY");<br/>
//Get station by genre<br/>
StationlistTypeByGenre stations = sc.getStationByGenre("Blues", null, null, "audio/mpeg");<br/>
List<StationTypeByGenre> stationLists = stations.getStation();<br/>
for (StationTypeByGenre stationList : stationLists) {<br/>
System.out.println(stationList.getName());<br/>
}</p>
<p>//Get primary genres<br/>
List<GenreTypePrimary> genres = sc.getPrimaryGenres();<br/>
for (GenreTypePrimary genre : genres) {<br/>
System.out.println("PG: " + genre.getName() + "(" + genre.getCount() + ")");<br/>
}</p>
<p>//Get secondary genres<br/>
List<GenreTypeSecondary> genres = sc.getSecondaryGenres(false);<br/>
System.out.println(genres.size());<br/>
for (GenreTypeSecondary genre : genres) {<br/>
System.out.println("PG: " + genre.getName() + "(" + genre.getCount() + ")");<br/>
}</p>
<p>//Get top 500<br/>
List<StationType> sType = sc.getTop500Stations(5, null, "audio/mpeg");<br/>
for (StationType station : sType) {<br/>
System.out.println("STATION: " + station.getCt() + ", " + station.getGenre() + ", " + station.getMt() + ", " + station.getName() + ", " + station.getBr() + ", " + station.getId() + ", " + station.getLc());<br/>
}</p>
<p>//List all genres<br/>
List<GenreType> gType = sc.getAllGenres();<br/>
for (GenreType genre : gType) {<br/>
System.out.println("GENRE: " + genre.getName());<br/>
}</p></div>OrtegaTue, 12 Jul 2016 13:26:50 -0000https://sourceforge.nete8356dbef7df0e50012ca5ca2fdc2ebbad30a6e7