Giter Site home page Giter Site logo

soundcloud-v2-api's Introduction

Hi there ๐Ÿ‘‹

soundcloud-v2-api's People

Contributors

barenddt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

soundcloud-v2-api's Issues

Playing Audio

Code:
router.get('/', function(req, res) {
const SC = require('soundcloud-v2-api');

SC.init({
	clientId: 'myIdOfSoundCloud',
	cors: true
})

// WORKS
//SC.get('/search/tracks', {
 //q: 'Post', limit: 1
//}).then(result => console.log(result))

SC.stream('/tracks/341546259/streams').then(stream => {
 stream.play()
})

res.render('soundcloud', {title: 'LAPI-[ZERO]',text: 'Welcome'});

});
Exception
(node:45533) UnhandledPromiseRejectionWarning: ReferenceError: Audio is not defined
at axios.then.res (/home/afernandez/nodejs/lapi0/node_modules/soundcloud-v2-api/index.js:39:23)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
(node:45533) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:45533) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

when i search use Arabic words he dose not support

let result = await SC.get('/search/tracks', { q: 'ูุงูŠุง ูŠูˆู†ุงู†', limit: 5 })

error:

ode:18676) UnhandledPromiseRejectionWarning: TypeError [ERR_UNESCAPED_CHARACTERS]: Request path contains unescaped characters
    at new ClientRequest (_http_client.js:148:13)
    at Object.request (https.js:314:10)
    at RedirectableRequest._performRequest (C:\Users\zeko_\Desktop\music edit souncloud search\node_modules\soundcloud-v2-api\node_modules\follow-redirects\index.js:169:24)
    at new RedirectableRequest (C:\Users\zeko_\Desktop\music edit souncloud search\node_modules\soundcloud-v2-api\node_modules\follow-redirects\index.js:66:8)
    at Object.wrappedProtocol.request (C:\Users\zeko_\Desktop\music edit souncloud search\node_modules\soundcloud-v2-api\node_modules\follow-redirects\index.js:307:14)
    at dispatchHttpRequest (C:\Users\zeko_\Desktop\music edit souncloud search\node_modules\soundcloud-v2-api\node_modules\axios\lib\adapters\http.js:179:25)
    at new Promise (<anonymous>)
    at httpAdapter (C:\Users\zeko_\Desktop\music edit souncloud search\node_modules\soundcloud-v2-api\node_modules\axios\lib\adapters\http.js:21:10)
    at dispatchRequest (C:\Users\zeko_\Desktop\music edit souncloud search\node_modules\soundcloud-v2-api\node_modules\axios\lib\core\dispatchRequest.js:52:10)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:18676) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 3)
(node:18676) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code

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.