Turning the Couponer Theme into a custom android app.

Hello sir, i have purchased couponer theme now i want to make a custom android app for my website. I need live APIs for my website how to i get it?

Hey @vinerviraj,

@pebas is the author of that theme. I’ve tagged them in, they might be able to help you :slight_smile:

Since when theme author has anything to do with android and WP-API ?

https://developer.wordpress.org/rest-api/

Since the Author of that Theme might have encountered that question before and maybe can provide a better solution than just a link. :wink:

I tried it, but is not work properly

Hi

@vinerviraj

as i understand you need a api to interconnect your mobile app with your wordpress install right ?

if so please follow the steps.

In wordpress rest api can be accessed by using wp-json with your site url like

http://example.com/wp-json/

which triggers the Rest api to init

and you have to add your custom endpoints to get read,write,edit,delete the datas from wp.

For eg lets say i need to get a list of all post then you need to send an request to the below url

http://example.com/wp-json/wp/v2/posts

which returns all the post from wp.

for more information on how to use rest api please refer to

http://v2.wp-api.org/

https://developer.wordpress.org/rest-api/

1 Like

Thank Brother

2 Likes

You are welcome :slight_smile:

WP RESTful API and themes are not related at all. And that link contains everything a developer needs to know about WP’s API. (you won’t start developing an android app without knowing how to read docs and use an API, makes sense, right ?)
I can tell you 100% that theme’s author will give same link with words “Sorry, not our business” :wink:

1 Like

Thanks Brother

Hi,

You are right but i would rather prefer to provide a way path (Help them ) by providing some simple tips and the document link

rather than saying

1 Like