-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
62 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# monday-code | ||
|
||
|
||
## Requirements. | ||
|
||
Python 3.7+ | ||
|
||
## Installation & Usage | ||
### pip install | ||
|
||
If the python package is hosted on a repository, you can install directly using: | ||
|
||
```sh | ||
pip install monday-code | ||
``` | ||
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`) | ||
|
||
Then import the package: | ||
```python | ||
import monday_code | ||
``` | ||
|
||
## Getting Started | ||
|
||
Please follow the [installation procedure](#installation--usage) and then run the following: | ||
|
||
```python | ||
|
||
import monday_code | ||
from monday_code.rest import ApiException | ||
from pprint import pprint | ||
|
||
# Defining the host is optional and defaults to http://localhost:59999 | ||
# See configuration.py for a list of all supported configuration parameters. | ||
configuration = monday_code.Configuration( | ||
host = "http://localhost:59999" | ||
) | ||
|
||
|
||
|
||
# Enter a context with an instance of the API client | ||
with monday_code.ApiClient(configuration) as api_client: | ||
# Create an instance of the API class | ||
api_instance = monday_code.QueueApi(api_client) | ||
publish_message_params = monday_code.PublishMessageParams() # PublishMessageParams | | ||
|
||
try: | ||
api_response = api_instance.publish_message(publish_message_params) | ||
print("The response of QueueApi->publish_message:\n") | ||
pprint(api_response) | ||
except ApiException as e: | ||
print("Exception when calling QueueApi->publish_message: %s\n" % e) | ||
|
||
``` | ||
|
||
## Documentation | ||
Further documentation could be found at [GitHub](https://github.com/mondaycom/monday-code-python-sdk) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters