Important Instructions
Usage Steps
- Purchase Premium Version, or apply for Premium Version trial. See Integration Process for details;
- Get your team's appid and secret from [Workspace Top-right Corner - Avatar - Team Management - Click Team Name - API Service - Enable Service - View Credentials];
- Use appid and secret to call the authorization API to obtain access_token. The access_token is valid for 2 hours, refer to API Authorization;
- Use appid and access_token to call more APIs to read and write user data.
All API requests need to include parameters?appid={appid}&access_token={access_token}
, do not include the brackets {} when calling; - We recommend using Postman API Cases and Postman API Documentation for API debugging.
API Domain
https://open.wesurvey.com
API Example
https://open.wesurvey.com/api/surveys?appid=xxxx&access_token=xxxx&user_id=50000000001
Request Specifications
- All API endpoints communicate via
HTTPS
and useUTF-8
encoding - Supported HTTP request methods: POST, GET, DELETE
- Supported Content-Type for POST requests:
application/json
. Parameters marked as body in subsequent documentation should be sent as JSON
Parameter Types
The API includes three types of parameters:
uri
: in the request route, like GET /api/surveys/123456
?appid=xxxx&access_token=xxxxqueryString
: after ?, like GET /api/surveys?appid=xxxx&access_token=xxxx&openid=abcdefg
body
: in POST request body, sent as standard JSON, like POST /api/users?appid=xxxx&access_token=xxxx{"user_id":654321}
Additional Notes
If your platform provides services to multiple enterprises and teams, and a single appid does not meet your needs, please scan the QR code to contact customer service for information about Platform Partnership
, Premium Version
, or Enterprise Version
.