์ „์ฒด ๊ธ€ 427

[VS Code] Tabํ‚ค ๋„์–ด์“ฐ๊ธฐ ๊ธ€์ž์ˆ˜ ์„ค์ •ํ•˜๊ธฐ

์ฝ”๋”ฉ ์Šคํƒ€์ผ ๊ฐ€์ด๋“œ์—๋”ฐ๋ผ ๋งž์ถฐ์„œ ์ž‘์—…์„ ํ• ํ…Œ๊ณ VS Code ๊ธฐ๋ณธ๊ฐ’์ด Spsaces:4๋กœ ๋˜์–ด์žˆ๋Š”๋ฐ๋‚œ 2์นธ์œผ๋กœ ํ•˜๊ณ ์‹ถ๋‹คSpaces๊ฐ’ ๋ณ€๊ฒฝ์„ ์œ„ํ•ด์„œ ๋นจ๊ฐ„๋„ค๋ชจ๋ถ€๋ถ„์„ ํด๋ฆญํ•˜๋ฉด ์•„๋ž˜ํ™”๋ฉด์ด ๋œฐํ…๋ฐIndent Using Spaces๋ฅผ ํด๋ฆญํ•ด์ค€๋‹ค๊ทธ๋Ÿผ Spaces๊ฐ’์„ ์„ ํƒํ•˜๋Š” ํ™”๋ฉด์ด ๋‚˜์˜ค๋Š”๋ฐ๋‚˜๋Š” 2๋กœ ๋ณ€๊ฒฝํ• ๊ฒƒ์ด๊ธฐ๋•Œ๋ฌธ์— 2๋ฅผ ์„ ํƒํ•ด์ค€๋‹ค

Dev_Tool/VS Code 2024.12.02

[KakaoAPI] [2/2]์นด์นด์˜คํ†ก ๋ฉ”์‹œ์ง€ ์ „์†กAPI ์ด์šฉํ•˜๊ธฐ

ํ˜น์‹œ ์ด ๊ธ€์„ ๋จผ์ € ๋ณด๊ฒŒ๋˜์—ˆ๋‹ค๋ฉด[1/2]์นด์นด์˜คํ†ก ๋ฉ”์‹œ์ง€ ์ „์†กAPI ์ด์šฉํ•˜๊ธฐ๋ฅผ ๋จผ์ €๋ณด๊ณ  ์นด์นด์˜ค๊ฐœ๋ฐœ์ž์„ผํ„ฐ ํŽ˜์ด์ง€์—์„œ์ธ๊ฐ€์ฝ”๋“œ๋ฐ›๊ธฐAPI์‚ฌ์šฉ์„ ์œ„ํ•œ ์‚ฌ์ „์„ค์ •์„ ๋งˆ์น˜๊ณ  ์˜ค๊ธธ ๋ฐ”๋ž€๋‹ค์นด์นด์˜คํ†ก ๋ฉ”์‹œ์ง€์ „์†กAPI ์‚ฌ์šฉ์„ ์œ„ํ•œ ๋‹จ๊ณ„๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™๋‹ค1.์ธ๊ฐ€์ฝ”๋“œ๋ฐ›๊ธฐ2.ํ† ํฐ๋ฐ›๊ธฐ3.๋ฉ”์‹œ์ง€ ์ „์†ก ์š”์ฒญํ•˜๊ธฐ์นด์นด์˜ค ๊ฐœ๋ฐœ์ž ์„ผํ„ฐURL : https://developers.kakao.com/console/app[ 1. ์ธ๊ฐ€์ฝ”๋“œ๋ฐ›๊ธฐ ]API๊ณต์‹๋ฌธ์„œhttps://developers.kakao.com/docs/latest/ko/kakaologin/rest-api#request-codeAPI URLhttps://kauth.kakao.com/oauth/authorizeHTTP methodGETRequestParamclient_id์นด์นด์˜ค ๊ฐœ๋ฐœ์ž์„ผํ„ฐ > ๋‚ด..

API/KakaoAPI 2024.11.28

[KakaoAPI] [1/2]์นด์นด์˜คํ†ก ๋ฉ”์‹œ์ง€ ์ „์†กAPI ์ด์šฉํ•˜๊ธฐ

