@voxie/contacts.js 0.1.4 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -8
- package/dist/contacts.js +372 -392
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
e.preventDefault();
|
|
28
28
|
// initialize contacts library
|
|
29
29
|
const voxie = await Voxie.init({
|
|
30
|
-
|
|
31
|
-
publicSecret:
|
|
30
|
+
publicKeyId: '<YOUR_PUBLIC_KEY_ID>',
|
|
31
|
+
publicSecret: '<YOUR_PUBLIC_KEY_ID>',
|
|
32
32
|
});
|
|
33
33
|
|
|
34
34
|
const phone = form.phone.value;
|
|
@@ -46,8 +46,8 @@ import { Voxie } from "@voxie/contacts.js";
|
|
|
46
46
|
|
|
47
47
|
// we can export this instance to share with rest of our codebase.
|
|
48
48
|
export const voxie = await Voxie.init({
|
|
49
|
-
|
|
50
|
-
publicSecret:
|
|
49
|
+
publicKeyId: '<YOUR_PUBLIC_KEY_ID>',
|
|
50
|
+
publicSecret: '<YOUR_PUBLIC_KEY_ID>',
|
|
51
51
|
});
|
|
52
52
|
|
|
53
53
|
const App = () => (
|
|
@@ -77,8 +77,8 @@ import { voxie } from "@voxie/contacts.js";
|
|
|
77
77
|
|
|
78
78
|
export function useVoxie() = {
|
|
79
79
|
const voxie = await Voxie.init({
|
|
80
|
-
|
|
81
|
-
publicSecret:
|
|
80
|
+
publicKeyId: '<YOUR_PUBLIC_KEY_ID>',
|
|
81
|
+
publicSecret: '<YOUR_PUBLIC_KEY_ID>',
|
|
82
82
|
});
|
|
83
83
|
return voxie;
|
|
84
84
|
}
|
|
@@ -134,8 +134,8 @@ pnpm add @voxie/contacts.js
|
|
|
134
134
|
import { Voxie } from "@voxie/contacts";
|
|
135
135
|
|
|
136
136
|
const voxie = Voxie.init({
|
|
137
|
-
|
|
138
|
-
publicSecret:
|
|
137
|
+
publicKeyId: '<YOUR_PUBLIC_KEY_ID>',
|
|
138
|
+
publicSecret: '<YOUR_PUBLIC_KEY_ID>',
|
|
139
139
|
});
|
|
140
140
|
|
|
141
141
|
voxie.capture("+15551231234", {
|