Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

filterPastEvents doesn't work for events/search #117

Closed
sandrobonazzola opened this issue Aug 21, 2016 · 1 comment
Closed

filterPastEvents doesn't work for events/search #117

sandrobonazzola opened this issue Aug 21, 2016 · 1 comment

Comments

@sandrobonazzola
Copy link

The following code:
API_URL="https://zen.coderdojo.com/api/2.0/"
COMMAND="events/search"
cat <filename.txt
{"query":"filterPastEvents"}
EOL
curl --verbose -d @filename.txt "${API_URL}${COMMAND}" --header "Content-Type:application/json" >answer.json

is not returning an answer.

@sandrobonazzola
Copy link
Author

Looks like I read the code the wrong way. The following works:

#!/usr/bin/bash

CDBRIANZA_UID="9943615c-232b-431e-bc87-323580d62f20"
API_URL="https://zen.coderdojo.com/api/2.0/"
COMMAND="events/search"
cat <filename.txt
{
"query":{
"dojoId":"${CDBRIANZA_UID}",
"filterPastEvents":"1"
}
}
EOL
curl -d @filename.txt "${API_URL}${COMMAND}" --header "Content-Type:application/json"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant