|
| 1 | +# lighter.AnnouncementApi |
| 2 | + |
| 3 | +All URIs are relative to *https://mainnet.zklighter.elliot.ai* |
| 4 | + |
| 5 | +Method | HTTP request | Description |
| 6 | +------------- | ------------- | ------------- |
| 7 | +[**announcement**](AnnouncementApi.md#announcement) | **GET** /api/v1/announcement | announcement |
| 8 | + |
| 9 | + |
| 10 | +# **announcement** |
| 11 | +> Announcements announcement() |
| 12 | +
|
| 13 | +announcement |
| 14 | + |
| 15 | +Get announcement |
| 16 | + |
| 17 | +### Example |
| 18 | + |
| 19 | + |
| 20 | +```python |
| 21 | +import lighter |
| 22 | +from lighter.models.announcements import Announcements |
| 23 | +from lighter.rest import ApiException |
| 24 | +from pprint import pprint |
| 25 | + |
| 26 | +# Defining the host is optional and defaults to https://mainnet.zklighter.elliot.ai |
| 27 | +# See configuration.py for a list of all supported configuration parameters. |
| 28 | +configuration = lighter.Configuration( |
| 29 | + host = "https://mainnet.zklighter.elliot.ai" |
| 30 | +) |
| 31 | + |
| 32 | + |
| 33 | +# Enter a context with an instance of the API client |
| 34 | +async with lighter.ApiClient(configuration) as api_client: |
| 35 | + # Create an instance of the API class |
| 36 | + api_instance = lighter.AnnouncementApi(api_client) |
| 37 | + |
| 38 | + try: |
| 39 | + # announcement |
| 40 | + api_response = await api_instance.announcement() |
| 41 | + print("The response of AnnouncementApi->announcement:\n") |
| 42 | + pprint(api_response) |
| 43 | + except Exception as e: |
| 44 | + print("Exception when calling AnnouncementApi->announcement: %s\n" % e) |
| 45 | +``` |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | +### Parameters |
| 50 | + |
| 51 | +This endpoint does not need any parameter. |
| 52 | + |
| 53 | +### Return type |
| 54 | + |
| 55 | +[**Announcements**](Announcements.md) |
| 56 | + |
| 57 | +### Authorization |
| 58 | + |
| 59 | +No authorization required |
| 60 | + |
| 61 | +### HTTP request headers |
| 62 | + |
| 63 | + - **Content-Type**: Not defined |
| 64 | + - **Accept**: application/json |
| 65 | + |
| 66 | +### HTTP response details |
| 67 | + |
| 68 | +| Status code | Description | Response headers | |
| 69 | +|-------------|-------------|------------------| |
| 70 | +**200** | A successful response. | - | |
| 71 | +**400** | Bad request | - | |
| 72 | + |
| 73 | +[[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) |
| 74 | + |
0 commit comments