bcgov / digital.gov.bc.ca

Helping the digital government community deliver better digital services for the people and priorities of British Columbia.
https://digital.gov.bc.ca/
Apache License 2.0
12 stars 8 forks source link

Spike: create an interface with the eventbrite API #792

Closed thegentlemanphysicist closed 3 years ago

thegentlemanphysicist commented 3 years ago

After digging into the eventbrite API and the BCDevExchange implementation, it's become clear that the integrating the API in a React app will not be completely straightforward. The query to the API requires a bearer token, if this is added to the react app ENV, it will be exposed to any user of the site.

Suggested approaches, research the following:

thegentlemanphysicist commented 3 years ago

React env variable docs (check out the warning section) https://create-react-app.dev/docs/adding-custom-environment-variables/

Discussion in stack overflow: https://stackoverflow.com/questions/46838015/using-api-keys-in-a-react-app/46839021#46839021

thegentlemanphysicist commented 3 years ago

Strapi appears to have a configuration that might works for us. https://strapi.io/blog/webhooks

thegentlemanphysicist commented 3 years ago

https://strapi.io/documentation/developer-docs/latest/guides/external-data.html#content-type-settings This may be more relevant

thegentlemanphysicist commented 3 years ago

Resolved. Strapi can handle this. Moreover the eventbrite API has some webhook capabilities. We can leverage this to load the eventbrite content directly into strapi, improving load time of these features relative to the BCDevExchange site.

SteveChapmanBCDX commented 3 years ago

Reviewed issue - closing ticket.