Fan service platform
Introduction to the fan service platform development interface
- ##Through the open interface, it helps Weibo account authentication in In its own services, it provides more exciting, more personalized content and more interesting interactive services to fans who actively subscribe to him.
The fan service platform (hereinafter referred to as the fan service platform) is a platform that provides services to Weibo authenticated users, and the fan service platform development interface is The basis for providing services. After a Weibo authenticated user opens the development mode on the Fenfu platform website, specifies and authorizes a third-party developer to serve him, and obtains interface permissions, the third-party developer can use this interface document to help the Weibo authenticated user develop applications. .
The pink server platform development interface provides the ability to interact with users through messages and customized menus. For Weibo authentication accounts that have successfully accessed the fan server platform development interface, when the user sends a message to the Weibo authentication account, the Weibo fan server platform server will use http requests to push messages to the accessed URL, and the third-party server can respond by Package reply to a specific structure, or otherwise call the customer service reply interface, so as to achieve the purpose of replying to the message.
Receive Message Details
Verify the authenticity of the message
When a third-party Weibo account is bound to receive the message URL in the fan server backend, it needs to return the echostr parameter content as it is before it can be bound. Determined to be successful, otherwise the binding fails.Receive ordinary messages
Receiving ordinary messages refers to receiving texts sent by users to third-party Weibo accounts. Location, voice, picture messages.Receiving event push
Receiving event push mainly refers to receiving the user’s attention/unfollow, subscription/unsubscription , scanning QR code with parameters and other events.WeChat XML format compatible
The Weibo fan service platform is fully compatible with WeChat XML format. Developers can use http:// The open.weibo.com/wiki/Eps/push/set_format interface selects whether the information it receives is in WeChat XML format or JSON format.
##Send message service details
Send passive response message
For each POST request, the developer returns a specific JSON structure or XML structure in the response package (Get), Respond to the message (now supports reply text and graphic messages).Send customer service message
When the user actively sends a message to the authenticated account, Weibo will send the message data Pushed to developers, developers can call the customer service message interface a certain number of times. The user sends a message, follows/subscribes to the event, clicks on the custom menu, and scans the QR code for the event. Currently, the developer is not limited to sending messages within 48 hours; for user @ event, the developer can reply once within 48 hours.