---
name: "getAstronomicalList"
mode: "api"
versionRequirements:
  - { name: "@ray-js/ray", version: "1.5.2" }
title: "getAstronomicalList - 获取天文定时列表"
---

## getAstronomicalList

> [VERSION] @ray-js/ray >= 1.5.2

### 描述

获取天文定时列表

### 参数

`Params`

| 参数 | 类型 | 必填 | 描述 |
| --- | --- | --- | --- |
| `params` | `IGetAstronomicalList` | 是 | 请求参数 |

### 返回值

类型: `Promise<IGetAstronomicalListResponse>`

天文定时列表数组

### 引用对象

##### `interface` IGetAstronomicalList

| 属性 | 类型 | 必填 | 描述 |
| --- | --- | --- | --- |
| `bizId` | `string` | 是 | 设备 ID 或群组 ID |


### 示例代码

#### 基础用法

```ts
import { getAstronomicalList } from '@ray-js/ray';

getAstronomicalList({
  bizId: 'vdevo160456552237748',
}).then((response) => {
  console.log('天文定时列表:', response);
}).catch((err) => {
  console.error(err);
});
```
