Loading…

Invite members to join the organization

Table of contents on this page
# Get the key Joining an organization requires a key, which ensures that people who are not invited cannot join the organization. Therefore, to invite members to join the organization, the first step is to obtain this key. After obtaining the key, you can: + Splice the key to the invitation address, and the user can join the organization with the key after clicking; + Write the key into the QR code and let users scan the code to join the organization; ```javascript WXAPI.organizeJoinKey({ token: '000' }) ``` + token current user login credentials + organizeId organization ID + minutes expiration time (how many minutes), if not passed, the default is 10 minutes + renew true: Each time a new key is obtained, the old key is invalidated. This is the default method; false: If there is a key before, return the last key, otherwise obtain a new key. # Join the organization ```javascript WXAPI.organizeJoin({ token: '000', joinKey: 'Key obtained in the previous step' }) ``` + token current user login credentials + joinKey The secret key to join the organization ```json { "code": 0, "msg": "success" } ``` Special code description: + 10000 Organization/member/network disk plug-in not activated + 20000 The organization/member/network disk module has not been activated +30000 joinKey error + 40000 Organization does not exist + 50000 You cannot join your own organization + 60000 The organization is full of members and cannot join. + 70000 You are already a member of the organization + 11111 Organization has expired