Python client for UGC Guard, a tool to help you manage reports on user generated content.
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 0.1.0
- Package version: 1.1.6
- Generator version: 7.17.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Python 3.9+
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/SD-Software-Design-GmbH/ugc_guard_pythonThen import the package:
import ugc_guard_pythonInstall via Setuptools.
python setup.py install --user(or sudo python setup.py install to install the package for all users)
Then import the package:
import ugc_guard_pythonExecute pytest to run the tests.
Please follow the installation procedure and then run the following:
import ugc_guard_python
from ugc_guard_python.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = ugc_guard_python.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with ugc_guard_python.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = ugc_guard_python.ActionsApi(api_client)
action = ugc_guard_python.Action() # Action |
try:
# Create Action
api_response = api_instance.create_action(action)
print("The response of ActionsApi->create_action:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling ActionsApi->create_action: %s\n" % e)All URIs are relative to http://localhost
| Class | Method | HTTP request | Description |
|---|---|---|---|
| ActionsApi | create_action | POST /actions/ | Create Action |
| ActionsApi | delete_action | DELETE /actions/{action_id} | Delete Action |
| ActionsApi | get_action_by_id | GET /actions/{action_id} | Get Action By Id |
| ActionsApi | get_all_actions_of_type | GET /actions/ | Get All Actions Of Type |
| ActionsApi | get_user_type_action_by_id | GET /actions/user_type/{module_id} | Get User Type Action By Id |
| ActionsApi | perform_action | GET /actions/{action_id}/perform | Perform Action |
| ActionsApi | update_action | PUT /actions/ | Update Action |
| AiApi | get_all_ai_models | GET /ai/models | Get All Ai Models |
| AiApi | get_all_ai_usage_for_organization | GET /ai/usage/{organization_id}/all | Get All Ai Usage For Organization |
| AiApi | get_all_monthly_ai_usage_for_organization | GET /ai/usage/{organization_id} | Get All Monthly Ai Usage For Organization |
| AiApi | get_monthly_ai_usage_for_organization_model | GET /ai/usage/{organization_id}/{ai_model} | Get Monthly Ai Usage For Organization And Model |
| ContentApi | create_content | POST /content/ | Create Content |
| ContentApi | delete_content | DELETE /content/{content_id} | Delete Content |
| ContentApi | get_all_content_of_report | GET /content/{report_id} | Get All Content Of Report |
| ContentApi | get_content_by_id | GET /content/content/{content_id} | Get Content By Id |
| DefaultApi | status_get | GET / | Status |
| FilesApi | delete_file | DELETE /files/{file_id} | Delete File |
| FilesApi | download_file | GET /files/download/{file_id} | Download File |
| FilesApi | get_file_by_id | GET /files/{file_id} | Get File By Id |
| FilesApi | update_file | PUT /files/{file_id}/{secret} | Update File |
| FilesApi | upload_file | POST /files/upload | Upload File |
| MailTemplatesApi | create_mail_template | POST /mail_templates/ | Create Mail Template |
| MailTemplatesApi | delete_mail_template | DELETE /mail_templates/{template_id} | Delete Mail Template |
| MailTemplatesApi | get_all_mail_templates_for_module_with_defaults | GET /mail_templates/modules/{module_id}/with_defaults | Get All Mail Templates For Module And All Defaults |
| MailTemplatesApi | get_mail_template_by_id | GET /mail_templates/{template_id} | Get Mail Template By Id |
| MailTemplatesApi | get_mail_template_by_type | GET /mail_templates/type/{template_type} | Get Mail Template By Type |
| MailTemplatesApi | get_mail_templates_for_module | GET /mail_templates/modules/{module_id} | Get Mail Templates For Module |
| MailTemplatesApi | update_mail_template | PUT /mail_templates/{template_id} | Update Mail Template |
| ModulesApi | create_module | POST /modules/ | Create Module |
| ModulesApi | delete_module | DELETE /modules/{module_id} | Delete Module |
| ModulesApi | get_all_modules | GET /modules/all | Get All Modules |
| ModulesApi | get_channels_of_module | GET /modules/{module_id}/channels | Get Channels Of Module |
| ModulesApi | get_mail_settings_of_module | GET /modules/{module_id}/mail | Get Mail Settings Of Module |
| ModulesApi | get_module_by_id | GET /modules/{module_id} | Get Module By Id |
| ModulesApi | get_module_secret | GET /modules/secret/{module_id} | Get Module Secret |
| ModulesApi | get_my_modules | GET /modules/myModules/{organization_id} | Get My Modules |
| ModulesApi | update_mail_settings_of_module | POST /modules/{module_id}/mail | Update Mail Settings Of Module |
| ModulesApi | update_module | PUT /modules/{module_id} | Update Module |
| OrganizationsApi | accept_invitation_to_organization | POST /organizations/accept/{organization_id} | Accept Invitation To Organization |
| OrganizationsApi | change_membership_state | POST /organizations/membership/{organization_id} | Change Membership State |
| OrganizationsApi | create_organization | POST /organizations/ | Create Organization |
| OrganizationsApi | delete_organization | DELETE /organizations/{organization_id} | Delete Organization |
| OrganizationsApi | deny_invitation_to_organization | DELETE /organizations/invite/deny/{organization_id} | Deny Invitation To Organization |
| OrganizationsApi | get_membership_state | GET /organizations/membership/{organization_id} | Get Membership State |
| OrganizationsApi | get_my_organizations | GET /organizations/ | Get All Organizations |
| OrganizationsApi | get_my_organizations_grouped | GET /organizations/grouped | Get All Of Your Organizations Grouped By Membership State |
| OrganizationsApi | get_organization | GET /organizations/{organization_id} | Get Organization |
| OrganizationsApi | get_organization_members | GET /organizations/{organization_id}/members | Get Organization Members |
| OrganizationsApi | invite_user_to_organization | POST /organizations/invite/by_id/{user_id} | Invite User To Organization |
| OrganizationsApi | invite_user_to_organization_by_email | POST /organizations/invite/by_email | Invite User To Organization By Email |
| OrganizationsApi | leave_organization | DELETE /organizations/leave/{organization_id} | Leave Organization |
| OrganizationsApi | revoke_user_from_organization | DELETE /organizations/revoke/{organization_id}/{user_id} | Revoke User From Organization |
| OrganizationsApi | update_organization | PUT /organizations/{organization_id} | Update Organization |
| PersonsApi | create_person | POST /persons/ | Create Person |
| PersonsApi | delete_person | DELETE /persons/{person_id} | Delete Person |
| PersonsApi | get_person_by_id | GET /persons/{person_id} | Get Person By Id |
| PersonsApi | get_person_by_upi_id | GET /persons/by_upid/{upi_id} | Get Person By Upi Id |
| PersonsApi | update_person | PUT /persons/ | Update Person |
| ReportsApi | create_magic_report | POST /reports/magic | Create Magic Report |
| ReportsApi | create_report | POST /reports/ | Create Report |
| ReportsApi | escalate_report | GET /reports/{report_id}/escalate | Escalate Report |
| ReportsApi | get_all_reports | GET /reports/all | Get All Reports |
| ReportsApi | get_content_of_report | GET /reports/{report_id}/content | Get Content Of Report |
| ReportsApi | get_enriched_evaluations_of_report | GET /reports/{report_id}/enriched_evaluations | Get Enriched Evaluations Of Report |
| ReportsApi | get_evaluations_of_report | GET /reports/{report_id}/evaluations | Get Evaluations Of Report |
| ReportsApi | get_my_reports | GET /reports/my/{module_id} | Get My Reports |
| ReportsApi | get_report_by_id | GET /reports/{report_id} | Get Report By Id |
| ReportsApi | get_reporters_of_report | GET /reports/{report_id}/reporters | Get Reporters Of Report |
| ReportsApi | reject_report | GET /reports/{report_id}/reject | Reject Report |
| ReportsApi | update_report | PUT /reports/ | Update Report |
| ReportsApi | validate_report | GET /reports/{report_id}/validate | Validate Report |
| StatsApi | get_compared_module_stats | GET /stats/module/{module_id}/compared | Get Module Stats Compared To Prior Date |
| StatsApi | get_module_stats | GET /stats/module/{module_id} | Get Module Stats |
| StatsApi | get_organization_stats | GET /stats/org/{org_id} | Get Organization Stats |
| TypesApi | create_type | POST /types/ | Create Type |
| TypesApi | delete_type | DELETE /types/{type_id} | Delete Type |
| TypesApi | get_type_action_secret | GET /types/{type_id}/action_secret | Get Type Action Secret |
| TypesApi | get_type_by_id | GET /types/{type_id} | Get Type By Id |
| TypesApi | get_types_for_module | GET /types/ | Get Types For Module |
| TypesApi | update_type | PUT /types/ | Update Type |
| UsersApi | create_channel | POST /users/channels | Create Channel |
| UsersApi | delete_channel | DELETE /users/channels/{channel_id} | Delete Channel |
| UsersApi | get_channel_by_id | GET /users/channels/by_id/{channel_id} | Get Channel By Id |
| UsersApi | get_channel_by_id_or_name | GET /users/channels/by_id_or_name/{id_or_name} | Get Channel By Id Or Name |
| UsersApi | get_channels_of_current_user | GET /users/my/channels | Get Channels Of Current User |
| UsersApi | get_channels_of_user | GET /users/{user_id}/channels | Get Channels Of User |
| UsersApi | get_channels_of_user_users_channels_of_user_id_get | GET /users/channels/of/{user_id} | Get Channels Of User |
| UsersApi | get_current_user | GET /users/myself | Get Current User |
| UsersApi | get_user_by_id | GET /users/{user_id} | Get User By Id |
| UsersApi | get_users_of_channel | GET /users/channels/{channel_id}/users | Get Users Of Channel |
| UsersApi | join_channel | POST /users/channels/{channel_id}/join | Join Channel |
| UsersApi | join_channel_by_email | POST /users/channels/{channel_id}/join_by_email | Join Channel By Email |
| UsersApi | leave_channel | POST /users/channels/{channel_id}/leave | Leave Channel |
| UsersApi | update_channel | PUT /users/channels/{channel_id} | Update Channel |
- AIEnrichedAnswer
- AIEvaluation
- AIUsage
- Action
- AiModel
- AllContentResponse
- AnonymousPerson
- BodyCreateMagicReport
- Channel
- ChannelUser
- ComparedModuleState
- Content
- ContentCreate
- ContentPublic
- ContentType
- File
- HTTPValidationError
- MailTemplate
- MailTemplateBase
- MailTemplateType
- MailTemplatesWithDefaults
- MainContentSender
- Module
- ModuleDB
- ModuleStats
- OrgWithMembershipState
- Organization
- OrganizationGroupings
- PaginatedResultChannel
- PaginatedResultMailTemplate
- PaginatedResultModule
- PaginatedResultReportDB
- PaginatedResultReportWithReportersAndEvaluations
- PaginatedResultType
- PaginatedResultUserBase
- PaginatedResultUserWithMembershipState
- Person
- PersonDB
- Report
- ReportCategory
- ReportCreate
- ReportDB
- ReportState
- ReportWithReportersAndEvaluations
- Reporter
- ReportersWithPerson
- SendMailSettings
- Type
- UserBase
- UserOrganizationMembershipState
- UserWithMembershipState
- ValidationError
- ValidationErrorLocInner
openapi-generator-cli generate -i https://api.ugc-guard.com/openapi.json -g python --additional-properties=packageName=ugc_guard_python,projectName=ugc_guard_python,packageVersion="1.0.0", -o tmp/python/Maintained by SD Software-Design GmbH · MIT License