From 32fdf49d31bc9512df37e6b68964f1d9b461e86a Mon Sep 17 00:00:00 2001 From: Sefa Ilkimen Date: Sun, 8 Apr 2018 23:59:11 +0200 Subject: [PATCH] fix misleading examples in README --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1ba7b96..f5fd2b8 100644 --- a/README.md +++ b/README.md @@ -289,7 +289,7 @@ Execute a GET request. Takes a URL, parameters, and headers. See the [post](#p ```js cordova.plugin.http.get('https://google.com/', { - id: 12, + id: '12', message: 'test' }, { Authorization: 'OAuth2: token' }, function(response) { console.log(response.status); @@ -315,7 +315,7 @@ Uploads a file saved on the device. Takes a URL, parameters, headers, filePath, ```js cordova.plugin.http.uploadFile("https://google.com/", { - id: 12, + id: '12', message: 'test' }, { Authorization: 'OAuth2: token' }, 'file:///somepicture.jpg', 'picture', function(response) { console.log(response.status); @@ -329,7 +329,7 @@ Downloads a file and saves it to the device. Takes a URL, parameters, headers, ```js cordova.plugin.http.downloadFile("https://google.com/", { - id: 12, + id: '12', message: 'test' }, { Authorization: 'OAuth2: token' }, 'file:///somepicture.jpg', function(entry) { // prints the filename