Hi, all.
I'm trying to integrate our management software to WooCommerce Rest API.
I'm using the OAuth B4A lib in B4J.
When I call auth.Sign(req) B4J returns to me this exception:
oauth.signpost.exception.OAuthMessageSignerException: java.lang.NullPointerException
Looking in the Watcher, the Base64 in the messageSigner inside OAuth object is null. How can I set a value for it?
I'm trying to integrate our management software to WooCommerce Rest API.
I'm using the OAuth B4A lib in B4J.
B4X:
Sub Process_Globals
Dim req As HttpRequest
Dim auth As OAuth
...
Dim key As String = "myConsumerKey..........."
Dim sec As String = "myConsumerSecret......"
Dim url As String = "localhost/wp-json/wc/v2/products"
End Sub
Sub App_Start
...
req.InitializeGet(url)
auth.Initialize(key, sec)
auth.Sign(req)
...
End Sub
When I call auth.Sign(req) B4J returns to me this exception:
oauth.signpost.exception.OAuthMessageSignerException: java.lang.NullPointerException
Looking in the Watcher, the Base64 in the messageSigner inside OAuth object is null. How can I set a value for it?