Output API - onday and weekdays parameters

0 views
Skip to first unread message

David Carpenter

unread,
Jul 15, 2009, 7:49:27 AM7/15/09
to Plings Developer Support
As you may be able to deduce by the number of posts today - there are
a few things we've been working on recently.

These developments are partly in response to requests from developers,
and partly because some of them were always things we thought we might
want to deploy.

We're aware that our development goals are not as transparent as we'd
like them to be, but I hope to be announcing developments on this
soon. In the meantime (and thereafter!) please feel free to use the
group to communicate with us.

Anyway - onday and weekdays.

These are 2 additional parameters that can be added to a query string
to the Output API.

onday - returns all activities on the requested day (use full day
names e.g. onday=Monday). This is useful if you want all activities on
Monday this month perhaps.

weekdays - allows you to do much the same but requests more than one
day. The way you request this is a bit binary, but we think quite nice
once you get to grips with it.

You need to specify 7 zero or one digits. One for 'on', zero for
'off' - 7 for each day of the week, so:

weekdays=[01][01][01][01][01][01][01]

Each digit is a day of the week:
Position 1 - Monday
Position 7 - Sunday

Examples:
Monday, Wednesdays and Fridays => weekdays=1010100
Activities occuring at a weekend => weekdays=0000011
Activities occuring during the week => weekdays=1111100

No need for the brackets!

Again documented at:
http://www.plings.info/wiki/index.php/Plings_Output_API#Optional_Parameters

If you can make use of it - we'd be interested to hear about it. If
you can't make head nor tail of this, then let us know as well.

Cheers
David
Reply all
Reply to author
Forward
0 new messages