| ¹èƲ·¿ ºí¸®ÀÚµåÀÇ Ä¿¹Â´ÏƼ Ç÷§Æû API¸¦À§ÇÑ ÆÄÀ̽㠶óÀ̺귯¸® |
Áö±Ý ´Ù¿î·Îµå |
¹èƲ·¿ ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- MIT/X Consortium Lic...
- °Ô½ÃÀÚ À̸§:
- Stanislav Vishnevskiy
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- https://github.com/vishnevskiy/
¹èƲ·¿ ű×
¹èƲ·¿ ¼³¸í
ºí¸®ÀÚµåÀÇ Ä¿¹Â´ÏƼ Ç÷§Æû API¸¦À§ÇÑ ÆÄÀ̽㠶óÀ̺귯¸® BattLenetÀº ºí¸®ÀÚµåÀÇ Ä¿¹Â´ÏƼ Ç÷§Æû API.Make¸¦À§ÇÑ ÆÄÀ̽㠶óÀ̺귯¸®ÀÔ´Ï´Ù. °³Ã¼°¡ ¾Ï½Ã ÀûÀ¸·Î ¿¬°áÇÒ ¼ö ÀÖµµ·Ï ¿¬°á È®±Û ¿¬°á ¼³Á¤À» ¼³Á¤ÇÒ ¼ö ÀÖ½À´Ï´Ù. BattLeNet Import ConnectionConnection.setup (app = 'App Key') ¿¬°áÀ» »ý¼º ÇÒ ¼öµµ ÀÖ½À´Ï´Ù. Import ConnectionConnection = ¿¬°á ( '¾Û Å°') ƯÁ¤ ConnectionRealm = connection.get_realm (battlenet.united_states ')¸¦ »ç¿ëÇÏ¿© Àü¿ª ¿¬°áÀÌ setuprealm = realm (battlenet.united_states,'nazjatar ') #À» »ç¿ëÇÏ´Â °æ¿ì nazjatar ') print realm.name # => nazjatarprint realm.is_online () # => puctrint realm.type # => pvpfetching in connection.get_all_realms ()ÀÇ ¸ðµç realmsfanging realm : get_all_realms () : getter_all_realms () : ±Û·Î¹ú ¿¬°áÀÌÀÖ´Â °æ¿ì BattleNet °¡Á® ¿À±â ¹®ÀÚ # realmfetching ¹®ÀÚ # setuprealm = ¹®ÀÚ (battlenet.united_states, 'nazjatar', 'vishnevskiy', fields = ) # ƯÁ¤ ConnectionRealm = Connection.get_Character (battlenet.united_states, 'nazjatar', 'vishnevskiy', fields = ) print character.name # => vishnevskiyprint charact.guild.name # => encellenceMore example exampleRead´Â Å×½ºÆ® µð·ºÅ丮 ¾ÈÀÇ ÀåÄ¡ Å×½ºÆ®¸¦ ÀнÀ´Ï´Ù.
¹èƲ·¿ °ü·Ã ¼ÒÇÁÆ®¿þ¾î