S
S
senatrov2019-03-25 15:06:41
PHP
senatrov, 2019-03-25 15:06:41

How to return the required parameter in the twitch-dj.ru API?

Good day, there is an unresolved issue that has been tormenting me for several days.
There is a site https://twitch-dj.ru/dev and it says that you need to write a parameter at the end of the link so that it "pulls" it up. But for some reason it returns me absolutely all the data that I don't need. For example:
To find out the current track
GET: https://twitch-dj.ru/api/get_track/[CHANNEL_ID]
GET: https://twitch-dj.ru/api/get_track/[CHANNEL_ID]/ca...
List return parameters:
id Global identifier in the system
yid YouTube video identifier
title Track name
track_time Track duration in seconds
add_time Track adding time
start_time Track playback start time author
Nickname of the sender
cr Age limit of the video
cb Possibility
of banning the sender wrote - https://twitch-dj.ru/api/get_track/1

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Valentin, 2019-03-25
@romanko_vn

callback is a function, not what you thought)

$(function(){
  $.getScript("https://twitch-dj.ru/api/get_track/1/callback/get_track");
});
function get_track(json){
  $("#track_title").text(json.title);
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question