B4J Question WooCommerce Integration

Hi, all.
I'm trying to integrate a desktop app with WooCommerce.
I have this:

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?
 
Top