Skip to content

Commit

Permalink
Update _account.md
Browse files Browse the repository at this point in the history
  • Loading branch information
aakarim authored Sep 24, 2024
1 parent d7e5520 commit 976503c
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions source/includes/_account.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,41 @@ print(response.json())
"viewer_id": "alfie-lambert"
}
```
## Get LinkedIn Account
This endpoint retrieves LinkedIn accounts attached to your team.
### HTTP Request
`PUT https://api.lix-it.com/v1/account/linkedin/account`
### Query Parameters
Parameter | Description
--------- | -----------
viewer_id | The LinkedIn account ID to retrieve.
```shell
curl -X GET "https://api.lix-it.com/v1/account/linkedin/account?viewer_id=alfie-lambert" \
-H "Authorization: lixApiKey
```

```python
import requests
import json
url = "https://api.lix-it.com/v1/account/linkedin/account"
headers = {
'Authorization': lix_api_key
}
response = requests.request("GET", url, headers=headers)
print(response.json())
```

> The above command returns JSON structured like this:
```json
{
"viewer_id": "alfie-lambert",
"numAvailableTokens": 10
}
```

0 comments on commit 976503c

Please sign in to comment.