Date for getMonthEvents

Options

Is there a way to define the current year and month in the getMonthEvents API? I want to make an RSS feed that gets the current events from our calendar for this month, but I want it to update for next month and so on. Right now it looks like the API only accepts inputs of the current month and year.

Is there a way that I can make this update in the API automatically so that it doesn't have to be updated manually?

Tagged:

Comments

  • Jason,

    How would you be calling the API? One idea would be to use Yahoo! Pipes. Using its Date Builder component, if you enter "today" you can then extract the current month and date and pass those into the Events API parameters.

  • Noah Cooper:

    Jason,

    How would you be calling the API? One idea would be to use Yahoo! Pipes. Using its Date Builder component, if you enter "today" you can then extract the current month and date and pass those into the Events API parameters.

    I am actually using Yahoo Pipes.

    Here is my issue. I am trying to make the calendar of events span 15 days.

    After messing around with Pipes for a long time, I can only get a correct return of xml or json when I put a specific day, month, and year into the values. I have tried getting pipes to create a span of 15 days, starting on the current day and month.

    I've looked for some kind of documentation on Pipes for getting the current day and month, but have been unsuccessful.

    Any ideas on how to achieve this?

    Thanks for your reply!

  • Jason Glisson:

    I am actually using Yahoo Pipes.

    Here is my issue. I am trying to make the calendar of events span 15 days.

    After messing around with Pipes for a long time, I can only get a correct return of xml or json when I put a specific day, month, and year into the values. I have tried getting pipes to create a span of 15 days, starting on the current day and month.

    I've looked for some kind of documentation on Pipes for getting the current day and month, but have been unsuccessful.

    Any ideas on how to achieve this?

    Thanks for your reply!

    Would you mind sharing your Pipe and I can take a look?

  • Noah Cooper:

    Would you mind sharing your Pipe and I can take a look?

    Sure!

    <http://pipes.yahoo.com/pipes/pipe.info?_id=6a539bf30c7681b1ff1e8b3904431b67>

    Let me know what you think.

    I had considered writing a javascript applet that would fetch the current month. I'm not sure if that would work with Pipes yet, but its an idea.

    Thanks!

    Jason Glisson

  • Noah Cooper:

    Would you mind sharing your Pipe and I can take a look?

    I have figured out how to get the current year and month by just putting "now" in the date builder within Yahoo Pipes. However, I can not seem to figure out how to get the span of the next 14 days of events to show up.

    That is my problem as of now. How can I always retrieve the next 14 events from the calendar?

  • Jason Glisson:

    I have figured out how to get the current year and month by just putting "now" in the date builder within Yahoo Pipes. However, I can not seem to figure out how to get the span of the next 14 days of events to show up.

    That is my problem as of now. How can I always retrieve the next 14 events from the calendar?

    Jason,

    Take a look at this clone of your Pipe, it should give you what you need:

    http://pipes.yahoo.com/noahscooper/eventsrss

  • Noah Cooper:

    Jason,

    Take a look at this clone of your Pipe, it should give you what you need:

    http://pipes.yahoo.com/noahscooper/eventsrss

    Brilliant. I was just messing with the Regex and Filter but had no clue what the output should be.

    Thank you very very much for your help!

    Jason Glisson

  • Noah Cooper:

    Jason,

    Take a look at this clone of your Pipe, it should give you what you need:

    http://pipes.yahoo.com/noahscooper/eventsrss

    A second question that pertains to this as well is with getEvent.

    Right now, the Pipe that we have (and that you fixed) fetches the events within the next 14 days. No matter how many, it fetches all of them.

    Now, say we only want the next 7 events to be fetched, no matter what day they are on or how far they are apart.

    I am trying to figure out if it would better for us to do it that way or for us to just have the next 14 days fetched.

    My problem here is that getEvent and getChildEvent don't seem to have a "fixed" point that you can say "start here" and get the next 7 events from there.



    In other words, there isn't a value that I can plug in for the number of events to be fetched.

    Does that makes sense?

    Let me know what you think.

    Jason Glisson

  • Jason Glisson:

    A second question that pertains to this as well is with getEvent.

    Right now, the Pipe that we have (and that you fixed) fetches the events within the next 14 days. No matter how many, it fetches all of them.

    Now, say we only want the next 7 events to be fetched, no matter what day they are on or how far they are apart.

    I am trying to figure out if it would better for us to do it that way or for us to just have the next 14 days fetched.

    My problem here is that getEvent and getChildEvent don't seem to have a "fixed" point that you can say "start here" and get the next 7 events from there.



    In other words, there isn't a value that I can plug in for the number of events to be fetched.

    Does that makes sense?

    Let me know what you think.

    Jason Glisson

    You can do this with the Truncate Module:

    http://pipes.yahoo.com/pipes/docs?doc=operators#Truncate

Categories