Getting events for tomorrow

Home Forums Calendar Products Events Calendar PRO Getting events for tomorrow

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1540338
    Henk
    Participant

    Hi

    There has to be a NOOB in every forum so it might aswell be me.
    I used another events product before, I wrote a php script to extract events that would happen tomorrow. How the script works is:
    – Get event for tomorrow.
    – Check if the event is already published to Facebook
    – if not published to facebook then extract event details and publish

    How to extract events for tomorrow from the Events Calendar Pro… I looked at json but I am a complete rookie with that stuff. What is the json command to get all events for tomorrow?

    Thanks
    henk

    #1541446
    Cliff
    Member

    Hi, Henk. Glad to help, but we are limited in our ability to provide code customizations, per our Scope of Support / Terms.

    I can point you in the right direction for step #1 but checking Facebook is out of our realm, especially with the recent Facebook App lockout/lockdown issues as a result of bad PR from their data breach(es).

    Please reference https://theeventscalendar.com/knowledgebase/using-tribe_get_events/

    • Because our calendar supports time zones, you’ll first want to determine what Today is and add a day to it to come up with the Start Date, such as 2018-05-30 00:00:00
    • Then determine the End Date, such as 2018-05-30 23:59:59

    Do note that our Day View is accessible at yoursite.com/events/today, which may come in handy if you’re doing day-specific views. However, we don’t have yoursite.com/events/tomorrow or other sort of “nicename” URLs, just “today”.

    However, this sort of code could be made available by referencing https://github.com/mt-support/tribe-ext-schedule-day-view/blob/plain-language-url/index.php#L185 (unreleased so it only exists here at this time)

    If you need some coding help, you may want to ask your developer or reference our documentation and list of known customizers.

    Please let me know if you have any follow-up questions on this topic.

    #1544392
    Henk
    Participant

    Thanks mate Ill have a play around with it.

    H

    #1544447
    Cliff
    Member

    Thanks for checking in. Feel free to reply whether or not you get it figured out on your own.

    Please note that threads get Closed automatically after a couple weeks of inactivity. If it does get Closed, please open a new thread, adding your current problem description and also linking back to this thread.

    Thank you!

    #1544827
    Henk
    Participant

    Just a question where in the tribe_get_events array is the event start date?

    is the start_date returned?

    Thanks
    H

    #1544832
    Henk
    Participant

    All good got it sorted.

    Thanks

    #1544891
    Cliff
    Member

    Glad to hear and thanks for letting us know.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Getting events for tomorrow’ is closed to new replies.