Skip to main content

Extra information

System documentation:

Connector package documentation

Table of Contents

1. Setting up HTTP Client Wordpress     1.1 Steps 2. Subscribing to entities from Wordpress     2.1 Steps     2.2 General concept 3. Publishing entity to Wordpress     3.1 Steps     3.2 General concept

1. Setting up HTTP Client Wordpress

1.1 Steps
  1. In the Alumio Dashboard, go to Clients → HTTP Clients. Create a new HTTP Client.
  2. Select Wordpress HTTP Client as PlatForm and click the next step.
  3. Fill in the Base URI with https://{{your_wordpress_domain}}/wp-json/wp/v2
  4. Fill in the Username with your Wordpress username.
  5. Fill in the Password with your Wordpress password.
  6. You can optionally enable the logging of requests to get the authentication log.
  7. Click the next step, fill in the name of the HTTP Client and finally you can save the HTTP Client to use
Wordpress connector screenshot 1

2. Subscribing to Entities from Wordpress

2.1 Steps
  1. Go to Connections → Incoming → create a new incoming configuration and select “Wordpress Subscriber” as the subscriber.
  2. Select the entity you want to subscribe to from Wordpress.
  3. Add any request parameters needed to subscribe to the entity.
  4. Select the Wordpress HTTP Client to use.
  5. You can optionally add a transformer to transform the request parameters into something you will request from Wordpress.
  6. You can also optionally enable pagination to allow Alumio to fetch paginated entities.
2.2 General Concept We follow Wordpress documentation on building this connector, so you can easily use the connector based on Wordpress API Reference. Entity The entity you want to subscribe to Wordpress. Please refer to the entities from the Wordpress API Reference page. Request Parameters These are the parameters you can provide to get the needed entity based on the Wordpress API Reference. Please look at the example below on how to fill the path field when subscribing to the Posts entity. Wordpress connector screenshot 2 Based on the documentation, we can query a single post by setting the post ID inside the path key in the Request Parameters. Alumio will then make a request to Wordpress with the URL /posts/{id} Wordpress connector screenshot 3 HTTP Client The HTTP Client configuration you will use to access Wordpress.

3. Publishing Entity to Wordpress

3.1 Steps
  1. Go to Connections → Outgoing, create a new outgoing configuration and select “Wordpress Publisher” as the publisher.
  2. Select the Method that you want the publisher to perform with the data.
  3. Select the Wordpress entity you want the data to be published.
  4. You can optionally add any query data to the request on the key query.
  5. You can optionally add any payload data to the request on the key payload.
  6. Select the HTTP Client to use.
3.2 General Concept Like the subscriber, the publisher has similar methods on how to use it. The difference is the payload that will be submitted by the publisher originating from the data (from routes, from transformers in outgoing configuration), though you can also add or modify payload using the Request Transformer. Method Currently, we support the HTTP Post and Delete method on submitting data to Wordpress. Entity We support publishing to most Wordpress endpoints. Please refer to Wordpress API Reference page. For example, we want to add a new Post. Please select “post” as the Method. with this payload:
{
    "title": "Draft Lathif December 8",
    "status": "draft"
}
Wordpress connector screenshot 4 Alumio will send an API request to Wordpress with the URL /posts, and here is the response example: Wordpress connector screenshot 5 HTTP Client The HTTP Client configuration you will use to access Wordpress.