Node.js
import { PeriskopeApi } from '@periskope/periskope-client';
const client = new PeriskopeApi({
authToken: 'YOUR_API_KEY',
});
async function deleteMember() {
const response = await client.members.delete({
id: 'test@example.com'
});
console.log(response);
}
deleteMember();curl -X DELETE \
https://api.periskope.app/v1/members/test@example.com \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json'{
"success": true,
"message": "Member test@example.com deleted successfully"
}Member APIs
Delete Member
Delete a member by email address.
Node.js
import { PeriskopeApi } from '@periskope/periskope-client';
const client = new PeriskopeApi({
authToken: 'YOUR_API_KEY',
});
async function deleteMember() {
const response = await client.members.delete({
id: 'test@example.com'
});
console.log(response);
}
deleteMember();curl -X DELETE \
https://api.periskope.app/v1/members/test@example.com \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json'{
"success": true,
"message": "Member test@example.com deleted successfully"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Email address of the member to delete
Example:
"test@example.com"
Was this page helpful?