laernsprout-python.ÇнÀ½Ä API·Î ÀÛ¾÷ÇϱâÀ§ÇÑ °£´ÜÇÑ ÆÄÀ̽ã Ŭ¶óÀ̾ðÆ® | |
Áö±Ý ´Ù¿î·Îµå |
laernsprout-python. ¼øÀ§ ¹× ¿ä¾à
±¤°í
laernsprout-python. ű×
laernsprout-python. ¼³¸í
LaernsProut-PythonÀº LearnSprout REST API¸¦ ÅëÇØ Çлý Á¤º¸¿¡ ¾×¼¼½ºÇϱâÀ§ÇÑ °£´ÜÇÑ ÆÄÀ̽㠶óÀ̺귯¸®ÀÔ´Ï´Ù. LeartSproutÀÇ ´ëÈ½Ä Äֿܼ¡¼ REST APIÀÇ ¹®¼¸¦ º¼ ¼ö ÀÖ½À´Ï´Ù. Ŭ¶óÀ̾ðÆ®¸¦ »ç¿ëÇÏ·Á¸é ClientThe`mearnsProutClient` ¸¸ »ç¿ëÇÒ ¼öÀÖ´Â API Å° ¸¸ ÇÊ¿äÇÕ´Ï´Ù. ÀÚ½ÅÀÇ »ç¿ëÀ» À§ÇØ Çϳª¸¦ ¿äûÇϸé simppleÀÔ´Ï´Ù. »ùÇà Data.pythonFrom ÀͽºÇÁ·¹½º¿¡ ´ëÇÑ °ø°³ »ùÇà API°¡ ÀÖ½À´Ï´Ù .PythonFrom @plient import = ÀͽºÇ÷νº ½Î¿ò Ŭ¶óÀ̾ðÆ® ( "FCB8534C-9EE-4E02-8B22-9328DB1DAC18") OrganizationSorganizations´Â ·çÆ® ·¹º§ ¿ä¼ÒÀÔ´Ï´Ù. Á¶Á÷Àº ·çÆ® Level.pythonorgs = Client.Organizations.list () reprodge.pythonorgs = Client.Orgs.List ()¸¦ À§ÇØ ¹Ýº¹ ÇÒ ¼öÀÖ´Â iterableresult¸¦ ¹ÝȯÇÕ´Ï´Ù. Orgs Àμâ OrgyOu¿¡¼ org¿¡ ´ëÇÑ org¿¡ ´ëÇÑ ¹Ýº¹ µÉ ¼ö ÀÖ½À´Ï´Ù. °¢ ¸®¼Ò½º¸¦ ÅëÇØ orgs¿¡¼ OrgÀÇ org for org orgÀÇ Client.Organizations.list () Orgresources´Â REST API¿¡ ³ª¿µÈ °Í°ú µ¿ÀÏÇÑ Æ¯¼ºÀ» °¡Áö°í ÀÖ½À´Ï´Ù. ÆÄÀ̽ã ID¿Í Ãæµ¹ÇÏÁö ¸¶½Ê½Ã¿À .Schoolsschools´Â Á¶Á÷ÀÇ ¼ºê ·¹½º ¼Ò½ºÀÔ´Ï´Ù. ¼ºê ·¹½º ¼Ò½º´Â ÀÚ¿ø ÀνºÅϽº¿¡¼ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù .pythonorg = orgs schools = org.schools.list () ÀϺΠ´Ù¸¥ ¸®¼Ò½º¿Í ¸¶Âù°¡Áö·Î Çб³°¡ ÆäÀÌÁö°¡ Á¦À۵Ǿú½À´Ï´Ù. ±×·¯³ª iterableReSult¸¦ ÅëÇØ ¹Ýº¹ ÇÒ ¶§ ÆäÀÌÁöÀÇ ¸ðµç ¿ä¼Ò¸¦ ¸ðµÎ ¹èÃâÇϸé Ŭ¶óÀ̾ðÆ®°¡ Ãß°¡ °á°ú¸¦ °¡Á®¿É´Ï´Ù. Paging¿¡ ´ëÇØ °ÆÁ¤ÇÒ ÇÊ¿ä°¡ ¾ø½À´Ï´Ù. Paging.PartialSlearnsProutÀº ƯÁ¤ ŸÀÓ ½ºÅÆÇÁ ÈÄ¿¡ ¾÷µ¥ÀÌÆ® µÈ ÀÚ¿øÀ» Áö¿øÇÕ´Ï´Ù. ResourceInstances¿¡´Â * time_updated * ¼Ó¼ºÀÌ ÀÖ½À´Ï´Ù. list ()¿¡ ´ëÇÑ Àμö·Î¼ resource = org.schoolstime_since = overschoolstime_since = schools_resource.list () °ªº¸´Ù Å« time_updated¸¸Å ResourceInstance ¸¸ ¸®ÅÏÇÕ´Ï´Ù. ´ÙÀ½ (). time_updatedschools_resource.list (ÀÌÈÄ = time_since) Á¦Ç°ÀÇ È¨ÆäÀÌÁö
laernsprout-python. °ü·Ã ¼ÒÇÁÆ®¿þ¾î