• Hi,

    I am trying to make a basic Android App for a church. I am using Universal – Full Multi-Purpose Android App. I have managed to find the rest API for WordPress Posts
    https://mychurchdomain.org.uk/wp-json/wp/v2/
    to pull them in.
    What would I use to get sermons in?
    I have looked on the internet and found things like
    …wp-json/wp/v2/wpfc_sermon
    and
    …wp-json/wp/v2/types/wpfc_sermon
    but neither seem to work

    Thanks a lot

Viewing 2 replies - 1 through 2 (of 2 total)
  • I have been working with API here for a couple weeks and got it to work for my project yesterday.

    I am not sure why you are not able to retrieve the sermon meta data.
    This is the post that helped me some what figure out how to use the API.
    https://www.ads-software.com/support/topic/rest-api-33/

    I was able to perform a GET Request on https://mychurchdomain.com/wp-json/wp/v2/wpfc_sermon/ and I received the JSON in the body of the request. I easily test this functionality by putting the url in my browser and was able to see the JSON text.

    Are you getting any HTTP response error codes?
    The reason I ask is I was originally getting a 403 when I started trying to access the API programmatically. I later found out that this was because of some anti-bot security that my website host had on their side. Once I included a valid User-Agent in my HTTP GET request header then I was able to pull the data.
    Hope this helps!

    Thread Starter Caleb OLoan

    (@caleb-oloan)

    Hi David,

    Thanks for that. I am not writing any code but was creating a basic app using the app template Universal – Full Multi-Purpose Android App.
    It had sections where you paste in rest APIs.
    I don’t think it seems to work with all custom post types now.
    But as you mention that rest API seems to work for others which is worth knowing.

    Thanks again

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Rest API’ is closed to new replies.