It isn’t clear if this API is even capable of searching by URL, searched through G, without much success.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Services_Digg2 is just a client library in PHP that forwards all calls to the API and the API does support searching by urls. What you need to pass is the md5 hash of the url instead of the actual url. PHP has a md5 function that you can use to get the md5 hash of a url.
The API call then would be for
story.getAlland you pass the previously calculated md5 hash as a parameterlink_hash.This hash above is for the URL http://www.nytimes.com/2010/01/05/health/05docs.html and the response from the API is:
The story element in this response has an attribute called
diggswhich is what you need.To get this through the PHP library, the code should look something like: