2.14.2 • Published 6 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
6 years ago
2.14.1
6 years ago
2.14.0
6 years ago
2.13.1
6 years ago
1.13.0
6 years ago
1.12.0
6 years ago
1.11.0
6 years ago
1.10.0
6 years ago
1.9.2
6 years ago
1.9.1
6 years ago
1.9.0
6 years ago
1.8.2
6 years ago
1.8.0
6 years ago
1.7.4
7 years ago
1.7.3
7 years ago
1.7.2
7 years ago
1.7.1
7 years ago
1.7.0
7 years ago
1.6.3
7 years ago
1.6.2
7 years ago
1.6.1
7 years ago
1.6.0
7 years ago
1.5.1
7 years ago
1.5.0
7 years ago
1.4.0
7 years ago
1.3.0
7 years ago
1.2.1
7 years ago
1.2.0
7 years ago
1.1.0
7 years ago
1.0.0
7 years ago