1.0.76 • Published 9 days ago

@charma/js v1.0.76

Weekly downloads
-
License
MIT
Repository
-
Last release
9 days ago


How to use

Authentication

The Charma API uses API keys to authenticate requests. You can view and manage your API keys in the Charma Portal. Your API keys carry many privileges, so be sure to keep them secure! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth. User of API key as Bearer token

{
  headers: {
    Authorization: 'Bearer YOUR_API_KEY';
  }
}

Usage of API key as query param:

  curl --request GET \\
    -- url 'https://api.charma.io/v1/categories?apiKey=YOUR_API_KEY \\
    -- header 'Content-Type: application/json'

Installation

First, you need to install the Gifting Widget package in your application:

    npm install @charma/js

Initialization

Next step is to initialize the widget and API:

import { widget } from '@charma/js';
import { defineCustomElements } from '@charma/js/loader';

defineCustomElements();

widget.init(
  'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJvcmdJZCI6ImRhc2QtZmRmc2ZkLWFzZGFhc2QtZXFlLWFkc2FkIiwiaWF0IjoxNjc1MDE2MjIxLCJleHAiOjE2NzUwMTYyODF9.N87e7y9fajSt5LrtQBe3R0sJ1I2_N2gKqN1Eun2mVak',
);

Usage

<html>
  <body>
    <charma-widget></charma-widget>
  </body>
</html>
1.0.76

9 days ago

1.0.75

11 days ago

1.0.74

16 days ago

1.0.73

28 days ago

1.0.72

2 months ago

1.0.71

2 months ago

1.0.70

2 months ago

1.0.69

2 months ago

1.0.68

2 months ago

1.0.67

2 months ago

1.0.62

2 months ago

1.0.61

2 months ago

1.0.66

2 months ago

1.0.65

2 months ago

1.0.64

2 months ago

1.0.63

2 months ago

1.0.60

2 months ago

1.0.59

2 months ago

1.0.58

2 months ago

1.0.57

2 months ago

1.0.56

2 months ago

1.0.48

2 months ago

1.0.49

2 months ago

1.0.51

2 months ago

1.0.50

2 months ago

1.0.55

2 months ago

1.0.54

2 months ago

1.0.53

2 months ago

1.0.52

2 months ago

1.0.47

2 months ago

1.0.44

2 months ago

1.0.43

2 months ago

1.0.45

2 months ago

1.0.41

3 months ago

1.0.40

3 months ago

1.0.39

3 months ago

1.0.38

3 months ago

1.0.37

4 months ago

1.0.36

4 months ago

1.0.35

4 months ago

1.0.34

4 months ago

1.0.33

5 months ago

1.0.32

5 months ago

1.0.31

5 months ago

1.0.30

6 months ago

1.0.29

6 months ago

1.0.28

6 months ago

1.0.27

6 months ago

1.0.26

6 months ago

1.0.25

6 months ago

1.0.24

6 months ago

1.0.23

6 months ago

1.0.22

6 months ago

1.0.21

6 months ago

1.0.20

6 months ago

1.0.19

6 months ago

1.0.18

6 months ago

1.0.17

6 months ago

1.0.16

6 months ago

1.0.15

6 months ago

1.0.14

6 months ago

1.0.13

7 months ago

1.0.12

8 months ago

1.0.11

8 months ago

1.0.10

8 months ago

1.0.9

8 months ago

1.0.8

8 months ago

1.0.7

9 months ago

1.0.6

9 months ago

1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago