Comments (1)
I think this is working now. Idea is you can make a call like this:
let headersList = {
"Accept": "*/*",
"Content-Type": "application/json"
}
let bodyContent = JSON.stringify({
"experimentID": "rYnzHFJlGyWQ"
});
let response = await fetch("http://127.0.0.1:5001/osf-relay/us-central1/api/condition", {
method: "GET",
body: bodyContent,
headers: headersList
});
You'll get back a response that has a number between 0 and N-1, where N is the number of conditions in the experiment. The number increments by 1 after each call to the API.
It's going to be a little bit annoying to use this in the context of a jsPsych experiment, because it requires an async wait from the server. Maybe we can add some helper functions to jsPsych to make this easier... 🤔
from datapipe.
Related Issues (20)
- Minimal validation example HOT 3
- Example with uploading sound data HOT 1
- UPDATE: the pipe plugin has been updated to v0.2
- Add toggle for base64 endpoint.
- customize the password reset email
- add account deletion feature
- Add per-condition completions / assignments to experiment info page
- add simple logging of API requests per experiment HOT 2
- rate limit requests by IP address
- ease of use for creating experiments
- add documentation about API responses HOT 2
- support targeting subfolders for data saving
- add alerts when saving goes wrong in the experiment dashboard
- Using validation with no required fields generates `INVALID_DATA` 400 error HOT 6
- Data not comming through, not sure why HOT 3
- Website account issues: cannot add token or create experiments HOT 5
- No condition field provided when calling condition API HOT 2
- Create data node stored in European servers HOT 6
- Allow JSON/CSV validation without a list of required fields
- Losing around 10% of submissions HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from datapipe.