JSFiddle - React, Tailwind, and code Playground
by kalmarsh80
JavaScript
$.ajax({
url: 'http://viki.com/oauth/token', //server script to process data
type: 'POST',
async: true,
//data: { usr: "y", fe2: "m", fe3: "m" },
data: {grant_type: "client_credentials", client_id: "100135a", client_secret: "c87c953db9b990a4699b1145b2b2e8399b3487fc7414c7c3ce8d6f386ce681"},
success: function(result) {
//window.location.href = "http://www.flicitup.com/index";
}
});
//http://api.viki.io/v4/videos/227184v/streams.json?app=65535a&t=1375744626&site=www.viki.com&token=_QXIjaS_O3Ellonc9igcB8b0GxbBDg_0&sig=7262a7d0b22dc1551aaea1c6d23056973afd5e4b
$.ajax({
url: 'http://api.viki.io/v4/videos/227184v/streams.json?app=65535a&t=1375744626&site=www.viki.com&token=_QXIjaS_O3Ellonc9igcB8b0GxbBDg_0&sig=7262a7d0b22dc1551aaea1c6d23056973afd5e4b', //server script to process data
type: 'GET',
async: true,
//data: { usr: "y", fe2: "m", fe3: "m" },
data: {},
success: function(result) {
//window.location.href = "http://www.flicitup.com/index";
}
});