Skip to content
Ewan edited this page Dec 27, 2017 · 10 revisions

E.Deezer uses the following namespaces:

using E.Deezer;         //Main Deezer client + API access classes
using E.Deezer.Api;    //The Deezer API Objects (Artist, Album, ... etc)

Get started

E.Deezer requires you to create a Session before being able to use the API. Create by calling CreateNew():

 var Deezer = DeezerSession.CreateNew();

This will return a Deezer object which you will use to browse and search the Deezer API. It's as simple as that!

//Examples...
 var search = await Deezer.Search.Albums("Abba");             //Search Deezer for Albums by Abba
 var browse = await Deezer.Browse.Charts.GetTracksChart();    //Browse the Track chart

More detail is covered in the browse, search and user pages.

Using Data

Most methods will return an IEnumerable or a collection of IEnumerable of the desired type. Each of these types will have further methods which can be used. These are outlined in their own articles:

Pagination

Nearly all methods in E.Deezer allow 2 optional parameters aStart and aCount which can be used to implement pagingation. By default these values are set to resonable values but can be set manually. The API will return as many items that match the query up-to the value of aCount.

var artists = Deezer.Search.Albums("Abba", aCount: 100); //Return *up-to* the first 100 albums

Images

You can get if an object has an image of a certain size and get it's URL via the [Has|Get]Picture methods using the PictureSize enum to specify a size.

  • If these methods are not preset the object doesn't have an image at all

Supported Sizes (as per Deezer API Documentation):

  • Small
  • Medium
  • Large
  • Extra Large
Clone this wiki locally