How to use IBM® App Connect with WordPress

WordPress is web publishing software that can be used to create a website or a blog.

Connecting to WordPress

Complete the connection fields that you see in the App Connect Designer Connect > Applications and APIs page (previously the Catalog page) or flow editor. If necessary, work with your WordPress administrator to obtain these values.

WordPress has the following connection fields.

Authorization method Connection field Description Applicability
BASIC OAUTH Access token Create an application in the WordPress developer site to create a client ID. An access token is generated from the client ID and redirect URI.
Tip: For more information about generating an access token, see OAuth2 Authentication in the WordPress documentation.
App Connect Enterprise as a Service and App Connect in containers
OAUTH 2.0 AUTH CODE
Tip: Authorize a connection to WordPress by signing in to your account.
  App Connect Enterprise as a Service

To connect to a WordPress endpoint from the App Connect Designer Applications and APIs page for the first time, expand WordPress, then click Connect. For more information, see Managing accounts.

Tip:

Before you use the account that is created in App Connect in a flow, rename the account to something meaningful that helps you to identify it. To rename the account on the Applications and APIs page, select the account, open its options menu (⋮), then click Rename Account.

General considerations

Before you use App Connect Designer with WordPress, take note of the following considerations:

  • (General consideration) You can see lists of the trigger events and actions that are available on the Applications and APIs page of the App Connect Designer.

    For some applications, the events and actions depend on the environment and whether the connector supports configurable events and dynamic discovery of actions. If the application supports configurable events, you see a Show more configurable events link under the events list. If the application supports dynamic discovery of actions, you see a Show more link under the actions list.

  • (General consideration) If you are using multiple accounts for an application, the set of fields that is displayed when you select an action for that application can vary for different accounts. In the flow editor, some applications always provide a curated set of static fields for an action. Other applications use dynamic discovery to retrieve the set of fields that are configured on the instance that you are connected to. For example, if you have two accounts for two instances of an application, the first account might use settings that are ready for immediate use. However, the second account might be configured with extra custom fields.

Events and actions

WordPress events

These events are for changes in this application that trigger a flow to start completing the actions in the flow.

Note: Events are not available for changes in this application. You can trigger a flow in other ways, such as at a scheduled interval or at specific dates and times.

WordPress actions

Your flow completes these actions on this application.

Object Action Description
Author Retrieve top-commented authors for site Retrieves the top-commented authors for a site
Blog Retrieve recommended blogs Retrieves recommended blogs for the current user
Category Create category Creates a category on a WordPress site
Retrieve categories Retrieves categories from a WordPress site
Comment Create comment Creates a comment on a post in a WordPress site
Retrieve comments Retrieves comments available from a WordPress site
Feed Retrieve feed details Retrieves details of a feed by feed URL
Retrieve followed feeds Retrieves feeds the user is following
Follower Follow blog Follows a blog
Unfollow blog Unfollows a blog
Following blogs posts Retrieve following blog posts Retrieves a list of posts from the blogs that a user followed
Like comment Like comment Likes a comment
Retrieve likes for comment Retrieves all likes for a comment on WordPress
Unlike comment Unlikes a comment
Like post Like post Likes a post
Retrieve likes for post Retrieves all likes for a post on WordPress
Unlike post Unlikes a post
Liked blog posts Retrieve liked blog posts Retrieves a list of posts from the blogs that a user likes
Media Retrieve media Retrieves media from a WordPress site
Post Create post Creates a post on a WordPress site
Retrieve posts Retrieves posts from a WordPress site
Post stats Retrieve most commented posts for site Retrieves the most commented posts in a WordPress site
Post views Retrieve view stats for post Retrieves the number of views for a post
Referrer details Retrieve referrers for site Retrieves other blogs, websites, and search engines that link to a WordPress site
Site Retrieve sites Retrieves sites of a current user from WordPress
Site country views Retrieve views by country for site Retrieves the number of views received per country for a site
Site followers Retrieve followers for site Retrieves details about followers of a site
Site publicize followers Retrieve publicize follower count for site Retrieves the Publicize follower count from all social networks to which your WordPress site is connected
Site stats Retrieve stats for site Retrieves statistics for a site
Site stats summary Retrieve stats summary for site Retrieves summarized views, visitors, likes, and comments for a site
Site tag views Retrieve views by tags and categories for site Retrieves views for a site by tags and categories
Site top authors Retrieve top authors for site Retrieves top authors for a site
Site top posts Retrieve top posts for site Retrieves details about the top posts for a site
Tag Create tag Creates a tag on a WordPress site
Retrieve tags Retrieves tags from a WordPress site
Tag details Retrieve subscribed status for tag Retrieves the subscribed status of the user to a given tag
Retrieve subscribed tags Retrieves tags subscribed to by the user
Subscribe to tag Subscribes to a new tag
Unsubscribe from tag Unsubscribes from a tag
Trending tags Retrieve trending tags Retrieves a list of trending tags
User Retrieve users Retrieves users in WordPress

Examples

Dashboard tile for a template that uses WordPress
Dashboard tile for a template that uses WordPress
Dashboard tile for a template that uses WordPress

Use templates to quickly create flows for WordPress

Learn how to use App Connect templates to quickly create flows that complete actions on WordPress. For example, go to the Discover page and search for WordPress.

Dashboard tile for a template that uses WordPress