arky-sdk 0.4.51 → 0.4.52
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/dist/index.cjs +7 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1320,6 +1320,13 @@ var createAudienceApi = (apiConfig) => {
|
|
|
1320
1320
|
`/v1/businesses/${apiConfig.businessId}/audiences/${params.id}/subscribers/${params.accountId}`,
|
|
1321
1321
|
options
|
|
1322
1322
|
);
|
|
1323
|
+
},
|
|
1324
|
+
async grantSubscription(params, options) {
|
|
1325
|
+
return apiConfig.httpClient.post(
|
|
1326
|
+
`/v1/businesses/${apiConfig.businessId}/audiences/${params.id}/subscribers`,
|
|
1327
|
+
{ email: params.email },
|
|
1328
|
+
options
|
|
1329
|
+
);
|
|
1323
1330
|
}
|
|
1324
1331
|
};
|
|
1325
1332
|
};
|