2.14.2 • Published 7 years ago
pbplus-member-sdk v2.14.2
pbplus-member-sdk
API sdk of PBPlus member plugin.
Behaviors
- Update
getState().pbplusMemberCenter.userUuid
by url (token_id) or cookie. - Dock to pbplus
auth
,member
andmemberCenter
api, with url passed by store.
You can
- 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())
.
These values in redux store will be read.
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,
}
}
}
);
Start demo server
cd demo/
npm install
npm start
2.14.2
7 years ago
2.14.1
7 years ago
2.14.0
7 years ago
2.13.1
7 years ago
1.13.0
7 years ago
1.12.0
8 years ago
1.11.0
8 years ago
1.10.0
8 years ago
1.9.2
8 years ago
1.9.1
8 years ago
1.9.0
8 years ago
1.8.2
8 years ago
1.8.0
8 years ago
1.7.4
8 years ago
1.7.3
8 years ago
1.7.2
8 years ago
1.7.1
8 years ago
1.7.0
8 years ago
1.6.3
8 years ago
1.6.2
8 years ago
1.6.1
8 years ago
1.6.0
8 years ago
1.5.1
8 years ago
1.5.0
8 years ago
1.4.0
8 years ago
1.3.0
8 years ago
1.2.1
8 years ago
1.2.0
8 years ago
1.1.0
8 years ago
1.0.0
8 years ago