Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bitly_v3_clicks returns empty array #9

Open
vigneshrams opened this issue Jan 8, 2014 · 5 comments
Open

bitly_v3_clicks returns empty array #9

vigneshrams opened this issue Jan 8, 2014 · 5 comments

Comments

@vigneshrams
Copy link

Hi,

"; echo ""; echo " 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

@Falicon
Copy link
Owner

Falicon commented Jan 8, 2014

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+ )

@vigneshrams
Copy link
Author

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.

"; echo ""; echo " 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.

@vigneshrams
Copy link
Author

Hi,

Update :

same code works for same login and api key when i remove bitly_v3_clicks api

please help

@Falicon
Copy link
Owner

Falicon commented Jan 9, 2014

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.

  • Kevin

On Thu, Jan 9, 2014 at 12:56 PM, vigneshrams [email protected]:

Hi,

Update :

same code works for same login and api key when i remove bitly_v3_clicks
api

please help


Reply to this email directly or view it on GitHubhttps://github.com//issues/9#issuecomment-31958753
.

@phplicengine
Copy link

Our lib is for Bitly Api v4.
https://github.com/phplicengine/bitly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants