emeraldjava / grails-itunes-services-plugin Goto Github PK
View Code? Open in Web Editor NEWThis project forked from marc0der/grails-itunes-services-plugin
A plugin that handles calls to the iTunes Store RSS Feeds
License: Other
This project forked from marc0der/grails-itunes-services-plugin
A plugin that handles calls to the iTunes Store RSS Feeds
License: Other
h1. iTunes Service Plugin h3. Description A plugin for the Grails Framework that facilitates the integration with iTunes Web Services and Feeds. The plugin draws on the [Rome|https://rome.dev.java.net/] libraries to parse and handle feed data, and then converts results into instances of an Album domain class. The net result: Wire a service into your controller, call a method, and receive back a list of Domain objects that may be persisted or rendered directly in your GSP. h3. Feeds and Web Services The initial release focuses only on retrieving and processing RSS Feeds that iTunes exposes. Subsequent releases will include Artist and Album searches. The plugin will also expand beyond the realm of Music, and will include Apps, Podcasts, TV Programs, Films and Music Videos. Please let me know what else you would like from the plugin! h3. Using It Add the following to your controller to use it: {code} class DemoController { def itunesFeedsService ... //inside the action closure def command = new FeedsCommand() List newReleases = itunesFeedsService.getNewAlbumReleases(command) List justAddedAlbums = itunesFeedsService.getJustAddedAlbums(command) List featuredAlbums = itunesFeedsService.getFeaturedAlbums(command) List topAlbums = itunesFeedsService.getTopAlbums(command) //from release 0.1.1 you can omit the command object on all service calls for default values List defaultNewReleases = itunesFeedsService.getNewAlbumReleases() ... } {code} Each of these service methods return a List of @uk.co.hashcode.itunes.Album@ instances. The Album instance has the following fields: {code} int rank String artist String artistLink String name String link String price String image String rights Date releaseDate {code} The results may be refined by constructing the @uk.co.hashcode.itunes.FeedsCommand@ as follows: {code} def command = new FeedsCommand( limit=10, //amount of results, min 1, max 25 genre=Genre.POP, //see below for all possible genres country=Country.UK //see below for all possible countries ) {code} The @uk.co.hashcode.itunes.Genre@ enum has the following values: {code} ALL ALTERNATIVE BLUES CHILDREN CLASSICAL COMEDY COUNTRY DANCE ELECTRONIC FITNESS_WORKOUT HIPHOP_RAP JAZZ LATINO POP RB_SOUL REGGAE RELIGEOUS ROCK SOUNDTRACK SPOKEN_WORD WORLD {code} The @uk.co.hashcode.itunes.Country@ enum has the following values: {code} AUSTRALIA AUSTRIA BELGIUM CANADA DENMARK FINLAND FRANCE GERMANY GREECE IRELAND ITALY JAPAN LUXEMBOURG MEXICO NETHERLANDS NEW_ZEALAND NORWAY PORTUGAL SPAIN SWEDEN SWITZERLAND UK USA {code} h3. Bugs and Enhancements Find bugs or want enhancements? Please come over to [http://hashcode.co.uk:8081/jira] and report any bugs or usability issues. New feature requests are also always welcome! h3. Source Code Source code is available at: [http://github.com/marcoVermeulen/grails-itunes-services-plugin] h3. Demo Fetch the plugin source from GitHub, step into the plugin directory and run the app: {code} git clone [email protected]:marcoVermeulen/grails-itunes-services-plugin.git cd grails-itunes-services-plugin grails run-app {code} Wait for the application to start up and point your browser at [http://localhost:8080/itunes-service/demo] Thanks and enjoy the plugin!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.