Ey Guys Looking for some help here im trying to connect my B4A APP with Wordpress. According to this post REST API I got this working correctly on Python but translated to VB is something like this:
I have this error when run this:
ResponseError. Reason: okhttp3.internal.http2.StreamResetException: stream was reset: PROTOCOL_ERROR, Response:
ButtonWordpress_Click:
Dim J As HttpJob
Dim Data As Map = CreateMap("title": "DCA DB", "content": "HELLO FROM BASIC 4 ANDROID", "status": "publish")
Dim Json As String = Data.As(JSON).ToString
Dim Response As String
J.Initialize("", Me)
J.Username = "Fabian"
J.Password = "XXXXXXXXXXXXXXXXXXXXX"
J.PostString("https://dca-mx.com/wp-json/wp/v2/pages/362", Json)
Wait for (J) JobDone(J As HttpJob)
If J.Success Then
Response = J.PostString("https://dca-mx.com/wp-json/wp/v2/pages/362", Json)
Log(Response)
Log(J.GetString)
End If
I have this error when run this:
ResponseError. Reason: okhttp3.internal.http2.StreamResetException: stream was reset: PROTOCOL_ERROR, Response: