English
English
Appearance
English
English
Appearance
/public/account/linkedin/connect/{accountId}Reauthorize a previously connected LinkedIn account, typically when the token has expired. Provide the new token and the selected organization or personal account ID.
Authorization: Basic Base64(AccessKey:SecretKey))| Parameter | Type | Required | Description |
|---|---|---|---|
accountId | string | Yes | The unique ID of the account. |
| Field | Type | Required | Description |
|---|---|---|---|
organizationId | string | Yes | The id from Get Organization LinkedIn: urn:li:organization:... for an organization, or urn:li:person:... for a personal account. |
token | string | Yes | Access token received from the exchange step. |
curl -X POST "https://api.repliz.com/public/account/linkedin/connect/680affa5ce12f2f72916f67e" \
-H "Authorization: Basic $(echo -n 'YOUR_ACCESS_KEY:YOUR_SECRET_KEY' | base64)" \
-H "Content-Type: application/json" \
-d '{"organizationId":"urn:li:organization:123456","token":"AQUxxxxxxxx"}'import axios from 'axios';
const accountId = '680affa5ce12f2f72916f67e';
const response = await axios.post(
`https://api.repliz.com/public/account/linkedin/connect/${accountId}`,
{
organizationId: 'urn:li:organization:123456',
token: 'AQUxxxxxxxx',
},
{
auth: {
username: 'YOUR_ACCESS_KEY',
password: 'YOUR_SECRET_KEY',
},
},
);
console.log(response.data);const credentials = btoa('YOUR_ACCESS_KEY:YOUR_SECRET_KEY');
const accountId = '680affa5ce12f2f72916f67e';
const response = await fetch(
`https://api.repliz.com/public/account/linkedin/connect/${accountId}`,
{
method: 'POST',
headers: {
Authorization: `Basic ${credentials}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
organizationId: 'urn:li:organization:123456',
token: 'AQUxxxxxxxx',
}),
},
);
const data = await response.json();
console.log(data);// No content returned on success{
"code": 400,
"message": "incorrect generatedId to reconnect"
}{
"code": 404,
"message": "account not found"
}{
"code": 401,
"message": "unauthorized"
}