Hello Guest
No Avatar
Sign In to Remove
Posts: 
2
Reputation: 
1
Posted: January 16, 2013, 4:39 PM  -- Last Edit: January 17, 2013, 6:42 AM by MLM
  • Group: Member
Hi,

I just found out about the kmean color stripe tool, and I love it! Is there already some kind of api for it? I'd like to enter an URL, so that it returns the hex value for the favicon of that website.

Thanks in advance  ;D
Posts: 
400
Reputation: 
20
Posted: January 17, 2013, 6:54 AM
  • Group: Administrator
  • AIM: mlm@visualpulse.net
  • deviantART: MadLittleMods
  • Photobucket: MadLittleMods
Hey Marc! Thanks for showing interest in the Kmean app. I am currently looking up best practices on how to pass a URL as a GET variable ex.
example.com/index.php?name=marc

It will also probably be a json output so it will give the hex and rgb value of the color. I hope to get this done by the end of the long weekend. I also have to make sure people don't abuse the service so I have to figure out how to limit requests.
<3 Nerve, Sk8, Labradoodle, Austin
Posts: 
400
Reputation: 
20
Posted: January 22, 2013, 8:30 AM
  • Group: Administrator
  • AIM: mlm@visualpulse.net
  • deviantART: MadLittleMods
  • Photobucket: MadLittleMods
Is there already some kind of api for it?

I still have a bit more to do with it to make it a finished product behind the scenes but it is fully functional at the moment.

It is a json output and gives you the hex, rgb, url, and K value.

You can call the api by giving a url and an optional K value. K is 3 by default.
ex.
Code: [Select]
http://apps.visualpulse.net/kmean_chrome_color_stripe/api.php?url=http://www.google.com&k=2or
Code: [Select]
http://apps.visualpulse.net/kmean_chrome_color_stripe/api.php?url=http://www.google.com
<3 Nerve, Sk8, Labradoodle, Austin
Posts: 
2
Reputation: 
1
Posted: January 23, 2013, 4:04 AM
  • Group: Member
Great job! Thank you very much!
Posts: 
400
Reputation: 
20
Posted: January 23, 2013, 4:54 AM
  • Group: Administrator
  • AIM: mlm@visualpulse.net
  • deviantART: MadLittleMods
  • Photobucket: MadLittleMods
Great job! Thank you very much!

No Problem, please keep in mind I may implement API keys or the format may change. I will keep this post up to date with the latest developments on the API.
<3 Nerve, Sk8, Labradoodle, Austin
anything