• Hello wordpress friends ??

    I need to call the Zabbix API to a WordPress Website.
    Is this possible?
    Does anyone ever tried to do this kind of stuff?
    Is there a plugin to call APIs?

    I really need an answer to know if it is possible to do this type of things or if I need to look for another type of CMS’s.

    Thanks and good work!

    • This topic was modified 3 years, 9 months ago by t-p. Reason: De-caps the title. Please don't shout at us
Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator bcworkz

    (@bcworkz)

    You can call any API you like with the WP_Http class methods, or any other HTTP request method available in PHP, like cURL. Conversely, any other site or app can make WP API requests. Some WP data is public, other data will require an application password.

    It’s likely anything like this would need to be custom coded. A quick search didn’t turn up much. Doesn’t mean there isn’t anything existing.

    Thread Starter ivopinto25

    (@ivopinto25)

    Hum ok, I think I got it.

    In this specific case, I want to make a portal in wordpress with the Zabbix API. Can I do it in the WordPress platform itself or do I have to write the code elsewhere? I’m just asking this question to be 100% clear.

    Thank you again for your help ??

    Moderator bcworkz

    (@bcworkz)

    If you want API data to appear in WP pages, you’d do it within WP, this is quite possible. The WP_Http class is only available to code within WP. You could instead conceivably use cURL or something external to WP and serve requests directly without going through WP, but then such pages wouldn’t be part of WP. As long as a requested file exists on the server, WP will not get involved.

    For that matter, you could have an independent app that makes both Zabbix and WP API requests and which serves conglomerated data. In this scenario, the app is responsible for its own theming, WP themes would have no influence.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Use API on a WordPress site’ is closed to new replies.