์ด ๊ธ€์„ ์ž‘์„ฑํ•˜๊ฒŒ ๋œ ์ด์œ ๋Š” ๊ณต์‹๋ฌธ์„œ๋ฅผ ๋ณด๊ณ ์นด์นด์˜คํ†ก ๋ฉ”์„ธ์ง€ ์ „์†ก์„ ๊ฐ„๋‹จํ•˜๊ฒŒ ๊ตฌํ˜„ํ•ด๋ณด๋ ค๊ณ  ํ–ˆ๋Š”๋ฐ๋„์ €ํžˆ ๋ฌธ์„œ๋งŒ ๋ด์„œ๋Š” ์ง„๋„๊ฐ€ ์ž˜์•ˆ๋‚˜๊ฐ”๊ธฐ๋•Œ๋ฌธ์— ์ž‘์„ฑํ•˜๊ฒŒ๋๋‹ค๋‚˜์™€ ๋น„์Šทํ•œ ์‚ฌ๋žŒ๋“ค์€ ์•„๋ž˜๊ณผ์ •์„ ๋”ฐ๋ผํ•˜๋ฉด ๋˜๊ณ ๋‚ด์šฉ์ด ๋„ˆ๋ฌด ๊ธธ์–ด์„œ ๊ธ€์„ 2๋ฒˆ์— ๋‚˜๋ˆ ์“ฐ๊ฒ ๋‹ค1๋ฒˆ์งธ ๊ธ€์€ API์‚ฌ์šฉ์„ ์œ„ํ•œ ๊ฐœ๋ฐœ์ž์„ผํ„ฐ์—์„œ ํ•ด์•ผํ•˜๋Š” ์‚ฌ์ „์„ค์ •์— ๋Œ€ํ•œ ์„ค๋ช…2๋ฒˆ์งธ ๊ธ€์€ ์‚ฌ์ „์„ค์ •์ด ์ •์ƒ์™„๋ฃŒ๋˜์—ˆ์„๋•Œ ์ง„ํ–‰ํ•˜๋Š” ๋ฉ”์‹œ์ง€์ „์†กAPI ํ˜ธ์ถœ ๊ณผ์ •์ด๋‹ค[ ์นด์นด์˜คํ†ก REST API๋ฅผ ์“ฐ๊ธฐ์œ„ํ•œ ๊ณผ์ • ]https://developers.kakao.com/docs/latest/ko/kakaologin/rest-api#req-user-info๊ฐ„๋‹จํ•˜๊ฒŒ ์œ„ ๊ทธ๋ฆผ์„ ์„ค๋ช…ํ•˜์ž๋ฉด์นด์นด์˜คAPI์‚ฌ์šฉ์„ ์œ„ํ•œ ๋‹จ๊ณ„๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™๋‹ค1. API์‚ฌ์šฉ์„ ์œ„ํ•ด์„œ๋Š” ์‚ฌ์šฉ์žtoken์ด ํ•„์š”ํ•˜๋‹ค2. ์‚ฌ์šฉ์žtoken์„..

API/KakaoAPI 2024.11.28

[Java] 14. ์ƒ์†(Intheritance)

[ ์ƒ์† ] -๊ฐ์ฒด์ง€ํ–ฅ์—์„œ ๊ฐ€์žฅ ์ค‘์š”ํ•œ๊ฒƒ์€ ์žฌํ™œ์šฉ์„ฑ์ธ๋ฐ์ƒ์†์€ ์žฌํ™œ์šฉ์„ฑ์„ ๊ทน๋Œ€ํ™”์‹œํ‚จ ํ”„๋กœ๊ทธ๋ž˜๋ฐ ๊ธฐ๋ฒ•์ด๋ผ๊ณ  ํ•  ์ˆ˜ ์žˆ๋‹ค์ƒ์†(Intheritance)์€ ๋ฌผ๋ ค์ค€๋‹ค๋Š” ์˜๋ฏธ์ด๋ฉฐ์–ด๋–ค๊ฐ์ฒด๊ฐ€ ์žˆ์„๋•Œ ๊ทธ ๊ฐ์ฒด์˜ ์†์„ฑ(๋ณ€์ˆ˜)์™€ ๋ฉ”์†Œ๋“œ๋ฅผ๋‹ค๋ฅธ ๊ฐ์ฒด๊ฐ€ ๋ฌผ๋ ค๋ฐ›์„ ์ˆ˜ ์žˆ๋Š” ๊ธฐ๋Šฅ์„ ์ƒ์†์ด๋ผ๊ณ  ํ•œ๋‹ค// ์‚ฌ์ดํผ์˜ ๊ธฐ๋ณธ์†์„ฑ๊ณผ ๊ธฐ๋Šฅ์„ ์ •์˜ํ•œ ํด๋ž˜์Šคpublic class Cypher { String name; // ์‚ฌ์ดํผ ์ด๋ฆ„ int age; // ์‚ฌ์ดํผ ๋‚˜์ด String job; // ์‚ฌ์ดํผ ์ง์—… public Cypher() { } public Cypher(String name, int age, String job) { this.name = name; this.age = age; ..

JavaStudy/Basic 2024.11.27

[Java] 13. ํด๋ž˜์Šค์™€ ์ธ์Šคํ„ด์Šค

// ์‚ฌ์ดํผ๋ฅผ ์„ค๊ณ„ํ•˜๊ธฐ์œ„ํ•œ ํด๋ž˜์Šคclass Cypher { String name; // ์‚ฌ์ดํผ ์ด๋ฆ„ int age; // ์‚ฌ์ดํผ ๋‚˜์ด String job; // ์‚ฌ์ดํผ ์ง์—… public Cypher(){} public Cypher(String name, int age, String job) { this.name = name; this.age = age; this.job = job; System.out.println(this.name + " ์ƒ์„ฑ"); } public void setName(String name){ this.name = name; } public void setAge(int age..

JavaStudy/Basic 2024.11.27
728x90
๋ฐ˜์‘ํ˜•