Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@chiper-inc/chiper-sdk

Package Overview
Dependencies
Maintainers
8
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chiper-inc/chiper-sdk

Sdk to interact with Citrus Ad, a platform for advertising and monetization

latest
Source
npmnpm
Version
1.2.8
Version published
Weekly downloads
56
64.71%
Maintainers
8
Weekly downloads
 
Created
Source

Chiper SDK

Chiper SDK has been built using typescript.

Sdk to interact with Citrus Ad, a platform for advertising and monetization, and TopSort, a native advertising infrastructure based on auctions and APIs.

project-version

Read all documentation before start

Learn and Understand:

How To Install

Simply type the following into a terminal window:

npm i @chiper-inc/chiper-sdk

How to Use Citrus

// import entire SDK

import { Citrus } from "@chiper-inc/chiper-sdk";

// Create an instance

const CitrusTest = Citrus.getInstance({
  baseUrl: "https://mytest/sdk.com",
  apiKey: "123-abc-345-def",
});

// Report Events
const reportClick = CitrusTest.reportClick("adId");
const reportImpression = CitrusTest.reportImpression("adId");
const reportPurchase = CitrusTest.reportPurchase(orders);

For more examples visit the following links

How to Use TopSort

// import entire SDK

import { TopSort } from "@chiper-inc/chiper-sdk";

// Create an instance

const TopsortTest = TopSort.getInstance({
  baseUrl: "https://mytest/sdk.com",
  token: "123-abc-345-def",
});

const payload = {
  {
  session: {
    sessionId: "ebeaf802-6d0a-41a3-ae59-661887c4f6cb",
  },
  placement: {
    page: "search_results",
  },
  productId: "p_SA0238",
  ocurredAt: "2022-04-26T12:57:31.450Z",
}
}

// Report Events
const reportClick = TopsortTest.reportClick(payload);
const reportImpression = TopsortTest.reportImpression(payload2);
const reportPurchase = TopsortTest.reportPurchase(payload3);

For more examples visit the following links

FAQs

Package last updated on 20 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts