feat(qzone): add QQ space message publishing and image upload (#1965)
- Add QzonePublishResponse interface and parsing logic for publish API responses - Add buildQzonePublishBody function to construct publish request parameters - Add buildQzoneUploadImageBody function to construct image upload request parameters - Add parseQzoneUploadImageResponseText function to parse upload API responses - Add toQzoneRichval function to format image data for publish requests - Add publishQzoneMsg method to NTQQWebApi for publishing space messages with optional images - Add uploadImageToQzone method to NTQQWebApi for uploading images to QQ space - Add getQzoneAuth private method to retrieve authentication tokens (skey, pskey, g_tk) - Add SendQzoneMsg action handler to expose QQ space publishing via OneBot API - Add comprehensive unit tests for all Qzone data construction and parsing functions - Update action router to register SendQzoneMsg action - Update action examples to demonstrate Qzone publishing usage
This commit is contained in:
1 parent
216d0c7c6b
commit
288cc7c54f
7 files changed
+400
No files matched your search
@@ -42,4 +42,8 @@ export const ExtendsActionsExamples = {
|
||||
payload: { group_id: '123456', user_id: '123456789', special_title: '头衔' },
|
||||
response: null,
|
||||
},
|
||||
SendQzoneMsg: {
|
||||
payload: { content: '今天天气不错', images: [], ugc_right: 1, target_uins: [] },
|
||||
response: { tid: '1234567890abcdef1234567890' },
|
||||
},
|
||||
};
|
||||
Reference in new issue
Block a user