1.2.61 • Published 3 years ago
@flashcoffee/fcbraze v1.2.61
fcbraze
Installation
$ yarn add @flashcoffee/fcbrazeSetup
Set required environment variable for credentials
BRAZE_BASE_URL=https://some-rest-endpoint.braze.com
BRAZE_API_KEY=your-api-key-hereUsage
import FCBraze from '@flashcoffee/fcbraze';
await FCBraze.triggerCampaign();OR
import {BrazeService} from '@flashcoffee/fcbraze';
@Injectable()
export class SomeService {
constructor(
private readonly braze: BrazeService,
) {}
public async someMethod() {
await this.braze.triggerCampaign();
}
}
@Module({
providers: [SomeService, BrazeService],
})
export class SomeModule {}Available API
braze.api; // axios instance, example: braze.api.post('url', payload)
braze.trackUser();
braze.patchUserAttributes();
braze.patchUserEvents();
braze.patchUserPurchases();
braze.triggerCampaign();
braze.triggerCanvas();
braze.exportUser();1.2.61
3 years ago
1.2.42
4 years ago
1.2.41-alpha.12
4 years ago
1.2.41-alpha.11
4 years ago
1.2.41-alpha.10
4 years ago
1.2.41-alpha.9
4 years ago
1.2.41-alpha.8
4 years ago
1.2.41-alpha.7
4 years ago
1.2.41-alpha.6
4 years ago
1.2.41-alpha.5
4 years ago
1.2.41-alpha.3
4 years ago
1.2.41-alpha.2
4 years ago
1.2.41-alpha.1
4 years ago
1.2.41-alpha.0
4 years ago