commit 3993ddb7ee7b9366dffbf83762c0ec742fe5701f Author: alex Date: Thu Aug 17 21:12:02 2023 +0200 initial commit diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/.name b/.idea/.name new file mode 100644 index 0000000..80236b5 --- /dev/null +++ b/.idea/.name @@ -0,0 +1 @@ +monday_test \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..3531d06 --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,14 @@ + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..61a3499 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..3de79ce --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/monday_test.iml b/.idea/monday_test.iml new file mode 100644 index 0000000..e0fc69a --- /dev/null +++ b/.idea/monday_test.iml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/app.py b/app.py new file mode 100644 index 0000000..1ca2d3d --- /dev/null +++ b/app.py @@ -0,0 +1,12 @@ +from monday.client import Client + + +class App: + def __init__(self): + self._client = Client('eyJhbGciOiJIUzI1NiJ9.eyJ0aWQiOjI3NTgyNjU4NywiYWFpIjoxMSwidWlkIjo0NzQxNzc3NywiaWFkIjoiMjAyMy0wOC0xN1QxODoyMzoyMS41MjZaIiwicGVyIjoibWU6d3JpdGUiLCJhY3RpZCI6MTgzMzQ3NjAsInJnbiI6ImV1YzEifQ.3gb_81-hrIf6O7U-TKrsE-bgglkaQn73rbws5yfaT3A') + + def start(self): + user = self._client.get_current_user() + print(user) + # self._client.items.create_item(board_id='1251126894', group_id='today', item_name='Do a thing') + item = self._client.create_item(1251126894, 'test', {"Project": "column_value"}) diff --git a/main.py b/main.py new file mode 100644 index 0000000..ef69df1 --- /dev/null +++ b/main.py @@ -0,0 +1,6 @@ +from app import App + + +if __name__ == '__main__': + app = App() + app.start() diff --git a/monday_token.txt b/monday_token.txt new file mode 100644 index 0000000..bedb799 --- /dev/null +++ b/monday_token.txt @@ -0,0 +1 @@ +eyJhbGciOiJIUzI1NiJ9.eyJ0aWQiOjI3NTgyNjU4NywiYWFpIjoxMSwidWlkIjo0NzQxNzc3NywiaWFkIjoiMjAyMy0wOC0xN1QxODoyMzoyMS41MjZaIiwicGVyIjoibWU6d3JpdGUiLCJhY3RpZCI6MTgzMzQ3NjAsInJnbiI6ImV1YzEifQ.3gb_81-hrIf6O7U-TKrsE-bgglkaQn73rbws5yfaT3A \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..d410a32 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,8 @@ +certifi==2023.7.22 +charset-normalizer==3.2.0 +et-xmlfile==1.1.0 +idna==3.4 +monday-python==0.1.0 +openpyxl==3.1.2 +requests==2.31.0 +urllib3==2.0.4