memos-python
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
This Python package is automatically generated by the Swagger Codegen project:
- API version: version not set
- Package version: 1.0.0
- Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen
Requirements.
Python 2.7 and 3.4+
Installation & Usage
pip install
If the python package is hosted on Github, you can install directly from Github
pip install git+https://github.com/looching/memos-python.git
(you may need to run pip with root permission: sudo pip install git+https://github.com/looching/memos-python.git)
Then import the package:
import memos
Setuptools
Install 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 memos
Getting Started
Please follow the installation procedure and then run the following:
from __future__ import print_function
import time
import memos
from memos.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = memos.ActivityServiceApi(memos.ApiClient(configuration))
id = 56 # int |
try:
# GetActivity returns the activity with the given id.
api_response = api_instance.activity_service_get_activity(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling ActivityServiceApi->activity_service_get_activity: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to /
| Class | Method | HTTP request | Description |
|---|---|---|---|
| ActivityServiceApi | activity_service_get_activity | GET /v2/activities/{id} | GetActivity returns the activity with the given id. |
| AuthServiceApi | auth_service_get_auth_status | POST /api/v2/auth/status | GetAuthStatus returns the current auth status of the user. |
| AuthServiceApi | auth_service_sign_in | POST /api/v2/auth/signin | SignIn signs in the user with the given username and password. |
| AuthServiceApi | auth_service_sign_in_with_sso | POST /api/v2/auth/signin/sso | SignInWithSSO signs in the user with the given SSO code. |
| AuthServiceApi | auth_service_sign_out | POST /api/v2/auth/signout | SignOut signs out the user. |
| AuthServiceApi | auth_service_sign_up | POST /api/v2/auth/signup | SignUp signs up the user with the given username and password. |
| InboxServiceApi | inbox_service_delete_inbox | DELETE /api/v2/{name_1} | DeleteInbox deletes an inbox. |
| InboxServiceApi | inbox_service_list_inboxes | GET /api/v2/inboxes | ListInboxes lists inboxes for a user. |
| InboxServiceApi | inbox_service_update_inbox | PATCH /api/v2/{inbox.name} | UpdateInbox updates an inbox. |
| MemoServiceApi | memo_service_create_memo | POST /api/v2/memos | CreateMemo creates a memo. |
| MemoServiceApi | memo_service_create_memo_comment | POST /api/v2/memos/{id}/comments | CreateMemoComment creates a comment for a memo. |
| MemoServiceApi | memo_service_delete_memo | DELETE /api/v2/memos/{id} | DeleteMemo deletes a memo by id. |
| MemoServiceApi | memo_service_delete_memo_reaction | DELETE /api/v2/memos/{id}/reactions/{reactionId} | DeleteMemoReaction deletes a reaction for a memo. |
| MemoServiceApi | memo_service_export_memos | POST /api/v2/memos:export | ExportMemos exports memos. |
| MemoServiceApi | memo_service_get_memo | GET /api/v2/memos/{id} | GetMemo gets a memo by id. |
| MemoServiceApi | memo_service_get_memo_by_name | GET /api/v2/memos/name/{name} | GetMemoByName gets a memo by name. |
| MemoServiceApi | memo_service_get_user_memos_stats | GET /api/v2/memos/stats | GetUserMemosStats gets stats of memos for a user. |
| MemoServiceApi | memo_service_list_memo_comments | GET /api/v2/memos/{id}/comments | ListMemoComments lists comments for a memo. |
| MemoServiceApi | memo_service_list_memo_reactions | GET /api/v2/memos/{id}/reactions | ListMemoReactions lists reactions for a memo. |
| MemoServiceApi | memo_service_list_memo_relations | GET /api/v2/memos/{id}/relations | ListMemoRelations lists relations for a memo. |
| MemoServiceApi | memo_service_list_memo_resources | GET /api/v2/memos/{id}/resources | ListMemoResources lists resources for a memo. |
| MemoServiceApi | memo_service_list_memos | GET /api/v2/memos | ListMemos lists memos with pagination and filter. |
| MemoServiceApi | memo_service_set_memo_relations | POST /api/v2/memos/{id}/relations | SetMemoRelations sets relations for a memo. |
| MemoServiceApi | memo_service_set_memo_resources | POST /api/v2/memos/{id}/resources | SetMemoResources sets resources for a memo. |
| MemoServiceApi | memo_service_update_memo | PATCH /api/v2/memos/{memo.id} | UpdateMemo updates a memo. |
| MemoServiceApi | memo_service_upsert_memo_reaction | POST /api/v2/memos/{id}/reactions | UpsertMemoReaction upserts a reaction for a memo. |
| ResourceServiceApi | resource_service_create_resource | POST /api/v2/resources | CreateResource creates a new resource. |
| ResourceServiceApi | resource_service_delete_resource | DELETE /api/v2/resources/{id} | DeleteResource deletes a resource by id. |
| ResourceServiceApi | resource_service_get_resource | GET /api/v2/resources/{id} | GetResource returns a resource by id. |
| ResourceServiceApi | resource_service_get_resource_by_name | GET /api/v2/resources/name/{name} | GetResourceByName returns a resource by name. |
| ResourceServiceApi | resource_service_list_resources | GET /api/v2/resources | ListResources lists all resources. |
| ResourceServiceApi | resource_service_update_resource | PATCH /api/v2/resources/{resource.id} | UpdateResource updates a resource. |
| TagServiceApi | tag_service_batch_upsert_tag | POST /api/v2/tags:batchUpsert | BatchUpsertTag upserts multiple tags. |
| TagServiceApi | tag_service_delete_tag | DELETE /api/v2/tags | DeleteTag deletes a tag. |
| TagServiceApi | tag_service_get_tag_suggestions | GET /api/v2/tags/suggestion | GetTagSuggestions gets tag suggestions from the user's memos. |
| TagServiceApi | tag_service_list_tags | GET /api/v2/tags | ListTags lists tags. |
| TagServiceApi | tag_service_rename_tag | PATCH /api/v2/tags:rename | RenameTag renames a tag. All related memos will be updated. |
| TagServiceApi | tag_service_upsert_tag | POST /api/v2/tags | UpsertTag upserts a tag. |
| UserServiceApi | user_service_create_user | POST /api/v2/users | CreateUser creates a new user. |
| UserServiceApi | user_service_create_user_access_token | POST /api/v2/{name}/access_tokens | CreateUserAccessToken creates a new access token for a user. |
| UserServiceApi | user_service_delete_user | DELETE /api/v2/{name} | DeleteUser deletes a user. |
| UserServiceApi | user_service_delete_user_access_token | DELETE /api/v2/{name}/access_tokens/{accessToken} | DeleteUserAccessToken deletes an access token for a user. |
| UserServiceApi | user_service_get_user | GET /api/v2/{name} | GetUser gets a user by name. |
| UserServiceApi | user_service_get_user_setting | GET /api/v2/{name}/setting | GetUserSetting gets the setting of a user. |
| UserServiceApi | user_service_list_user_access_tokens | GET /api/v2/{name}/access_tokens | ListUserAccessTokens returns a list of access tokens for a user. |
| UserServiceApi | user_service_list_users | GET /api/v2/users | ListUsers returns a list of users. |
| UserServiceApi | user_service_update_user | PATCH /api/v2/{user.name} | UpdateUser updates a user. |
| UserServiceApi | user_service_update_user_setting | PATCH /api/v2/{setting.name} | UpdateUserSetting updates the setting of a user. |
| WebhookServiceApi | webhook_service_create_webhook | POST /api/v2/webhooks | CreateWebhook creates a new webhook. |
| WebhookServiceApi | webhook_service_delete_webhook | DELETE /api/v2/webhooks/{id} | DeleteWebhook deletes a webhook by id. |
| WebhookServiceApi | webhook_service_get_webhook | GET /api/v2/webhooks/{id} | GetWebhook returns a webhook by id. |
| WebhookServiceApi | webhook_service_list_webhooks | GET /api/v2/webhooks | ListWebhooks returns a list of webhooks. |
| WebhookServiceApi | webhook_service_update_webhook | PATCH /api/v2/webhooks/{webhook.id} | UpdateWebhook updates a webhook. |
| WorkspaceServiceApi | workspace_service_get_workspace_profile | GET /api/v2/workspace/profile | GetWorkspaceProfile returns the workspace profile. |
| WorkspaceSettingServiceApi | workspace_setting_service_get_workspace_setting | GET /api/v2/workspace/{name} | GetWorkspaceSetting returns the setting by name. |
| WorkspaceSettingServiceApi | workspace_setting_service_set_workspace_setting | PATCH /api/v2/workspace/{setting.name} | SetWorkspaceSetting updates the setting. |
Documentation For Models
- Apiv2ActivityMemoCommentPayload
- Apiv2ActivityPayload
- Apiv2ActivityVersionUpdatePayload
- Apiv2Reaction
- Apiv2ReactionType
- Apiv2RowStatus
- Apiv2UserSetting
- Apiv2Webhook
- Apiv2WorkspaceGeneralSetting
- Apiv2WorkspaceSetting
- GooglerpcStatus
- MemoServiceSetMemoRelationsBody
- MemoServiceSetMemoResourcesBody
- MemosMemoIdBody
- ProtobufAny
- ResourcesResourceIdBody
- SettingIsTheSettingToUpdate_
- UserRole
- UserServiceCreateUserAccessTokenBody
- V2Activity
- V2BatchUpsertTagResponse
- V2CreateMemoCommentResponse
- V2CreateMemoRequest
- V2CreateMemoResponse
- V2CreateResourceResponse
- V2CreateUserAccessTokenResponse
- V2CreateUserResponse
- V2CreateWebhookRequest
- V2CreateWebhookResponse
- V2DeleteInboxResponse
- V2DeleteMemoReactionResponse
- V2DeleteMemoResponse
- V2DeleteResourceResponse
- V2DeleteTagResponse
- V2DeleteUserAccessTokenResponse
- V2DeleteUserResponse
- V2DeleteWebhookResponse
- V2ExportMemosResponse
- V2GetActivityResponse
- V2GetAuthStatusResponse
- V2GetMemoByNameResponse
- V2GetMemoResponse
- V2GetResourceByNameResponse
- V2GetResourceResponse
- V2GetTagSuggestionsResponse
- V2GetUserMemosStatsResponse
- V2GetUserResponse
- V2GetUserSettingResponse
- V2GetWebhookResponse
- V2GetWorkspaceProfileResponse
- V2GetWorkspaceSettingResponse
- V2Inbox
- V2InboxNameBody
- V2InboxStatus
- V2InboxType
- V2ListInboxesResponse
- V2ListMemoCommentsResponse
- V2ListMemoReactionsResponse
- V2ListMemoRelationsResponse
- V2ListMemoResourcesResponse
- V2ListMemosResponse
- V2ListResourcesResponse
- V2ListTagsResponse
- V2ListUserAccessTokensResponse
- V2ListUsersResponse
- V2ListWebhooksResponse
- V2Memo
- V2MemoRelation
- V2MemoRelationType
- V2RenameTagResponse
- V2Resource
- V2SetMemoRelationsResponse
- V2SetMemoResourcesResponse
- V2SetWorkspaceSettingResponse
- V2SettingNameBody
- V2SignInResponse
- V2SignInWithSSOResponse
- V2SignOutResponse
- V2SignUpResponse
- V2Tag
- V2UpdateInboxResponse
- V2UpdateMemoResponse
- V2UpdateResourceResponse
- V2UpdateUserResponse
- V2UpdateUserSettingResponse
- V2UpdateWebhookResponse
- V2UpsertMemoReactionResponse
- V2UpsertTagRequest
- V2UpsertTagResponse
- V2User
- V2UserAccessToken
- V2UserNameBody
- V2Visibility
- V2WorkspaceProfile
- WebhooksWebhookIdBody
Documentation For Authorization
All endpoints do not require authorization.
Author
Description
Languages
Python
99.8%
Shell
0.2%