-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -121,9 +121,9 @@ | |
``` | ||
const getWord=require('tdk-all-api'); | ||
const results = async (searching) => { | ||
const results = async (searching,uri) => { | ||
try { | ||
const sonuc = await getWord(searching); | ||
const sonuc = await getWord(searching,"YOUR_PROXY_URL(optional)"); | ||
console.log(sonuc); | ||
} catch (e) { | ||
console.error(e); | ||
|
@@ -150,6 +150,15 @@ word: "yazılım" | |
} | ||
``` | ||
|
||
## Parameters | ||
1.0.0 sürümünde fonksiyona ikinci parametre olarak url parametresi eklenmiştir. Uygulamanızı canlıya alma aşamasına getirdiğinizde alabileceğiniz CORS hatalarını önlemek için proxy url'nizi kullanabilirsiniz. Bunu işleve ikinci bir parametre olarak bildirebilirsiniz. 2. parametre opsiyoneldir, varsayılan olarak TDK'nın API endpointi tanımlanmıştır. | ||
|
||
| # | Parameters | Example | Type |Requirement| | ||
|---|-------------|-------------|------------|-----------| | ||
| 1.| Search Word | "Yazılım" | string | yes | | ||
| 2.| Proxy Url | "/api" | string | optional | | ||
|
||
## License | ||
|
||
|
||
ISC (c) Halit Uzan <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters