Logo

Claps

The claps module provides methods to interact with the claps API.

Clap

Clap for a content.

import { postivaClient } from "@/libs/postiva";
 
async function clapContent(id: string) {
  try {
    const content = await postivaClient.contents.clap(id);
    console.log(content);
  } catch (error) {
    console.error('Error clapping content:', error);
  }
}

On this page