Coder Social home page Coder Social logo

deezerapi's Introduction

DeezerAPI

Deezer API Client for dotNet 5.0

DeezerAPI.Private

The Private Deezer API Implementaion

Getting started

Create API Client

PrivateAPI deezer = new PrivateAPI(arl);

'arl' Equals the Deezer arl Auth Cookie (From Browser DEV-Console)

GetAlbumInfos

var albInfos = await deezer.GetAlbumInfos(ALB_ID);

'ALB_ID' Equals Deezer Album ID

GetTrackInfos

var albInfos = await deezer.GetTrackInfos(TRACK_ID);

'TRACK_ID' Equals Deezer Track ID

Returned Data Structure for Track & Album:

        /// <summary>
        /// Deezer SongID
        /// </summary>
        public string id { get; set; }

        /// <summary>
        /// Track Titel
        /// </summary>
        public string title { get; set; }

        /// <summary>
        /// Artist
        /// </summary>
        public string artist { get; set; }

        /// <summary>
        /// Duration in Sec.
        /// </summary>
        public int duration { get; set; }

        /// <summary>
        /// Genre
        /// </summary>
        public string[] genre { get; set; }

        /// <summary>
        /// Remix Artist
        /// </summary>
        public string remixArtist { get; set; }

        /// <summary>
        /// Release Year
        /// </summary>
        public string year { get; set; }

        /// <summary>
        /// Release Date
        /// </summary>
        public string date { get; set; }

        /// <summary>
        /// Album Name
        /// </summary>
        public string album { get; set; }

        /// <summary>
        /// Artsts
        /// </summary>
        public string[] artists { get; set; }

        /// <summary>
        /// Album Art
        /// </summary>
        public string albumart { get; set; }

        /// <summary>
        /// ISRC ID
        /// </summary>
        public string isrc { get; set; }

        /// <summary>
        /// Track MD5 Hash
        /// </summary>
        public string MD5 { get; set; }

        /// <summary>
        /// Track Media Version
        /// </summary>
        public string MediaVersion { get; set; }

        /// <summary>
        /// Track Quality
        /// </summary>
        public int Quality { get; set; }

DeezerAPI.Public

The Official Deezer API Implementaion

Getting started

Create API Client

PublicAPI deezer = new PublicAPI();

Query Deezer API

var data = await deezer.Search(
    new Query("Two Door Cinema Club", "What You Know", Type.Track));

DeezerAPI.Mobile

The Mobile Deezer API Implementation

Getting started

Create Unauthenticated API Client

IUnauthenticatedMobileAPI deezer = new MobileAPI();

An Unauthenticated Deezer API must call await GenerateSID() first!

Create Authenticated API Client

IAuthenticatedMobileAPI deezer = new MobileAPI(arl);

Get Track Infos

var trackInfos = await deezer.GetTrack(SNG_ID);

Get Tracks

List<string> IDs = new List<string>(){ "111", "222", "333" };
var trackInfos = await deezer.GetTracks(IDs);

Get Track Lyrics

var trackLyrics = await deezer.GetTrackLyrics(SNG_ID);

Get Album Infos

var albInfos = await deezer.GetAlbum(ALB_ID);

Get Playlist Infos

var playlistInfos = await deezer.GetPlaylist(Playlist_ID);

Build with dotNET 5.0 & VS 2019

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.