QQ分享 QQ空间分享 API链接:

通过qq空间、qq聊天、新浪微博和微信二维码分享平台提供的接口,实现把网页中对应的图片、标题、描述的信息参数用javascript获取后传进接口中,实现一键分享。

使用到的接口(测试时需要登录,网址和图片必须是公网的,不能是localhost):

1.分享到QQ空间接口:https://sns.qzone.qq.com/cgi-bin/qzshare/cgi\_qzshare\_onekey?url=你的网址&sharesource=qzone&title=你的分享标题&pics=你的分享图片&summary=你的分享描述信息

2.分享给QQ好友接口:http://connect.qq.com/widget/shareqq/index.html?url=你的分享网址&sharesource=qzone&title=你的分享标题&pics=你的分享图片地址&summary=你的分享描述&desc=你的分享简述

3.分享到新浪微博接口:http://service.weibo.com/share/share.[php](https://www.oschina.net/p/php)?url=你的分享网址&sharesource=weibo&title=你的分享标题&pic=你的分享图片&appkey=你的key,需要在新浪微博开放平台中申请

网页分享现在用的很少很少,手机分享到微信、QQ等查看原网址

https://github.com/jjdxmashl/jjdxm\_social

本文来自 ITROOKIEIS 的CSDN 博客 ,全文地址请点击:https://blog.csdn.net/qq\_15256443/article/details/80963861?utm\_source=copy

QZone:

"http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url={

     
     
     {URL}}&title={

     
     
     {TITLE}}&desc={

     
     
     {DESC}}&summary={

     
     
     {SUMMARY}}&site={

     
     
     {SOURCE}}&pics={

     
     
     {IMAGE}}"

QQ:

"http://connect.qq.com/widget/shareqq/index.html?url={

     
     
     {URL}}&title={

     
     
     {TITLE}}&source={

     
     
     {SOURCE}}&desc={

     
     
     {DESC}}&pics={

     
     
     {IMAGE}}&summary={

     
     
     {SUMMARY}}"

本文同步分享在 博客“lxw1844912514”(CSDN)。
如有侵权,请联系 support@oschina.cn 删除。
本文参与“OSC源创计划”,欢迎正在阅读的你也加入,一起分享。

评论

h
hw_7864

⭐️ Admin快速开发: https://show.cool-admin.com/

赞 0
h
hw_7864

⭐️ 官方文档: https://cool-js.com

赞 0
h
hw_7864

⭐️ chatgpt在线体验: https://cool-js.com/ai/chat-vip/index.html?r=helloworld

赞 0