From 210bc21432530eb53f95fe03838b50154d8df087 Mon Sep 17 00:00:00 2001 From: Enrique Barcelli Date: Thu, 29 Jun 2023 21:09:12 +0800 Subject: [PATCH] Remove unused scripts get_token.py and retrieve_debtor.py --- get_token.py | 17 ----------------- retrieve_debtor.py | 28 ---------------------------- 2 files changed, 45 deletions(-) delete mode 100644 get_token.py delete mode 100644 retrieve_debtor.py diff --git a/get_token.py b/get_token.py deleted file mode 100644 index 0b4b6ad..0000000 --- a/get_token.py +++ /dev/null @@ -1,17 +0,0 @@ -import requests -from requests_oauthlib import OAuth2Session -import json -import sys -import webbrowser -from config import * -from cachehandler import CacheHandler -from authhandler import AuthHandler -from api import OpenbravoToBanqupAPI - -api = OpenbravoToBanqupAPI(bq_client_id,bq_client_secret) -authUrl = api.authHandler.getAuthURL(bq_redirect_uri) -print(authUrl) -webbrowser.open(authUrl) -response = input('paste response: ') -token = api.authHandler.retrieveToken(response, redirectUri=bq_redirect_uri) -print(token) diff --git a/retrieve_debtor.py b/retrieve_debtor.py deleted file mode 100644 index 6c3b917..0000000 --- a/retrieve_debtor.py +++ /dev/null @@ -1,28 +0,0 @@ -import requests -from requests_oauthlib import OAuth2Session -import json -import sys -import webbrowser -from config import * -from cachehandler import CacheHandler -from authhandler import AuthHandler -from api import OpenbravoToBanqupAPI - -api = OpenbravoToBanqupAPI(bq_client_id,bq_client_secret) -authUrl = api.authHandler.getAuthURL(bq_redirect_uri) -print(authUrl) -webbrowser.open(authUrl) -response = input('paste response: ') -token = api.authHandler.retrieveToken(response, redirectUri=bq_redirect_uri) -print(token) -businessPartner='BCD9D8F839AE46BF8481F20A71EF467C' -debtor_list = api.get('debtors?client_id='+banqup_client_id+'&client_debtor_number='+businessPartner,None,None) -print(debtor_list) -print(debtor_list[0]) -print(debtor_list[1]) -print(debtor_list[2]) -print(debtor_list[2]['results']) -print(debtor_list[2]['results'][0]) -print(debtor_list[2]['results'][0]['id']) -print(debtor_list[2]['results'][0]['preferred_channel']) -