English
Appearance
https://api.repliz.com/public/listener/{listenerId}/status
Pause or resume a comment sync. A paused sync keeps its progress.
Authorization: Basic Base64(AccessKey:SecretKey)
listener:write
listenerId
string
_id
status
paused
active
curl -X PUT "https://api.repliz.com/public/listener/6913a5c2e4b0a1f2c3d4e5f6/status" \ -H "Authorization: Basic $(echo -n 'YOUR_ACCESS_KEY:YOUR_SECRET_KEY' | base64)" \ -H "Content-Type: application/json" \ -d '{ "status": "paused" }'
import axios from 'axios'; const listenerId = '6913a5c2e4b0a1f2c3d4e5f6'; const response = await axios.put( `https://api.repliz.com/public/listener/${listenerId}/status`, { status: 'paused' }, { auth: { username: 'YOUR_ACCESS_KEY', password: 'YOUR_SECRET_KEY', }, }, ); console.log(response.status);
const credentials = btoa('YOUR_ACCESS_KEY:YOUR_SECRET_KEY'); const listenerId = '6913a5c2e4b0a1f2c3d4e5f6'; const response = await fetch(`https://api.repliz.com/public/listener/${listenerId}/status`, { method: 'PUT', headers: { Authorization: `Basic ${credentials}`, 'Content-Type': 'application/json', }, body: JSON.stringify({ status: 'paused' }), }); console.log(response.status);
// No content returned on success
{ "code": 400, "message": "status must be one of the following values: active, paused" }
{ "code": 404, "message": "comment sync not found" }
{ "code": 401, "message": "unauthorized" }
Update Status Comment Sync
https://api.repliz.com/public/listener/{listenerId}/statusPause or resume a comment sync. A paused sync keeps its progress.
Endpoint Details
Authorization: Basic Base64(AccessKey:SecretKey)) or Bearer token from Login with Replizlistener:writeParameters
listenerIdstring_idfrom Get Comment Sync or thelistenerIdfrom Create Comment Sync.Request Body
statusstringpausedstops checking the post and keeps its progress,activeresumes it right away.Example Request
Response