Skip to content

Commit 32fdf49

Browse files
author
Sefa Ilkimen
committed
fix misleading examples in README
1 parent db0f233 commit 32fdf49

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ Execute a GET request. Takes a URL, parameters, and headers. See the [post](#p
289289

290290
```js
291291
cordova.plugin.http.get('https://google.com/', {
292-
id: 12,
292+
id: '12',
293293
message: 'test'
294294
}, { Authorization: 'OAuth2: token' }, function(response) {
295295
console.log(response.status);
@@ -315,7 +315,7 @@ Uploads a file saved on the device. Takes a URL, parameters, headers, filePath,
315315

316316
```js
317317
cordova.plugin.http.uploadFile("https://google.com/", {
318-
id: 12,
318+
id: '12',
319319
message: 'test'
320320
}, { Authorization: 'OAuth2: token' }, 'file:///somepicture.jpg', 'picture', function(response) {
321321
console.log(response.status);
@@ -329,7 +329,7 @@ Downloads a file and saves it to the device. Takes a URL, parameters, headers,
329329

330330
```js
331331
cordova.plugin.http.downloadFile("https://google.com/", {
332-
id: 12,
332+
id: '12',
333333
message: 'test'
334334
}, { Authorization: 'OAuth2: token' }, 'file:///somepicture.jpg', function(entry) {
335335
// prints the filename

0 commit comments

Comments
 (0)