通过qq空间、qq聊天、新浪微博和微信二维码分享平台提供的接口,实现把网页中对应的图片、标题、描述的信息参数用javascript获取后传进接口中,实现一键分享。
使用到的接口:
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?url=你的分享网址&sharesource=weibo&title=你的分享标题&pic=你的分享图片&appkey=你的key,需要在新浪微博开放平台中申请
分享各大平台接口(空间,微博)
原创mb6100f4ef45bc6 博主文章分类:Web Service ©著作权
©著作权归作者所有:来自51CTO博客作者mb6100f4ef45bc6的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
Android腾讯微博分享
psecret.核心代码: package com.tencent.weibo.sdk.a
移动开发 json android ide bundle -
架构分享--微博架构
先来分享下大神Tim Yang的关于微博的架构设计:这里主要从 存储和接口角度来讲对于大流量系统的架构设计,对于写入方面是特别需要注意的,基本上现在遇到了redis
架构设计 autoload 存储 php 扩展 -
分享到微博接口_彭世瑜_新浪博客
分享到微博接口http://service.weibo.com/share/share.php?title=“=”后面输入想要分享的内容即可。
java 接口 linux python php