55 lines
1.6 KiB
Markdown
55 lines
1.6 KiB
Markdown
# memos.ActivityServiceApi
|
|
|
|
All URIs are relative to */*
|
|
|
|
Method | HTTP request | Description
|
|
------------- | ------------- | -------------
|
|
[**activity_service_get_activity**](ActivityServiceApi.md#activity_service_get_activity) | **GET** /api/v1/activities/{id} | GetActivity returns the activity with the given id.
|
|
|
|
# **activity_service_get_activity**
|
|
> V1Activity 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 | The system-generated unique identifier for the activity.
|
|
|
|
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**| The system-generated unique identifier for the activity. |
|
|
|
|
### Return type
|
|
|
|
[**V1Activity**](V1Activity.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)
|
|
|