API sdk of PBPlus member plugin.
- Update
getState().pbplusMemberCenter.userUuid
by url (token_id) or cookie. - Dock to pbplus
auth
,member
andmemberCenter
api, with url passed by store.
- Display member center by
dispatch(PbplusMemberCenter.Actions.display())
. - Update active tab by
dispatch(PbplusMemberCenter.Actions.updateActiveTab('TAB_NAME'))
.- Possible
TAB_NAME
s arenotice-center
,calendar
,point-counter
,buying-logs
andpersonal-data
. - See MemberCenterComonent for furtuer information.
- Possible
- Check auth state by
dispatch(PbplusMemberCenter.Actions.checkAuthState({ clientId }))
. - Update user uuid in cookie and store by
dispatch(PbplusMemberCenter.Actions.updateUserUUID({ uuid }))
. - Renew user uuid in cookie and store randomly by
dispatch(PbplusMemberCenter.Actions.renewUserUUID())
.
const store = createStore(
reducer,
{
pbplusMemberCenter: {
baseUrl: {
auth: process.env.AUTH_BASE_URL,
member: process.env.MEMBER_BASE_URL,
memberCenter: process.env.MEMBER_CENTER_BASE_URL,
}
}
}
);
cd demo/
npm install
npm start