dwolla-python. ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- MIT/X Consortium Lic...
- °Ô½ÃÀÚ À̸§:
- Jordan Bouvier
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://open-source.analytemedia.com/
dwolla-python. ű×
dwolla-python. ¼³¸í
dwolla-pythonÀº dwollaÀÇ api'sagebasic »ç¿ëÀ»À§ÇÑ °£´ÜÇÑ ÆÄÀ̽㠷¡ÆÛÀÔ´Ï´Ù. dwolla °¡Á® ¿À±â dwollaclientappclient = dwollaclientappclient = dwollaclientapp (app_id, app_secret) # accountClient.get_account_info ( "thomas.hansen@gmail.com") client.get_account_info ( "812-451-5647") # Àα٠dwolla spotsclient.get_nearby_spots (lat = '41 .59 ', lon ='-93.62 ', lon ='-93.62 ')ÀÇ ¸ñ·ÏÀ» ¹ÝȯÇÕ´Ï´Ù.ÀÌ ¿¹Á¦´Â ´õ ¸¹Àº »ç¿ë ¿¹Á¦¿¡ ´ëÇÑ ¿¹Á¦¸¦ È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù. Çöó½ºÅ© ¾ÛÀ» ½ÃµµÇÏ·Á¸é Flask¸¦ ¼³Ä¡ÇÏ°í Settings.cfg¸¦ ÆíÁýÇϽʽÿÀ (¶Ç´Â ·ÎÄà ÆÄÀÏ "settings.cfg.local"À¸·Î º¹»ç) ¹× ½ÇÇà : Python ¿¹Á¦ / Çöó½ºÅ© ¾Û / main.pygetting oauth tokensthe flask-¾ÛÀ» º¸¿©ÁÝ´Ï´Ù. OAuth ÅäÅ«À» °¡Á® ¿Í¼ »ç¿ëÇϽʽÿÀ. ±âº» ´Ü°è´Â ´ÙÀ½°ú °°½À´Ï´Ù. Dwolla °¡Á® ¿À±â dwollaclientappclient = dwollaclientappclient = dwollaclientApp (app_id, app_secret) # dwolla oauth urlauth_url = app.init_oauth_url (scope = "accountinfrofull") »ç¿ëÀÚ°¡ ´Ù½Ã ¸®µð·º¼ÇµÇ¸é redirect (auth_url). page : code = request.args.get ( "code") access_token = dwolla_app.get_oauth_token (ÄÚµå) À¯È¿ÇÑ ¾×¼¼½º ÅäÅ«À» »ç¿ëÇÏ¸é ½ºÄÚÇÁ°¡ Çã¿ë ÇÒ ¼ö ÀÖ½À´Ï´Ù : #create »ç¿ëÀÚ °´Ã¼°¡ ¾×¼¼½º tokenuser = dwollauser (access_token) #get °èÁ¤ Á¤º¸, ±ÕÇü, etcinfo = user.get_account_info () ¹ë·±½º = user.get_balance () # Åä¸Ó½º¿¡ µ·À» º¸³»½Ê½Ã¿À : p ÁöÁ¤ ±Ý¾×, receiverid ¹× pinuser.send_funds (10.0, "812-647-0748", '1234') Á¦Ç° ȨÆäÀÌÁö
dwolla-python. °ü·Ã ¼ÒÇÁÆ®¿þ¾î