# Preface
This tutorial is based on the "apifm-wxapi" module and teaches you how to quickly implement small program development, so you may need to understand the following knowledge points first:
["Creating HelloWorld Project"](https://www.yuque.com/apifm/doc/hezlrm)
["Use "apifm-wxapi" to quickly develop small programs"](https://www.yuque.com/apifm/doc/mdldsd)
["Register for free to open the backend and obtain an exclusive domain name"](https://www.yuque.com/apifm/doc/qr6l4m)
In this case, some functions require the user to log in before they can be operated, which means token authorization is required. Please understand first:
["WeChat Mini Program login to obtain openid and third-party tokens"](https://www.yuque.com/apifm/doc/kaygbw)
# Function introduction
Add reservation and registration functions to the mini program
Registration can support team registration and members’ self-service joining of teams.
Registration fees can be collected
# enable module
Log in to the "First Step" registration background, left menu --> Factory settings --> Module management
Find and enable the following modules, then press F5 to refresh the background interface. You will be able to see all the function menus required for this case:
**Registration module**

# apifm-wxapi method description
### Read all reservations/registration items
```javascript
WXAPI.yuyueItems(Object object)
```
> Pull all reservation/registration items set in the background, and the mini program can display all items, progress, etc.
>
> Please refer to the interface document for specific parameters.
>
### Project details
```javascript
WXAPI.yuyueItemDetail(id)
```
> Read the reservation/registration item details of the specified id and the extended attributes set in the background
>
### Make an appointment or register online
```javascript
WXAPI.yuyueJoin(Object object)
```
> Please refer to the interface document for specific parameters.
>
**You can register directly as a team/individual, or you can join a designated team to register**
Parameter description:
**Individual/Team Registration:**
**yuyueId** Registration project ID
**teamName** Team name [optional]
**remark** Registration remarks
**extJsonStr** Register extended attributes
**Join a team:**
**yuyueId** Registration project ID
**teamId** Team ID
**remark** Registration remarks
**extJsonStr** Register extended attributes
**After successful reservation/registration, the registration ID will be returned to you, which is the joinId parameter used in the following method**
### Pay registration fee
```javascript
WXAPI.yuyueJoinPay(token, joinId)
```
> If the reservation/registration items set in the background require payment of a certain fee, the user needs to complete the payment of the registration fee through this method to complete the reservation/registration.
>
### Update appointment/registration information
```javascript
WXAPI.yuyueJoinUpdate(token, joinId, extJsonStr)
```
> To modify the extended information of reservation/registration, it must be non-anonymous, otherwise the identity of the modified user cannot be confirmed.
>
### My registration information
```javascript
WXAPI.yuyueMyJoinInfo(token, joinId)
```
### All my appointment records/registration records
```javascript
WXAPI.yuyueMyJoinLogs(Object object)
```
> This method will display the user's participation history in pages. Please refer to the interface document for specific parameters.
>
### Read the list of all registered teams for a project
```javascript
WXAPI.yuyueTeams(Object object)
```
### View team details
```javascript
WXAPI.yuyueTeamDetail(teamId)
```
> The team ID obtained in the above method
>
### Pull the list of team members
```javascript
WXAPI.yuyueTeamMembers(Object object)
```
**For more detailed parameter usage and more advanced advanced usage methods, please refer to the API interface documentation: **
["api interface document"](#)
_More usage methods about apifm-wxapi: _
["apifm-wxapi Instructions for Use"](https://github.com/gooking/apifm-wxapi/blob/master/instructions.md)
_Download the Demo code of this case: _
["apifm-wxapi using Demo program"](https://github.com/gooking/apifm-wxapi-demo)
Looking forward to your progress!
grateful!