You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _build/pages/android.markdown
+41Lines changed: 41 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -169,6 +169,47 @@ android.speak(text)
169
169
170
170
Performs text to speech (default is ENGLISH).
171
171
172
+
## HTTPS Web request
173
+
174
+
```smallbasic
175
+
android.request(url, [postData, authToken])
176
+
```
177
+
178
+
-`url`: The URL endpoint for the request.
179
+
-`data` (optional): Data to send in the request body. If provided, the request method is `POST` with `Content-Type: application/json`. If omitted, the request method defaults to `GET`.
180
+
-`token`: (optional): Bearer authentication token for a `POST` request.
181
+
182
+
The `REQUEST` function enables making HTTPS requests (either `POST` or `GET` methods), supporting secure connections that are not possible with the `OPEN` command.
183
+
184
+
**Note**: For desktop versions, you can utilize the `RUN` command with `curl` for similar functionality.
<li><code>url</code>: The URL endpoint for the request.</li>
154
+
<li><code>data</code> (optional): Data to send in the request body. If provided, the request method is <code>POST</code> with <code>Content-Type: application/json</code>. If omitted, the request method defaults to <code>GET</code>.</li>
155
+
<li><code>token</code>: (optional): Bearer authentication token for a <code>POST</code> request.</li>
156
+
</ul>
157
+
<p>The <code>REQUEST</code> function enables making HTTPS requests (either <code>POST</code> or <code>GET</code> methods), supporting secure connections that are not possible with the <code>OPEN</code> command.</p>
158
+
<p><strong>Note</strong>: For desktop versions, you can utilize the <code>RUN</code> command with <code>curl</code> for similar functionality.</p>
0 commit comments