memos-script/docs/ActivityServiceApi.md

55 lines
1.5 KiB
Markdown

# memos.ActivityServiceApi
All URIs are relative to */*
Method | HTTP request | Description
------------- | ------------- | -------------
[**activity_service_get_activity**](ActivityServiceApi.md#activity_service_get_activity) | **GET** /v2/activities/{id} | GetActivity returns the activity with the given id.
# **activity_service_get_activity**
> V2GetActivityResponse activity_service_get_activity(id)
GetActivity returns the activity with the given id.
### Example
```python
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()
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)
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **int**| |
### Return type
[**V2GetActivityResponse**](V2GetActivityResponse.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)