Discussions

Ask a Question
ANSWERED

GET return only selected fields not all fields

I would like to do .../links?fields=slashtag,anotherField

ANSWERED

Deprecated properties

I am implementing an API integration and when listing my links I get the following field in my JSON:

ANSWERED

can we get individual link click data?

Want to know if there is a way to individual link click data like IP address, browser details, etc.

ANSWERED

Temporary Links

Since I don't need links to be available more than a few days, is there any way of creating temporary links? Or delete the links based on the time of creation?

ANSWERED

Get urlshortner by using library

rebrandly.links.create(params)
need example for params

ANSWERED

Can I use https?

The examples all show http along with my domain. Can this be https?

ANSWERED

Number of links exceeded

name: "links"
used: 502
message: "Number of links exceeded"

ANSWERED

Extra links information - API

Hello,
Im developing a simple dashboard for manage links and i need few information that i dont find this information in API Documentation like:

ANSWERED

Clicks track using Api

How do i get the clicks track through rebranly's Api? Clicks by Platform, by Browser, by country

ANSWERED

PHP example for deleting a branded link

Can anyone provide an example of how to delete a link with PHP? I see the creation example, but was a little confused on how to delete a link with PHP: <?php
[...]
$domain_data["fullName"] = "rebrand.ly";
$post_data["destination"] = "
https://www.youtube.com/channel/UCHK4HD0ltu1-I212icLPt3g";
$post_data["domain"] = $domain_data;
//$post_data["slashtag"] = "A_NEW_SLASHTAG";
//$post_data["title"] = "Rebrandly YouTube channel";
$ch = curl_init("https://api.rebrandly.com/v1/links");
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
"apikey: YOUR_API_KEY",
"Content-Type: application/json",
"workspace: YOUR_WORKSPACE_ID"
));
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($post_data));
$result = curl_exec($ch);
curl_close($ch);
$response = json_decode($result, true);
print "Short URL is: " . $response["shortUrl"];
?>