kemokrepos/rebrandly

Rebrandly 的 Laravel API 封装器

dev-master 2021-07-09 06:01 UTC

This package is auto-updated.

Last update: 2024-09-09 12:45:57 UTC


README

Rebrandly API 封装器用于 Laravel。

安装

composer install Kemok-Repos/Rebrandly

使用

创建短链接

使用你想要缩短的长期 URL 调用创建函数。

Rebrandly::create(["destination" => "https://www.google.com"])

更新短链接

将短链接 ID 和你想要更改的属性传递给更新函数。

Rebrandly::update("shortlink-ID", ["destination" => "https://www.youtube.com"])

注意

查看 Rebrandly 的 API 文档 了解你可以访问的属性。