W外链短网址系统API 源码,网址缩短API接口
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">1、<span style="color: black;">供给</span>的接口</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">W外链<span style="color: black;">供给</span>接口如下:</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="//q6.itc.cn/images01/20240703/4ccce7513d7e407ca2a63f06a85be1b5.jpeg" style="width: 50%; margin-bottom: 20px;"></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">2、签名简介</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">运用</span>前请<span style="color: black;">认识</span>如下事项:</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">API 的签名<span style="color: black;">重点</span>是用于获取身份令牌 AccessToken 时所需必要认证参数</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">在请求<span style="color: black;">必须</span><span style="color: black;">繁杂</span>认证接口的时候,系统会验证 AccessToken</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">在请求获取 AccessToken 的接口时候,服务器会对用户请求合法性的 signature 进行<span style="color: black;">检测</span>,以此来确定<span style="color: black;">是不是</span>向用户返回 AccessToken</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">获取app id 和 app secret</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">进入后台管理系统后,依次点击以下导航 短链/外链/<span style="color: black;">研发</span>API接口 管理获取 app id 和 app secret</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">生成signature</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">1、</span>组合签名数据格式</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">{</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">"app_id":"到后台应用管理查看app id",</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">"app_secret":"到后台应用管理查看app secret",</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">"sign_ver":"1.0",</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">"timestamp":"当前系统时间戳"</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">}</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">2、</span><span style="color: black;">按照</span>字段名降序排序,组合http原始字符串</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">app_id=xxxx&app_secret=xxxxxxxxxx&sign_ver=1.0&timestamp=128097733</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">3、</span>md5 http原始字符串,完成生成 signature</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">2d41751369f4daaf9dd869aefa0da1e4</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">获取AccessToken</p>AccessToken 有效期<span style="color: black;">仅有</span> 7200 秒,获取后请缓存到本地有效期内再次请求的 AccessToken 会<span style="color: black;">引起</span>之前请求的<span style="color: black;">所有</span>失效请<span style="color: black;">运用</span>服务器端来做接口请求,客户端会<span style="color: black;">显现</span>跨域等问题。获取 AccessToken <span style="color: black;">位置</span>: http://你的服务器<span style="color: black;">位置</span>/api/v1/getAccessToken 请求<span style="color: black;">办法</span>: POST<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">{</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">"app_id":"xxxx",</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">"signature":"2d41751369f4daaf9dd869aefa0da1e4",</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">"timestamp":128097733</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">}</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">3、<span style="color: black;">运用</span>须知</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">运用</span>前请<span style="color: black;">认识</span>如下事项:</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">API接口调用频率暂时不限制。API接口仅供会员<span style="color: black;">运用</span>(<span style="color: black;">运用</span>前请先登录获取APIKEY),非会员请<span style="color: black;">运用</span><span style="color: black;">掌控</span>台操作。每日可生成的短链数量上限与会员等级<span style="color: black;">关联</span>,<span style="color: black;">详细</span>上限请参照会员权限。短链本身的权限与在网站<span style="color: black;">掌控</span>台生成的相同,均与账号会员等级<span style="color: black;">相关</span>。您<span style="color: black;">能够</span><span style="color: black;">经过</span> 「获取短链分组接口」 来获取链接分组,记录下您<span style="color: black;">必须</span>的分组id,在代码中将该id写死。<span style="color: black;">咱们</span>并不<span style="color: black;">意见</span>您在代码中<span style="color: black;">经过</span>「获取短链分组接口」来动态指定id,除了「生成短链接口」次数限制与会员权限<span style="color: black;">相关</span>外,其余接口均有每日调用次数限制,详见各接口文档。<a style="color: black;"><span style="color: black;">返回<span style="color: black;">外链论坛:www.fok120.com</span>,查看<span style="color: black;">更加多</span></span></a></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;">责任编辑:网友投稿</span></p>
seo常来的论坛,希望我的网站快点收录。
页:
[1]