Aquileo | Recent changes to wikihttps://sourceforge.net/p/shoutcastapi/wiki/2016-07-12T13:40:45.189000ZRecent changes to wikiAquileo | How To modified by Ortega2016-07-12T13:40:45.189000Z2016-07-12T13:40:45.189000ZOrtegahttps://sourceforge.net/u/ediortega/https://sourceforge.netd5b149a029798dfd5a97f1c783f99860ea5c7bc4<div class="markdown_content"><pre></pre>
</div>Aquileo | How To modified by Ortega2016-07-12T13:35:29.447000Z2016-07-12T13:35:29.447000ZOrtegahttps://sourceforge.net/u/ediortega/https://sourceforge.netf0030db68877bc20cfecfbec4dd8963cc3a749e0<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>Aquileo | How To modified by Ortega2016-07-12T13:26:50.276000Z2016-07-12T13:26:50.276000ZOrtegahttps://sourceforge.net/u/ediortega/https://sourceforge.nete8356dbef7df0e50012ca5ca2fdc2ebbad30a6e7<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>Aquileo | Home modified by Ortega2016-05-28T15:36:07.935000Z2016-05-28T15:36:07.935000ZOrtegahttps://sourceforge.net/u/ediortega/https://sourceforge.net509d87d1af77288fcb42cd3053ee31d23bb2bf14<div class="markdown_content"><p>Welcome to your wiki!</p>
<p>This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: <span>[SamplePage]</span>.</p>
<p>The wiki uses <a class="" href="/p/shoutcastapi/wiki/markdown_syntax/">Markdown</a> syntax.</p>
<p></p><h6>Project Members:</h6>
<ul class="md-users-list">
<li><a href="/u/ediortega/">Ortega</a> (admin)</li>
</ul><br/>
<p><span class="download-button-5749bae7485acd5c4112e71e" style="margin-bottom: 1em; display: block;"></span></p><p></p></div>