Just because it took me some time to get this right, I wanted to post to help other users.
I was also tired of looking at all the plugins for sale when it is pretty easy to do with just core XOJO.
Enable Webhooks in Wordpress
Create REST API KEY SET
This is basic auth over HTTPS. (WooCommerce requires SSL for basic auth, if you are non-ssl you have to use OAUTH)
Legacy API is not required as this is using the newer API.
Dim secureSite As New HTTPSecureSocket
secureSite.Secure = True
secureSite.ConnectionType = SSLSocket.TLSv12
secureSite.SetRequestHeader(“Authorization:”, "Basic " + EncodeBase64( “APIKEY:APIPASS”, 0))
Dim data As String
data = secureSite.Get(“https://www.example.com/wp-json/wc/v2/products”, 30)
And if you would like to see this in detail, with basic Authorization and OAUTH, plus receive a sample project, plus receive a coupon code to attend a Udemy course on the subject for free, plus see how to upload pictures using the Rest api, then come to the MBS XOJO CON in Munich in September!
And you have the special opportunity to meet with XOJO CEO Geoff Perlman and get latest news.
I will not be able to come to the conference, but I would like to buy the course (udemy or other, if possible with subtitles, as youtube can do automatically).
I will not be able to come to the conference, but I would like to buy the course (udemy or other, if possible with subtitles, as youtube can do automatically).[/quote]
Ill see what I can do, but youll have to wait until after the conference.
Currently I have a German only course on Udemy, which shows how to make use of the REST api of a database plugin on Wordpress. There will be more in English, but after the MBS XOJO Conference only.