使用协议来实现分享至QQ和QQ空间

2020-02-14 15:22:39
 折腾博客
这是一个最后修改于 222 天前的主题,其中的信息可能已经有所发展或是发生改变。

这两段是从mcbbs的手机端模板里看见的,扒拉出来供大家参考

mqqapi://share/to_fri?src_type=web&version=1&file_type=news
&share_id=1101685683
&url=aHR0cHM6Ly93d3cubWNiYnMubmV0L2ZvcnVtLnBocD9tb2Q9dmlld3RocmVhZCZ0aWQ9OTU5NTI3Jm1vYmlsZT0y
&title=W01pbmVjcmFmdC5uZXQgfCBDVUxUVVJFXSDpgYfop4HlhrDpm6rlhazkuLshIC0g57+76K+RJldpa2kgLSBNaW5lY3JhZnQo5oiR55qE5LiW55WMKeS4reaWh+iuuuWdmyAtIOaJi+acuueJiCAtIFBvd2VyZWQgYnkgRGlzY3V6IQ==
&description=W01pbmVjcmFmdC5uZXQgfCBDVUxUVVJFXSDpgYfop4HlhrDpm6rlhazkuLshICxNaW5lY3JhZnQo5oiR55qE5LiW55WMKeS4reaWh+iuuuWdmw==
&previewimageUrl=aHR0cHM6Ly93d3cubWNiYnMubmV0L3VjX3NlcnZlci9hdmF0YXIucGhwP3VpZD0xMzI1Nzc1JnNpemU9bWlkZGxl
&image_url=aHR0cHM6Ly93d3cubWNiYnMubmV0L3VjX3NlcnZlci9hdmF0YXIucGhwP3VpZD0xMzI1Nzc1JnNpemU9bWlkZGxl


mqqapi://share/to_qzone?src_type=app&version=1&file_type=news&req_type=1&
share_id=1101685683&
url=aHR0cHM6Ly93d3cubWNiYnMubmV0L2ZvcnVtLnBocD9tb2Q9dmlld3RocmVhZCZ0aWQ9OTU5NTI3Jm1vYmlsZT0y
&title=W01pbmVjcmFmdC5uZXQgfCBDVUxUVVJFXSDpgYfop4HlhrDpm6rlhazkuLshIC0g57+76K+RJldpa2kgLSBNaW5lY3JhZnQo5oiR55qE5LiW55WMKeS4reaWh+iuuuWdmyAtIOaJi+acuueJiCAtIFBvd2VyZWQgYnkgRGlzY3V6IQ==
&description=W01pbmVjcmFmdC5uZXQgfCBDVUxUVVJFXSDpgYfop4HlhrDpm6rlhazkuLshICxNaW5lY3JhZnQo5oiR55qE5LiW55WMKeS4reaWh+iuuuWdmw==
&previewimageUrl=aHR0cHM6Ly93d3cubWNiYnMubmV0L3VjX3NlcnZlci9hdmF0YXIucGhwP3VpZD0xMzI1Nzc1JnNpemU9bWlkZGxl
&image_url=aHR0cHM6Ly93d3cubWNiYnMubmV0L3VjX3NlcnZlci9hdmF0YXIucGhwP3VpZD0xMzI1Nzc1JnNpemU9bWlkZGx

对于关键的参数的位置我都换了行。可以很容易的看出,这些都是base64格式的。

如果要使用的话,在网页里append一段src为这些的iframe,就可以了qwq

懒癌发作,等段时间再给我博客做适配😂