@creatrip/kakao-sdk
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -0,3 +1,4 @@ | ||
export * from './keyword/keyword.enum'; | ||
export * from './keyword/keyword.fetch'; | ||
export * from './keyword/keyword.input'; | ||
export * from './keyword/keyword.output'; |
@@ -17,2 +17,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./keyword/keyword.enum"), exports); | ||
__exportStar(require("./keyword/keyword.fetch"), exports); | ||
@@ -19,0 +20,0 @@ __exportStar(require("./keyword/keyword.input"), exports); |
@@ -5,3 +5,5 @@ import { SearchKeywordInput } from './keyword.input'; | ||
* ํค์๋๋ก ์ฅ์ ๊ฒ์ํ๊ธฐ | ||
* | ||
* @link https://developers.kakao.com/docs/latest/ko/local/dev-guide#search-by-keyword | ||
*/ | ||
export declare function searchKeyword(restApiKey: string, input: SearchKeywordInput): Promise<SearchKeywordOutput>; |
@@ -6,2 +6,4 @@ "use strict"; | ||
* ํค์๋๋ก ์ฅ์ ๊ฒ์ํ๊ธฐ | ||
* | ||
* @link https://developers.kakao.com/docs/latest/ko/local/dev-guide#search-by-keyword | ||
*/ | ||
@@ -14,7 +16,7 @@ async function searchKeyword(restApiKey, input) { | ||
} | ||
if (input.x != undefined) { | ||
url.searchParams.append('x', String(input.x)); | ||
if (input.longitude != undefined) { | ||
url.searchParams.append('x', String(input.longitude)); | ||
} | ||
if (input.y != undefined) { | ||
url.searchParams.append('y', String(input.y)); | ||
if (input.latitude != undefined) { | ||
url.searchParams.append('y', String(input.latitude)); | ||
} | ||
@@ -81,4 +83,4 @@ if (input.radius != undefined) { | ||
categoryGroupName: document.category_group_name, | ||
x: Number(document.x), | ||
y: Number(document.y), | ||
longitude: Number(document.x), | ||
latitude: Number(document.y), | ||
phone: document.phone, | ||
@@ -92,9 +94,2 @@ addressName: document.address_name, | ||
} | ||
searchKeyword('cf1b608c58d93c5b8fa9a9d9b2c1e90d', { | ||
query: '๊ตฌ๋ฆฌ ์ฃผ์ ์', | ||
}) | ||
.then((output) => { | ||
console.log(JSON.stringify(output, null, 2)); | ||
}) | ||
.catch(console.error); | ||
//# sourceMappingURL=keyword.fetch.js.map |
@@ -18,3 +18,3 @@ import { CategoryGroupCode } from './keyword.enum'; | ||
*/ | ||
x?: number; | ||
longitude?: number; | ||
/** | ||
@@ -24,3 +24,3 @@ * ์ค์ฌ ์ขํ์ Y ํน์ ์๋(latitude) ๊ฐ \ | ||
*/ | ||
y?: number; | ||
latitude?: number; | ||
/** | ||
@@ -27,0 +27,0 @@ * ์ค์ฌ ์ขํ๋ถํฐ์ ๋ฐ๊ฒฝ๊ฑฐ๋ฆฌ. ํน์ ์ง์ญ์ ์ค์ฌ์ผ๋ก ๊ฒ์ํ๋ ค๊ณ ํ ๊ฒฝ์ฐ ์ค์ฌ์ขํ๋ก ์ฐ์ผ x,y์ ํจ๊ป ์ฌ์ฉ \ |
@@ -88,3 +88,3 @@ import { CategoryGroupCode } from './keyword.enum'; | ||
*/ | ||
x: number; | ||
longitude: number; | ||
/** | ||
@@ -94,3 +94,3 @@ * Y ์ขํ๊ฐ, ๊ฒฝ์๋์ธ ๊ฒฝ์ฐ latitude(์๋) | ||
*/ | ||
y: number; | ||
latitude: number; | ||
/** | ||
@@ -97,0 +97,0 @@ * ์ฅ์ ์์ธํ์ด์ง URL |
{ | ||
"name": "@creatrip/kakao-sdk", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Kakao SDK for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1
19200
25
380