Json and rtMedia api

i have installed rtMedia on my web-site(which i have already installed buddypress) and now i’m trying to write an android application using the api of rtMedia but when i try to do a request like http://MySite.com/rtmedia_api/wp_login/?username=USER&password=PASS it display me “NOT FOUND”. I have also tryed using the endpoint, like this http://MySite.com/wp-admin/admin-ajax.php/rtmedia_api/wp_login/?username=USER&password=PASS in this case it display me “0”.
I don’t understand how to use this api whith json code to do json request.
I use also other plugin which have api and to perform a request i just need to type something like this http://MySite.com/api/?json=get_recent_posts/?cookie=COOKIE
Why it dosen’t work whith rtMedia api??
(sorry for my bad english :smiley: )

Hi Sabir,
Please check this doc -> https://rtcamp.com/rtmedia/docs/developer/json-api/ for rtMedia json API.

Thanks Ritesh!
I have already read the documentation, but my question is how can i attache all the parameters in the url??
For example when i try to do this request http://MySite/wp-admin/admin-ajax.php/?action=rtmedia_api (i have missed on purpose the method and other parameters if needed) the web-site recognise that i whant to do a request and the output is {“status”:“FALSE”,“status_code”:600001,“message”:“no method specified”,“data”:false} so now i have tryed to insert the method wp_login, so the url is http://MySite/wp-admin/admin-ajax.php/?action=rtmedia_api/?method=wp_login and the output is 0.
I don’t understand why the output is 0 and not an error like “username and password missed”.
I have tryed again attaching also the username and password, so the link is http://MySite/wp-admin/admin-ajax.php/?action=rtmedia_api/?method=wp_login/?username=USERNAME&password=PASSWORD the output is again 0
I dont understand why if i insert just the “action” i have the error rightly, beacause i have missed the method but when i insert the method it display me 0.
Any idea??


Hi Sabir,
You need to send this data in post request and not in get request and you should send all the required parameters which ever are needed.

Ok i have understand, just another question: I have to send all the request to the endpoint (http://MySite/wp-admin/admin-ajax.php) right?

Yes, the same endpoint that used for WordPress ajax request.

Thanks a lot Ritesh now it’s all more clear.
We can say the post is SOLVED.

I am glad to know that your queries has been resolved :slight_smile: