Skip to content

Commit

Permalink
Document how to verify API credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
tijsverkoyen committed Jan 5, 2024
1 parent fedf3e4 commit b9f713b
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,3 +238,32 @@ There will be an entry like below"
```

Update the `url`. And restart Home Assistant.

### How can I verify my Northbound API / OpenAPI credentials?

You can verify your credentials by doing a `curl` call.

```
curl --location 'https://eu5.fusionsolar.huawei.com/thirdData/login' \
--header 'Content-Type: application/json' \
--data '{
"userName": "XXX",
"systemCode": "YYY"
}'
```

Check if you need to alter the base hostname https://eu5.fusionsolar.huawei.com. And replace XXX with your username and
YYY with your password.

The response should look like:

```json
{
"data": null,
"success": true,
"failCode": 0,
"params": {},
"message": null
}
```

0 comments on commit b9f713b

Please sign in to comment.