How to get a JSON link from MumPI?

How to do...

How to get a JSON link from MumPI?

Postby weekender » Fri May 15, 2015 8:38 am

I'm totally confused about this.
I have a wordpress widget that can display my mumble server, who is connected and in which channel, etc... pretty much what http://myserver.com/MumblePI/view2 does.
In order to do that, the wordpress widget requires a JSON data URL.
It was under my impression that MumblePI could provide a JSON data URL, so I installed it on my mumble server and MumblePI runs good.
But I can't figure out how to get a JSON data URL from it.

I've read the CVP wiki page, but didn't understand a thing.
weekender
 
Posts: 5
Joined: Sun Oct 05, 2014 11:14 am

Re: How to get a JSON link from MumPI?

Postby kissaki » Fri May 15, 2015 10:04 am

For JSON
http://example.com/?view=json&serverId=1
and for JSONP
http://example.com/?view=json&serverId=1&callback=?

Sorry if the documentation was unclear about this.
I added it to the README
https://github.com/Kissaki/MumPI/blob/m ... xt#L12-L13
MumPI: Your Mumble Web Interface in PHP
User avatar
kissaki
Team member
Team member
 
Posts: 1278
Joined: Sat Jan 09, 2010 12:15 pm

Re: How to get a JSON link from MumPI?

Postby weekender » Fri May 15, 2015 10:31 am

kissaki wrote:For JSON
http://example.com/?view=json&serverId=1
and for JSONP
http://example.com/?view=json&serverId=1&callback=?

Sorry if the documentation was unclear about this.
I added it to the README
https://github.com/Kissaki/MumPI/blob/m ... xt#L12-L13


Great, works perfectly, thanks!
=D
weekender
 
Posts: 5
Joined: Sun Oct 05, 2014 11:14 am


Return to Usage

Who is online

Users browsing this forum: No registered users and 1 guest

cron