Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A test case leveraging json:// to communicate with Synology Chat #972

Closed
wants to merge 2 commits into from

Conversation

caronc
Copy link
Owner

@caronc caronc commented Oct 8, 2023

Description:

Related issue (if applicable): #908

Initially before going all out and creating #944, this is just a single test case showing how you can structure a json:// to communicate with Synology Chat (as defined by their api).

Checklist

  • The code change is tested and works locally.
  • There is no commented out code in this PR.
  • No lint errors (use flake8)
  • 100% test coverage

Testing

Anyone can help test this source code as follows:

# Create a virtual environment to work in as follows:
python3 -m venv apprise

# Change into our new directory
cd apprise

# Activate our virtual environment
source bin/activate

# Install the branch
pip install git+https://github.com/caronc/apprise.git@908-synology-format-testcase

# Test out the changes with the following command:
apprise -t "Test Title" -b "Test Message" \
  "jsons://localhost:8081/webapi/entry.cgi?' \
        '-api=SYNO.Chat.External&-method=incoming&-version=2&-token={your-token-here}' \
        '&:message=text&:version=&:type=&:title=&:attachments' \
        '&:file_url=https://i.redd.it/my2t4d2fx0u31.jpg"

@caronc caronc closed this Oct 8, 2023
@caronc
Copy link
Owner Author

caronc commented Oct 8, 2023

Closed as changes already made it to master here

@caronc caronc deleted the 908-synology-format-testcase branch October 8, 2023 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant