# Guidelines on User Privacy Protection for Uploading Mini Programs
Interface should be called on the server side, seeHattori API。
# Interface Dxplaination
# Interface name
uploadPrivacySetting
# Functional description
User Privacy Guidelines for uploading custom Mini Programs for this interface
If you encounter problems during use, you canOpen Platform Service Provider ZonePosting exchanges.
# Note
1, limit the file size to no more than 100kb, otherwise an error will be reported
# Calling mode
# HTTPS call
POST https://api.weixin.qq.com/cgi-bin/component/uploadprivacyextfile?access_token=ACCESS_TOKEN
# Third Party Invocation
The calling method and parameters are the same as HTTPS, only the calling token is different
The permission set id to which this interface belongs is: 18
After the service provider has been authorized with one of the permission sets, it can do so by usingauthorizer_access_TokenCalling on behalf of the merchant
# Request parameters
attribute | type | Required | Introductions |
---|---|---|---|
access_Token | string | yes | Third Party Platform Interface Invocation Voucherauthorizer_access_TokenThis parameter is URL Parameters, non Body Parameters. |
file | bufffer | yes | It only supports TXT files. |
# Return parameters
attribute | type | Introductions |
---|---|---|
errcode | number | Return code |
errmsg | string | Error message |
ext_file_media_id | string | File media_id |
# Call Example
Example Dxplaination: HTTPS requests
# Sample Request Data
curl -X POST -F file=@melody.txt "https://api.weixin.qq.com/cgi-bin/component/uploadprivacyextfile?access_token=xxx
# Return Data Example
{"errcode": 0,
"errmsg":"ok",
"ext_file_media_id":"2112311471891169280"}
# Error code
Error code | Error code | Solutions |
---|---|---|
0 | ok | ok |
40006 | invalid meida size | Upload Material File Size Exceeds Limit |
40126 | invalid text size | Over 100kb in size |