Skip to main content

Friend request (GUAFriendReqInfo)

Data Structure

GUAFriendReqType: Friend request type.

public enum GUAFriendReqType
{
Friend_REQ_TEXT = 10000, //text sharing
Friend_REQ_LINK, //link sharing
Friend_REQ_IMG, //texture sharing
Friend_REQ_INVITE, //app sharing
Friend_REQ_MUSIC, //music sharing
Friend_REQ_VIDEO, //video sharing
Friend_REQ_MINI_APP, //applets sharing
FRIEND_REQ_PULL_UP_MINI_APP, //applet pull up
Friend_REQ_ARK, //ARK sharing
Friend_REQ_OPEN_BUSINESS_VIEW, //Pull up business functions
Friend_REQ_WX_GAMELINE, //Game circle sharing
Friend_REQ_WX_CHANNEL_SHARE_VIDEO, //sharing to wxchannel
Friend_REQ_WX_STATE_TEXT, //sharing text to WXState
Friend_REQ_WX_STATE_PHOTO, //sharing photo to WXState
Friend_REQ_WX_STATE_MUSIC_VIDEO, //sharing audio to WXState
Friend_REQ_WX_CHANNEL_START_LIVE, //WeChat video account live
Friend_REQ_QQ_COMMON_SHARE, //QQ small world share



Friend_REQ_TEXT_SILENT = 20000, //text sharing (silence)
Friend_REQ_LINK_SILENT, //link sharing (silence)
Friend_REQ_IMG_SILENT, //texture sharing (silence)
Friend_REQ_INVITE_SILENT, //application invitation (silence)
Friend_REQ_MUSIC_SILENT, //music sharing (silence)
Friend_REQ_VIDEO_SILENT, //video sharing (silence)
Friend_REQ_MINI_APP_SILENT, //applets sharing (silence)
}

GUAFriendReqInfo: Friend request information.

ParametersTypeDescriptionNote
TypeintFriend Request TypeMandatory when sharing content
Optional when adding a friend
UserstringSpecify the user ID or OpenID of the friendRequired
TitlestringTitle of shared contentRequired
DescriptionstringDescription
Briefly describe the purpose of sharing
Optional
ImagePathstringPath of the image
Local path (recommended) or URL of the online image
Optional
ThumbPathstringPath of the thumbnail
Local path (recommended) or URL of the online thumbnail
Optional
MediaPathstringMultimedia path (music or video)
Local path of the multimedia file
Optional
LinkstringLink
Hyperlinks to images, music, or videos
Optional
ExtraJsonstringExtra informationOptional