• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

Understanding API

Status
Not open for further replies.

HarpyWar

Active Member
API documentation contains playUrl method, but I can't figure out what is "plugin" parameter there.

POST request is like this
/api/v1/bot/i/1042f0fe-67b8-4b58-9cea-888138448034/playUrl?url=https%3A%2F%2Fwww.myinstants.com%2Fmedia%2Fsounds%2Fmurloc.mp3&plugin=wat

It always returns {"success":false}

There is a project https://github.com/arlextra/myinstants-sinusbot but it seems it doesn't work with current beta SinusBot, because it's playUrl implementation differs from the current method description in docs.

Does this method incomplete or am I doing something wrong?
 
Last edited:

Xuxe

Containerholic
Staff member
is awesome!
V.I.P.
Contributor
Insider
The problem with MyInstants is SSL not a API Parameter.
The plugin param can be always null if you want to stream a http url.

- The ffmpeg library currently not supports https:// urls.
 

Xuxe

Containerholic
Staff member
is awesome!
V.I.P.
Contributor
Insider
The server forces ssl and redirect to the https url. You need a special ffmpeg version with ssl for that. I test it in the next days and publish the pre-build library :) or you build ffmpeg by your self but keep in mind we can not support this yet.
 

HarpyWar

Active Member
Last edited:
Status
Not open for further replies.
Top