官方网址
https://www.rebrandly.com
免费额度
支持1个自定义域名,1000个短链地址,支持API调用,支持浏览器扩展,等等等等
免费基本上够用了~~~
有更高要求,请升级付费计划~
https://www.rebrandly.com/pricing
简要步骤
账号注册
访问地址:https://oauth.rebrandly.com/ui/register 填写邮箱密码即可完成注册!
也支持Google , FB,推特,三方登录。 需要挂代理!!!
绑定域名
1)访问 : https://www.rebrandly.com/domains 点击 【New domain】,然后点击 【Setup DNS】
2)如果你打算使用1级域名,辣么选择第一个。二级域名选第2个。然后填写域名。
3)最后会生成需要解析DNS记录。
按要求完成域名解析。
4)解析完后,稍等几分钟会生效。 然后就可以玩耍了。
生成短链
访问 https://www.rebrandly.com/links ,点击【New Link】设置短链地址。
5)网站提供每个记录的访问情况。
使用API
1)生成 API 密钥!
访问:https://www.rebrandly.com/api-settings 点击【Create API Key】即可!
2)官方提供了多种语言调用示例。
https://developers.rebrandly.com/v1/docs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
$.ajax({
url: “https://api.rebrandly.com/v1/links”,
type: “post”,
data: JSON.stringify({
“destination” : “https://www.youtube.com/channel/UCHK4HD0ltu1-I212icLPt3g”
, “domain”: { “fullName”: “rebrand.ly” }
//, “slashtag”: “A_NEW_SLASHTAG”
//, “title”: “Rebrandly YouTube channel”
}),
headers: {
“Content-Type”: “application/json”,
“apikey”: “YOUR_API_KEY”
},
dataType: “json”,
success: function (link) {
console.log(“Long URL was “+link.destination+“, short URL is “+link.shortUrl);
}
});
|
© 版权声明
THE END