diff --git a/README.md b/README.md index ba1b2c8..19aac7b 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ yarn add simple-jsonp-promise ``` bash import jsonp from 'simple-jsonp-promise' let options = { - params:{ + data: { a : 1, b : 2 }, @@ -20,4 +20,4 @@ let options = { timeout : 15000 } let response = await jsonp('https://localhost/api.jsonp' , options); -``` \ No newline at end of file +```