Open vigneshrams opened 10 years ago
hrm...off the top of my head it looks OK...perhaps there were just no clicks to return for that short code? It looks like there is only one click for it in the bitly system at the moment ( http://bitly.com/19ehkZK+ )
Hi, Thanks for the reply. I get {"status_code": 500, "data": null, "status_txt": "INVALID_LOGIN"} even though my loginid and api key is correct. <?php include "BitlyPHP-master/bitly.php"; $result = bitly_v3_shorten('http://getbootstrap.com/2.3.2/'); print_r($result); echo ""; echo "
"; echo "<a href='".$result['url'] ."'> click here"; echo ""; echo ""; // This part doesn't work $clicks = bitly_v3_clicks('19ehkZK'); print_r($clicks); //$longend = bitly_v3_expand('19ehkZK'); //print_r($longend); ?>Please help me on this. I want to know the bitly_v3_clicks but it returns empty array with above mentioned error.
Hi,
Update :
same code works for same login and api key when i remove bitly_v3_clicks api
<?php include "BitlyPHP-master/bitly.php"; $result = bitly_v3_shorten('http://getbootstrap.com/2.3.2/'); print_r($result); ?>
please help
It's possible that bit.ly has changed the system and now requires auth. for getting the click info ( the new documentation mentions needing oauth2 - http://dev.bitly.com/link_metrics.html#v3_link_clicks )...so might need to update the library to support these changes.
On Thu, Jan 9, 2014 at 12:56 PM, vigneshrams notifications@github.comwrote:
Hi,
Update :
same code works for same login and api key when i remove bitly_v3_clicks api
<?php include "BitlyPHP-master/bitly.php"; $result = bitly_v3_shorten('http://getbootstrap.com/2.3.2/'); print_r($result); ?>
please help
— Reply to this email directly or view it on GitHubhttps://github.com/Falicon/BitlyPHP/issues/9#issuecomment-31958753 .
Our lib is for Bitly Api v4. https://github.com/phplicengine/bitly
Hi,
<?php include "BitlyPHP-master/bitly.php"; $result = bitly_v3_shorten('http://getbootstrap.com/2.3.2/'); print_r($result); echo ""; echo "
"; echo "<a href='".$result['url'] ."'> click here"; echo ""; echo ""; $clicks = bitly_v3_clicks('19ehkZK'); print_r($clicks); ?>In this code $clicks returns to be empty. Am i doing something wrong here