Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
in-seo committed Feb 11, 2023
2 parents 47cc38a + 4c918c0 commit 0172db0
Showing 1 changed file with 51 additions and 17 deletions.
68 changes: 51 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# โœ… ๋‹จ ๋‘ ์ค„์˜ ์ฝ”๋“œ๋กœ ๋ฉ”์ผ ๋ฐ ๋Œ€ํ•™ ์ธ์ฆ ์„œ๋น„์Šค ์‚ฌ์šฉํ•˜๊ธฐ (2์›”13์ผ ์ถœ์‹œ์˜ˆ์ •)
# โœ… ๋‹จ ํ•œ ์ค„์˜ ์ฝ”๋“œ๋กœ ๋ฉ”์ผ ๋ฐ ๋Œ€ํ•™ ์ธ์ฆ ์„œ๋น„์Šค ์‚ฌ์šฉํ•˜๊ธฐ

## ๐Ÿฃ ์ดˆ๋ณด์ž๋ฅผ ์œ„ํ•œ UnivCert์˜ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ๋ฐฐํฌ (JitPack)
## ๐Ÿฃ ์ดˆ๋ณด์ž๋ฅผ ์œ„ํ•œ UnivCert์˜ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ๋ฐฐํฌ

์ž์„ธํ•œ ์„ค๋ช…์€ [ํ•ด๋‹น ์‚ฌ์ดํŠธ](https://univcert.com/)์—์„œ ํ™•์ธํ•˜์‹ค ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
์ž์„ธํ•œ ์„ค๋ช…์€ [ํ•ด๋‹น ์‚ฌ์ดํŠธ](https://univcert.com/)์—์„œ๋„ ํ™•์ธํ•˜์‹ค ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

๐Ÿ’ก build.gradle์— ํ•ด๋‹น ์ฝ”๋“œ ๋‘ ์ค„ ์ถ”๊ฐ€

Expand All @@ -14,7 +14,7 @@ repositories{
dependencies{
...
implementation 'com.github.in-seo:UnivCert-JitPack:50c23ec9'
implementation 'com.github.in-seo:univcert:master-SNAPSHOT'
...
}
```
Expand All @@ -27,11 +27,11 @@ dependencies{

```
{
โ€œkeyโ€ : โ€œ๋ถ€์—ฌ๋ฐ›์€ API KEYโ€,
"emailโ€ : โ€œ[email protected]โ€,
โ€œunivNameโ€ : โ€œํ™์ต๋Œ€ํ•™๊ตโ€,
โ€œuniv_checkโ€ : true
(true๋ผ๋ฉด ํ•ด๋‹น ๋Œ€ํ•™ ์žฌํ•™ ์—ฌ๋ถ€, false๋ผ๋ฉด ๋ฉ”์ผ ์†Œ์œ ์ž ์ธ์ฆ๋งŒ)
โ€œkeyโ€ : โ€œ๋ถ€์—ฌ๋ฐ›์€ API KEYโ€,
"emailโ€ : โ€œ[email protected]โ€,
โ€œunivNameโ€ : โ€œํ™์ต๋Œ€ํ•™๊ตโ€,
โ€œuniv_checkโ€ : true
(true๋ผ๋ฉด ํ•ด๋‹น ๋Œ€ํ•™ ์žฌํ•™ ์—ฌ๋ถ€, false๋ผ๋ฉด ๋ฉ”์ผ ์†Œ์œ ์ž ์ธ์ฆ๋งŒ)
}
```

Expand All @@ -43,10 +43,10 @@ dependencies{

```
{
โ€œkeyโ€ : โ€œ๋ถ€์—ฌ๋ฐ›์€ API KEYโ€
โ€œemailโ€ : "[email protected]โ€,
โ€œunivNameโ€ : โ€œํ™์ต๋Œ€ํ•™๊ตโ€,
โ€œcodeโ€ : 3816
โ€œkeyโ€ : โ€œ๋ถ€์—ฌ๋ฐ›์€ API KEYโ€
โ€œemailโ€ : "[email protected]โ€,
โ€œunivNameโ€ : โ€œํ™์ต๋Œ€ํ•™๊ตโ€,
โ€œcodeโ€ : 3816
}
```

Expand All @@ -65,8 +65,8 @@ dependencies{

```
{
โ€œkeyโ€ : โ€œ๋ถ€์—ฌ๋ฐ›์€ API KEYโ€,
"emailโ€ : โ€œ[email protected]โ€
โ€œkeyโ€ : โ€œ๋ถ€์—ฌ๋ฐ›์€ API KEYโ€,
"emailโ€ : โ€œ[email protected]โ€
}
```

Expand All @@ -77,8 +77,42 @@ dependencies{

```
{
โ€œkeyโ€ : โ€œ๋ถ€์—ฌ๋ฐ›์€ API KEYโ€
โ€œkeyโ€ : โ€œ๋ถ€์—ฌ๋ฐ›์€ API KEYโ€
}
```

๐Ÿ‘ผ ์ƒ๋‹จ certify, certifycode์˜ ๋ฉ”์„œ๋“œ๋กœ ๋Œ€ํ•™ ์ธ์ฆ ์ ˆ์ฐจ๋ฅผ ๊ฐ„ํŽธํ•˜๊ฒŒ ๋๋‚ผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
โš ๏ธ ์ธ์ฆ ๊ฐ€๋Šฅํ•œ ๋Œ€ํ•™๊ต ๋ช…์ธ์ง€ ์ฒดํ‚น

`UnivCert.check("universityName");`
--> ํ•˜๋‹จ json ํ˜•ํƒœ๋กœ ์ž๋™ ๋ณ€ํ™˜ ๋ฐ http ์ „์†ก POST(univcert.com/api/v1/check)

```
{
"univName" : "์ธ์ฆ ์š”์ฒญ ํ•  ๋Œ€ํ•™๋ช…
(์˜ฌ๋ฐ”๋ฅธ ๋Œ€ํ•™๋ช…์ธ์ง€, 22๋…„ ๊ธฐ์ค€ ์ž…ํ•™์ƒ ์ˆ˜ ์ƒ์œ„ 150๊ฐœ ์ด๋‚ด์— ๋“œ๋Š” ํ•™๊ต์ธ์ง€)"
}
```

๐Ÿ‘ผ ์ƒ๋‹จ certify, certifycode ์˜ ๋ฉ”์„œ๋“œ๋กœ ๋Œ€ํ•™ ์ธ์ฆ ์ ˆ์ฐจ๋ฅผ ๊ฐ„ํŽธํ•˜๊ฒŒ ๋๋‚ผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.



<details>
<summary> ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์ ์šฉ ๋ฌธ์ œ ๋ฐœ์ƒ ์‹œ </summary>

1. gradle ์˜ ๋ฒ„์ „์ด ์ผ์น˜ํ•˜์ง€ ์•Š์•„์„œ ์ƒ๊ธฐ๋Š” ๋ฌธ์ œ์ผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

ํ”„๋กœ์ ํŠธ ๊ฒฝ๋กœ/gradle/wrapper/gradle-wrapper.properties ์—์„œ

distributionUrl ์„ ํ•˜๋‹จ์˜ ๋ฒ„์ „์œผ๋กœ ๋ฐ”๊ฟ”์„œ ์žฌ๋นŒ๋“œ ํ•ด์ฃผ์„ธ์š”.

distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-bin.zip

-------------------------------------------------------------------------------------
2. gradle์ด ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ์ธ์‹ํ•˜์ง€ ๋ชปํ•ด์„œ ์ƒ๊ธฐ๋Š” ๋ฌธ์ œ์ž…๋‹ˆ๋‹ค.

![refresh](https://user-images.githubusercontent.com/94730032/218086373-ebf296fa-8089-45c7-bc3c-496fa7a27a96.png)

gradle ํƒญ์—์„œ Reload Gradle Project ํ•˜์‹œ๋ฉด ์ •์ƒ์ ์œผ๋กœ ์‹คํ–‰ ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค.

</details>

0 comments on commit 0172db0

Please sign in to comment.