Giter Club home page Giter Club logo

spotifyinfoapp's Introduction

Kealan O'Callaghan .Net Azure Functions Spotify API project

Running the project

  • Download the project and open Kealan-Unhurd in Visual Studio 2022

  • When the project is running, you must first run the GetArtistById function by pasting the following URL into your browser

http://localhost:7055/api/GetArtistById/{SpotifyID}

Request

  • Replace the SpotifyID with an ID of any Spotify artist, this can be found by clicking the ... three dots on the artists page. Below is some examples.
    • Fixate (Drum and Bass) - 1nB5SyBxZpy6ZhBOhjOkhw
    • Rene Wise (Techno) - 2KJa509WSY45vlGHjLL3Q9
    • Knucks (Uk Rap) - 6W4vm8P3JFQboO4cvHeqaa

Response

This will return the User various information on the artist provided. See below:

{
  "external_urls" : {
    "spotify" : "https://open.spotify.com/artist/6W4vm8P3JFQboO4cvHeqaa"
  },
  "followers" : {
    "href" : null,
    "total" : 238032
  },
  "genres" : [ "melodic drill", "uk alternative hip hop" ],
  "href" : "https://api.spotify.com/v1/artists/6W4vm8P3JFQboO4cvHeqaa",
  "id" : "6W4vm8P3JFQboO4cvHeqaa",
  "images" : [ {
    "height" : 640,
    "url" : "https://i.scdn.co/image/ab6761610000e5eb403709b9d33925dabe6681e1",
    "width" : 640
  }, {
    "height" : 320,
    "url" : "https://i.scdn.co/image/ab67616100005174403709b9d33925dabe6681e1",
    "width" : 320
  }, {
    "height" : 160,
    "url" : "https://i.scdn.co/image/ab6761610000f178403709b9d33925dabe6681e1",
    "width" : 160
  } ],
  "name" : "Knucks",
  "popularity" : 68,
  "type" : "artist",
  "uri" : "spotify:artist:6W4vm8P3JFQboO4cvHeqaa"
}

CosmosDB

The ID and Name of the artist gets saved to the CosmosDB to be used again, further development could include disallowing duplicates.

{"id":"6W4vm8P3JFQboO4cvHeqaa","name":"Knucks"}

To return the database contents to the user, run the following URL in your browser.

http://localhost:7055/api/GetDBData

This runs the function which retrieves the database data and displays it to the user in the browser.

spotifyinfoapp's People

Contributors

kealanocallaghan2000 avatar

Watchers

Kostas Georgiou avatar  avatar

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.