Skip to content

haroldma-zz/Xbox.Music

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Xbox.Music is a Portable Class Library that makes it easy to interact with the new Xbox Music API. It handles all of the nuances of the API for you, like automatically renewing your token every 10 minutes and building DeepLinks that launch the official Xbox Music client when clicked, so you can just focus on building epic experiences.

Works on .NET 4.5, Windows Phone 8, and Windows 8.x, as well as Android and iOS through Mono.

Quick start

Install the NuGet package: Install-Package Xbox.Music, clone the repo, git clone git://github.com/advancedrei/Xbox.Music.git, or download the latest release.

Quick start

Here is a simple example of leveraging the MusicClient to query an Artist.

var client = new MusicClient("YOUR CLIENT ID", "YOUR CLIENT SECRET");

// The MusicClient handles OAuth authentication internally, no need to worry about
// the token management methodology in the official docs, like renewing your token
// every 10 minutes.
var results = await client.Find("Daft Punk")

Debug.WriteLine(results.Artists.Items.Count);

There are also helper methods for getting Images, DeepLinks, and Affiliate links for the objects returned from the service. For example:

var artist = results.Artists.Items.First();

var imageUrl = artist.GetImage(200, 200, ImageResizeMode.Letterbox);

var affiliateLink = artist.GetDeepLink("YOUR AFFILIATE ID", LinkAction.Buy);

For more information, check out our online documentation at NuDoq.

Bug tracker

Have a bug? Please create an issue here on GitHub that conforms with necolas's guidelines.

https://github.com/AdvancedREI/Xbox.Music/issues

Twitter account

Keep up to date on announcements and more by following AdvancedREI on Twitter, @AdvancedREI.

Blog

Read more detailed announcements, discussions, and more on The AdvancedREI Dev Blog.

Authors

Robert McLaws

Copyright and license

Copyright 2013 AdvancedREI, LLC.

The MIT License (MIT)

Copyright (c) 2013 AdvancedREI, LLC. and Robert McLaws

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

  • The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

  • You may not use this software to sell apps in the Windows Phone Store or Windows Store that replicate functionality from apps distributed by AdvancedREI.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

A PCL to access the Xbox Music API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 99.6%
  • Batchfile 0.4%