Advanced RSS data outputs: DSYNC can help to set up an advanced RSS feed that contains core information including: prices, stock, orders, customers, transaction data, inventory data and much more.
Note: RSS feeds can be set up from / to any system we just use Woo as an example
In this tutorial, we will be setting up an RSS feed from Woocommerce and published the RSS feed in a JSON format. As a side note DSYNC can set up multiple RSS feeds and display in multiple formats. For this tutorial we will use Woocommerce as the example system however we can publish RSS feeds from most systems.
For this example we will be publishing to a publicly accessible URL / RSS feed.
This is a normal use case for developers who would like to build ontop of the published RSS information. These RSS feeds can also be used by resellers and suppliers.
Add a new system to the dashboard
First, we will need to add a system to the dashboard
- Select “+ System” or use the wizard to set up your first system
For this example, we will use Woocommerce as an example system, however please note you can set up RSS and web services to and from multiple shopping carts. You do not need to enter in the Basic User name and password this is an advanced option
Enter in your credentials, in this case the Woo URL and the two access keys
This will add your Woocommerce site to the dashboard
Add a second system (RSS destination) to your dashboard
Now it is time to set up the RSS section on your DSYNC dashboard
- In the top right hand corner please help to select “+ destination”
- From the drop, down menu select “LINK POINT or RSS FEED” The other options include to automate an email to be sent or to manually download the output. These functions will be covered in a separate tutorial.
- Name your RSS feed endpoint
A link icon will be added to your dashboard (as above)
- On the right panel there will be a URL that will be the URL that the RSS data will be accessible on.
- DSYNC also has the option to generate a user name and password to protect your RSS feed,this locking function is useful if you would like to provide different RSS feeds to different parties
In this example we would like to set up a product batch export to the RSS feed
Create a new endpoint (Batch endpoint rather than real time)
- To do this we will need to create a new endpoint on the Woocommerce side
- Start by clicking on the edit button
- Then select “Add Endpoint” on the SOURCE side – We are selecting source as it is the origin
- Name the endpoint
- The connector type would be “API” as we are using an API to send to the RSS URL
Create a Data Layout
Now to create a data layout by clicking on the endpoint link we have just created. Data layouts can be created quickly by visiting the systems API documents and obtaining the XML or JSON code.
For this example we will be generating a list of products to the XML feed. Example of where you can located the code to generate the data layout. Example Woo resource here
- Copy and paste the JSON product list code from Woocommerce into your DSYNC data layout editor This will apply the data layout
- Select Save.
As a warning, some systems may have interesting field types requiring users to change the format from Boolean – this can be solved by changing the format type or changing in the functions section.
Now to create a data layout on the RSS feed side
- Double click on the link icon
- Repeat the same steps in the Data layout editor by selecting JSON and then entering the same code snippet from the Woocommerce documents
- Now that we have created a data layout on both the Woocommerce side and the RSS side it is time to create a relation / Link
- From your dashboard click on the new Woocommerce batch endpoint we have created
- Then select the RSS icon we created
- Proceed to name your job
- The next step is to either pick a map from our selection or create your own map
Lets create a new map
- Name your map
- Edit the map - Now it is time to edit the map
- Pick and pair all of the fields you would like to extract from your Woocommerce site to be displayed on the RSS feed. For this tutorial lets pick “Title” and “Price”
Now if we return to the dashboard we will need to set up the Woocommerce endpoint settings. Click on the newly created Woocommerce endpoint.
On the right hand side the settings field will appear asking you to add in the information. Copy the your Woocommerce URL and then obtain the Woocommerce Get method URL from the API documents
Still within the authorization settings apply the method – in this case it is “Get” As we save the authorizations the Job has changed to Aqua and is ready to run
Lets test the RSS feed by selecting Run
We can see the status by checking the HISTORY panel
To check the results we can then check the RSS URL to confirm the output is correct. As we check the RSS feed we can see the output is successful displaying our selected fields including title and price.
Just for fun we can return to DSYNC and add more fields to be displayed on the RSS feed
Lets select save and then run the job again
As we refresh the RSS feed we can see all of the new entities have now been published as instructed
There are many developer use cases for RSS feeds and DSYNC can help to publish in both JSON format and in XML.