Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@flashcoffee/fctalonone
Advanced tools
$ yarn add @flashcoffee/fctalonone
Set required environment variable for credentials
TALON_ONE_URL=https://your-org.asia-southeast1.talon.one
TALON_ONE_API_KEY=ApiKey-v1 yourapikey
TALON_ONE_TOKEN=Bearer yourtoken
TALON_ONE_APP_ID=123
import FCTalonOne from '@flashcoffee/fctalonone';
await FCTalonOne.integrationApi.updateCustomerSessionV2();
await FCTalonOne.managementApi.getLoyaltyPoints();
OR
import {TalonOneIntegrationApi} from '@flashcoffee/fctalonone';
@Injectable()
export class SomeService {
constructor(
private readonly talonOneIntegration: TalonOneIntegrationApi,
private readonly talonOneManagement: TalonOneManagementApi,
) {}
public async someMethod() {
await this.talonOneIntegration.updateCustomerSessionV2();
await this.talonOneManagement.getLoyaltyPoints();
}
}
@Module({
providers: [SomeService, TalonOneIntegrationApi],
})
export class SomeModule {}
All: Github
talonOneIntegration.api; // Available APIs: https://github.com/talon-one/talon_one.js/blob/master/docs/IntegrationApi.md#talononeintegrationapi
talonOneIntegration.updateCustomerSessionV2();
talonOneIntegration.updateCustomerProfileV2();
All: Github
talonOneManagement.api; // Available APIs: https://github.com/talon-one/talon_one.js/blob/master/docs/ManagementApi.md#talononemanagementapi
talonOneManagement.getApplications();
talonOneManagement.getCampaign();
talonOneManagement.getCampaigns();
talonOneManagement.getCampaignByAttributes();
talonOneManagement.getApplicationCustomer();
talonOneManagement.getApplicationCustomers();
talonOneManagement.getCustomersByAttributes();
talonOneManagement.getLoyaltyPoints();
talonOneManagement.addLoyaltyPoints();
talonOneManagement.removeLoyaltyPoints();
talonOneManagement.searchCouponsAdvancedApplicationWideWithoutTotalCount();
talonOneManagement.createCoupons();
talonOneManagement.updateCoupon();
talonOneManagement.deleteCoupons();
Can refer to this interfaces:
import {
ITalonOneError,
IErrorResponse,
IErrorResponseWithStatus,
IAPIError,
IErrorSource,
} from '@flashcoffee/fctalonone';
import {ITalonOneError} from '@flashcoffee/fctalonone';
try {
const loyaltyPoints = await FCTalonOne.managementApi.getLoyaltyPoints();
} catch (error) {
if ((error as ITalonOneError).response?.ok === false) {
const err = error as ITalonOneError;
console.error('Error', {
status: err.status,
statusText: err.statusText,
body: {
message: err.body.message,
errors: err.body.errors,
StatusCode: err.body.StatusCode,
},
response: err.response,
});
throw error;
}
}
FAQs
Flash Coffee Talon.One SDK
The npm package @flashcoffee/fctalonone receives a total of 0 weekly downloads. As such, @flashcoffee/fctalonone popularity was classified as not popular.
We found that @flashcoffee/fctalonone demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 11 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.