Giter Site home page Giter Site logo

unellma / unelmamusic-api Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 6 KB

api for music sharing platform that allows anyone to create, listen and share music

Home Page: https://www.unelmamusic.com

License: MIT License

unelmamusic music music-player musicwe share-music listen

unelmamusic-api's Introduction

unelmamusic-api

api for music sharing platform that allows anyone to create, listen and share music

developers

Our API allows you to retrieve informations from unelmamusic.com via GET request and supports the following query parameters:

Name Meaning Description
t (required) Query type. This parameter specify the type of the query, u is for profile informations, t is for tracks informations.
q (required) Requested username. The t parameter supports two values:
u = username [returns basic profile informations containing the following]
id = returns the unique user id
username = returns the username
first_name = returns the first name
last_name = returns the last bame
website = returns the website
country = returns the country
city = returns the city
image = returns the profile avatar image
cover = returns the profile cover image
t = username [returns a list of latest 20 tracks uploaded by a user containing the following]
id = returns the unique track id
by = returns the unique user id
title = returns the track title
description = returns the description of the track
art = returns the track artwork image
tag = returns the tag list
buy = returns the purchase url
record = returns the record label
release = returns the release date
license = returns the license type
time = returns the date time when was published
likes = returns the number of likes
views = returns the number of views (times played)

Examples of requests:

For profile information of a user:

https://www.unelmamusic.com/api.php?t=u&q=USERNAME 

For a list of latest 20 tracks uploaded by a user:

https://www.unelmamusic.com/api.php?t=t&q=USERNAME 

An example of json decoding would be the following PHP code:

<?php
header('Content-Type: text/plain; charset=utf-8;'); 
$file = file_get_contents("https://www.unelmamusic.com/api.php?t=t&q=USERNAME");
print_r(json_decode($file));
?>

unelmamusic-api's People

Contributors

unellma avatar

Watchers

 avatar

Forkers

kalwar

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.