okwinza / icecast2-php-api Goto Github PK
View Code? Open in Web Editor NEWA powerful and flexible REST API for IceCast2 written in PHP
A powerful and flexible REST API for IceCast2 written in PHP
Благодарю за вашу разработку API!
В ознакомительных целях немного поигрался сним, заметил небольшой недочет, о котором вы наверняка знаете, но фикс бы был очень приятен :)
Суть баги, собственно, такая.
Если у трека название написано на Кириллице, то его не будет видно при запросе к API.
С Уважением ;)
Thanks for sharing this!
I'm not sure if I understand the usage correctly. I've installed via composer on my local machine under MAMP (OS X), but when I go to http://localhost:8888/misc/icecast2-php-api/ I get the following error:
{"type":"400","message":"Bad request"}
I also tried http://localhost:8888/misc/icecast2-php-api/listeners/xml/ according to your example http://api.tort.fm/radio/tort.fm/listeners/xml/ which returns the same 400 bad request error with no errors neither in Apache nor PHP error logs. Btw, your examples do no longer seem to work ;-)
Any ideas what I might be missing here?
I get the error{"type":"400","message":"Bad request"}
when going to a page like http://willisapaininthearse.lukehallett.space/live/song/xml/ to check the song
It didn't work for me at first and then I discovered that few files have short open PHP tags <?
, not <?php
as should be for portable code. Don't take just my word for it. Here is a list of nine reasons why PHP short_open_tag should not be used.
And here is a handy regex for you to find all of them: /(<\?)[^px=]/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.