/php-coderdojozh-register-api

connect the js-coderdojozh-register-webapp with the meetup api

Primary LanguagePHPMIT LicenseMIT

CoderDojo Zurich, Registration API

PHP API for the CoderDojo Zurich, Registration Webapp: it queries the Meetup API and provides the storage for the participants choices.

Install

  • Checkout this repository
  • Run composer install
  • Create your private settings:
    cp src/settings-private-sample.php src/settings-private.php
    Fill:
    • `apiKey': you can find your key on the Meetup API page, in the API Key section.
    • groupName: the name of your Meetup group, as it appears in the Url, when you browse to your Meetup events:
      https://www.meetup.com/<your-group-name>/events/<the-event-id>/
    • topic: at least one item. (Since it contains your Meetup API key, you should keep your src/settings-private secret and avoid adding it to a public repository.)
    • create the data directory.
    • create the logs directory.

Services

  • GET: /event/{id}/rvsps: list of all participant having registred through Meetup.
  • GET: event/{id}: information about the event.
  • POST: /event/{eventId}/participant/{userId}: number of kids for each offer.