Coder Social home page Coder Social logo

coderdojo / cp-events-service Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 30.0 634 KB

This is the events service, a backend repository of the CoderDojo Zen Community Platform project.

Home Page: https://github.com/CoderDojo/community-platform

License: MIT License

JavaScript 94.95% Shell 3.41% PLpgSQL 0.93% Dockerfile 0.71%

cp-events-service's People

Contributors

arayb avatar butlerx avatar christinavoss avatar ckiss avatar clionaderoiste avatar danielbrierton avatar david-cahill avatar dberesford avatar glenpike avatar glentiki avatar grabartley avatar grega avatar heyitsmaimai avatar johnbrett avatar josmas avatar kojiwakayama avatar patch0 avatar peconia avatar semanticallynull avatar sigismondm avatar wardormeur avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cp-events-service's Issues

403 error accessing applications

Hi,
I'm trying to get a report from zen about applications to our past events.
I'm able to fetch events using events/search on our dojo id but then iterating on the events I've 403 forbidden while accessing https://zen.coderdojo.com:443/api/2.0/events/applications/{event_id}.
I'm Champion of the Dojo so using the web interface I've full access to the applications but with REST API looks like I'm missing permissions. I'm pretty sure it worked in the past so it may be a regression (or maybe previously I could access it due to a bug and now you fixed and there's a different way for getting applications data)
The python code I'm using is:

url = "https://zen.coderdojo.com:443/api/2.0/"
headers = {'Content-type': 'application/json'}

def get_applications_for_event(eventId, cookie):
response = requests.get(url+'events/applications/{eventId}'.format(
eventId=eventId,
), cookies=cookie, headers=headers)
if(response.ok):
return response.json()
else:
print("Error happened")
response.raise_for_status()

and I'm calling get_applications_for_event(eventId, cookie): passing the cookie from the login and the event id of the event that I'm searching applications for.

Please add query filter by dojoId

Please add an option for restriciting the search to a specific dojoId.
It will help searching events for a dojo without the need of parsing 3Mb of data client side.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.