• Resolved codePoet234

    (@seeker34)


    A client has an external API that is storing all member info.

    My tasks are:

    a.) Create a ‘Member Profile Search’ page on his site, where users can search for members using certain keywords.

    b.) When the submit button on the search page is clicked, perform a “get” call to the external API, that will return JSON objects, and then display the results in a page on the site – possibly, the same page as the search page

    My questions:

    1.) Is there a plugin that I can use to achieve this?

    2.) If there’s no solution using an available plugin, how can I accomplish this?

    I’m a web developer and have customized a few WP sites, but nothing requiring this level of expertise, so your help would be greatly appreciated.

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • helldog2018

    (@helldog2018)

    Hi @seeker34,

    To get information from an external API WordPress uses wp_remote_get()
    Instead of explaining, I suggest you read THIS page, written by Pippin.

    Hope this helps.

    Thread Starter codePoet234

    (@seeker34)

    Howdy, @helldog2018

    Thanks for your response, and the link to the tutorial about using wp_remote_get()

    I find the tutorial a bit vague as to where the code being written needs to go, and specifically how to utilize it to accomplish my tasks.

    However, I will read up more on wp_remote_get(), and see if I can get a grasp of how it works.

    helldog2018

    (@helldog2018)

    Well you can insert this in for example a newly created plug-in.
    Here is an more detailed tutorial on wp_remote_get()

    Thread Starter codePoet234

    (@seeker34)

    @helldog2018

    Thanks! I will look into that tutorial and keep you updated.

    Have a great day!

    Thread Starter codePoet234

    (@seeker34)

    I ended up creating a Plugin that used Ajax to make the required call and display the results on the page.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Initiate a “get” call to an external API, and then display the JSON results’ is closed to new replies.