Code Monkey home page Code Monkey logo

monday-python's Introduction

monday-python

monday-python is an API wrapper for monday.com, written in Python.
This library includes notifications using webhooks.

Installing

pip install monday-python

Usage

from monday.client import Client
client = Client(api_token)

Find your API token in your monday.com profile admin settings API section.

- Get current user

user = client.get_current_user()

- List users

users = client.list_users()

- List workspaces

workspaces = client.list_workspaces()

- List boards

boards = client.list_boards(workspace_id)

- List columns

cols = client.list_columns(board_id)

Items

- List items

items = client.list_items(board_id)

- Get item

item = client.get_item(item_id)

- Get items by column values

# The item's state: all, active, archived, or deleted. The default state is active.
items = client.get_items_by_column_values(board_id, column_id, column_value, limit=50, state="active")

- Create item

# column_values is a dictionary with the following structure:
#    {"column_id": "column_value", "column_id": "column_value"}
item = client.create_item(board_id, item_name: str, column_values: dict = None)

- Update item

# column_values is a dictionary with the following structure:
#    {"column_id": "column_value", "column_id": "column_value"}
item = client.update_item(board_id, item_id, column_values)

Webhooks

- List webhooks

webhooks = client.list_webhooks(board_id)

- Create webhook

webhook = client.create_webhook(board_id, url, event)

To activate a webhook, the URL must return a response to a post request that monday.com will send to verify.
Read more about it here: https://developer.monday.com/api-reference/docs/webhooks

- Delete a webhook

deleted = client.delete_webhook(webhook_id)

monday-python's People

Contributors

damanrique avatar dcastano-gearplug avatar juanrios15 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

muhsajjad

monday-python's Issues

List Items - "Field 'items' doesn't exist on type 'Board'"

There is an error when using list_items

items = client.list_items(billing_board_id)

special variables function variables 'errors': [{'message': "Field 'items' doesn't exist on type 'Board'", 'locations': [...], 'path': [...], 'extensions': {...}}] special variables function variables 0: {'message': "Field 'items' doesn't exist on type 'Board'", 'locations': [{...}], 'path': ['query', 'boards', 'items'], 'extensions': {'code': 'undefinedField', 'typeName': 'Board', 'fieldName': 'items'}} special variables function variables 'message': "Field 'items' doesn't exist on type 'Board'" 'locations': [{'line': 1, 'column': 35}] 'path': ['query', 'boards', 'items'] 'extensions': {'code': 'undefinedField', 'typeName': 'Board', 'fieldName': 'items'} special variables function variables 'code': 'undefinedField' 'typeName': 'Board' 'fieldName': 'items' len(): 3 len(): 4 len(): 1 'account_id': 8319758 len(): 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.