Help get this topic noticed by sharing it on Twitter, Facebook, or email.

How do I form a request to the Daylife API?

1 person has
this question
+1
Reply
  • DayPI requests are HTTP GET or POST requests submitted to a DayPI URL, providing a set of input parameters as name value pairs on the query string

    Here is the format of a daypi url:

    <b>
    http:// freeapi.daylife.com / <responseformat> /publicapi/
    <apiversion> / <methodname> ?
    </b>


    For example.: If I want to search for articles mentioning "clinton" by calling the latest DayPI version 4.3, and get the response formatted as XML , the base daypi url would be:

    http://freeapi.daylife.com/xmlrest/pu...?

    The other important part of a daypi request is the list of parameters to be provided. You MUST include your accesskey and a signature for the request in the list of parameters.

    Completing the example above for article search, here is the full daypi request:

    http://freeapi.daylife.com/xmlrest/pu...?
    query=clinton
    &start_time=2007-09-10
    &end_time=2007-09-17
    &sort=date
    &offset=0
    &limit=10
    &accesskey=8befa1cf0a7c0291613242235638a662
    &signature=f2a547e445c146439affabf48b0daabb

    Other response formats are available: json (jsonrest) or php serialized data (phprest)
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited sad, anxious, confused, frustrated