Skip to content

LemonClub/lemonade-android-api-unity-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

15 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Lemonade API

ํ•„์ˆ˜ ๋ณ€๊ฒฝ ์‚ฌํ•ญ

  1. Lemonade.token ์— ๊ณต๊ธ‰๋ฐ›์€ accessToken ์„ ์ž…๋ ฅํ•จ.

    Example

  2. Assets/Plugins/Android/res/AndroidManifest.xml

์œ ์ € ์ •๋ณด ๋ฐ›์•„์˜ค๊ธฐ

  1. ์œ ์ € ์ •๋ณด๋ฅผ ๋ฐ›์•„์˜ฌ๋•Œ ์‚ฌ์šฉํ•˜๋Š” ํ•จ์ˆ˜ Lemonade.API.getUserInfo() ๋Š” Coroutine ์œผ๋กœ ํ˜ธ์ถœํ•ด ์ฃผ์–ด์•ผ ํ•จ

    StartCoroutine(Lemonade.API.getUserInfo(callFunc));

  2. callFunc ๋Š” Dictionary<string, object> ํƒ€์ž…์„ ๋งค๊ฐœ๋ณ€์ˆ˜๋กœ ๋ฐ›๋Š” ํ•จ์ˆ˜๊ฐ€ ๋“ค์–ด๊ฐ€์•ผ ํ•œ๋‹ค.

    void callFunc(Dictionary<string, object> userInfo) { }

  3. Dictionary<string, object>ํ˜• ๋ณ€์ˆ˜์—๋Š” ์œ ์ € ์ •๋ณด๊ฐ€ ์ž…๋ ฅ๋˜๋ฉฐ ์•„๋ž˜์™€ ๊ฐ™์ด ๊ฐ€์ ธ์˜ฌ์ˆ˜ ์žˆ๋‹ค.

    Example