0.5.0 • Published 5 months ago

@epilot/targeting-client v0.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

@epilot/targeting-client

CI npm version bundle size License

tbw

Uses openapi-client-axios

Installation

npm install --save @epilot/targeting-client

Usage

import { getClient } from '@epilot/targeting-client';
const targetingClient = getClient();

const result = await targetingClient.changeCampaignStatus({ campaign_id:  });

Documentation

Matching Campaigns and Targets

To find out if the given entity or entities are part of a campaign or campaigns, run, e.g.:

import { getClient } from '@epilot/targeting-client';
const targetingClient = getClient();

const result = await targetingClient.matchCampaigns(null, {
    "campaign_ids": [
        "80d910d9-1c7f-49f2-9a31-75d5a0f4c744"
    ],
    "entity_refs": [
        {
            "entity_schema": "contact",
            "entity_id": "5817e702-b5d5-4c65-8856-7af0b0aa4067"
        }
    ]
});

Similarly, if you want to know if the given entity or entities are part of specif targets:

import { getClient } from '@epilot/targeting-client';
const targetingClient = getClient();

const result = await targetingClient.matchTargets(null, {
    "target_ids": [
        "80d910d9-1c7f-49f2-9a31-75d5a0f4c744"
    ],
    "entity_refs": [
        {
            "entity_schema": "contact",
            "entity_id": "5817e702-b5d5-4c65-8856-7af0b0aa4067"
        }
    ]
});
0.5.0

5 months ago

0.4.0

6 months ago

0.3.0

6 months ago

0.2.1

6 months ago

0.2.0

6 months ago

0.1.0

6 months ago