生肖配对
最后更新于:2022-04-02 08:24:12
## 生肖配对
>[danger]### 免费接口,每日100次免费调用,会员可不限次数调用,购买[API会员](https://market.topthink.com/product/210)
![](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/7b/81/7b81a2885ff5a97eba442f6ca8268298_198x138.png)
> 生肖配对查询
## 接口调用([调用须知](https://docs.topthink.com/think-api/1835086))
### 请求地址
```
GET https://api.topthink.com/constellation/zodiac
```
### 请求参数
| 名称 | 必填 | 类型 | 说明 |
| --- | --- | --- | --- |
| appCode| 是| string|用户授权码,参考[API调用](https://docs.topthink.com/think-api/1835086) |
| men | 是 | string | 男方生肖,如:蛇 |
| women | 是 | string | 女方生肖,如:羊 |
### 返回参数
| 名称 | 类型 | 说明 |
| --- | --- | --- |
| 见JSON返回示例 | \- |
## SDK调用
```
$client = new Client("YourAppCode");
$result = $client->constellationZodiac()
->withMen('猪')
->withWomen('羊')
->request();
```
返回示例:
~~~
{
"code":0,
"message": "成功的返回",
"data": [
"men": "猪",
"women": "羊",
"data": "不会很好,你喜欢他的财富,而他未必肯付出太多。"
]
}
~~~
';