Hello, Im developing a simple dashboard for manage links and i need few information that i dont find this information in API Documentation like: Top Source, Top Devices, Top Browsers, Top Platforms and Top Languages Could you help me? Thanks Best Regards Rafael Hilgemberg
Posted by Rafael Hilgemberg about a month ago
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"]; ?>
Posted by Mike 7 months ago
We are using rebrand.ly via an external tool where weh can specify the target and the slashtag. If we don't enter a slashtag, we get a generated one. If we use the api with the same target twice, we will get two different slashtags via the api. is it possible to give back the existing slashtag, if a target which already exists is entered via the api? bit.ly does this.
Posted by Bernd about a year ago
Hi, my web service is about promoting personal domains and I want to render a list of Rebrandly domains with their main links, like the following: - dietcoke.org [COPY] [VISIT] - dietcoke.net [COPY] [VISIT] - dietcoke.xyz [COPY] [VISIT] What's the best way to get this list?
Posted by Adele 2 years ago